Marci Posted June 24, 2008 Posted June 24, 2008 Anyone here managed to succesfully set up Moodle LDAP authentication on a FreeBSD Server? Here's the outline... FreeBSD Server running cPanel / WHM 11, hosting several websites (both internal and external). Moodle currently uses manual authentication. We want to get it setup so that Moodle authenticates from our MS-AD database running on our Forest Root. Problem - what ports do I need to install before I can recompile PHP with LDAP? At the moment it just fails... Have found instructions for Linux rpms, but they're useless to me... Can find plenty of instructions for Windows-based servers, but again, useless to me...
Joedetic Posted June 24, 2008 Posted June 24, 2008 Ports Search any use to you? FreeBSD Ports Search I would have thought it'd be a good idea to recompile apache with auth_ldap. When it fails what errors do you get? (Not the dreaded error code 2!!)
saundersmatt Posted June 24, 2008 Posted June 24, 2008 (edited) I've had it working in the past but i'm rusty with any instrucitons as it was likely 18 months ago. You need to get a working samba/winbind implementation(the hardest part) and then moodle plugs into that. I'll try and have a look for any notes that i've still got from my setup. Edit: Just realised that you don't need winbind, I only used it because I needed it for something else. What error are you getting when compiling php with ldap? Matt Edited June 24, 2008 by saundersmatt
powdarrmonkey Posted June 24, 2008 Posted June 24, 2008 I would have thought it'd be a good idea to recompile apache with auth_ldap. If you want to do the authentication in Apache itself, yes. But in this case it's PHP that needs LDAP. If it won't compile in, will it compile in isolation as a module? This is more flexible in any case.
Marci Posted June 25, 2008 Author Posted June 25, 2008 "Cannot find ldap.h" is the error I receive... Now, investigation shows this to usually be caused by lack of openldap-devel on Linux boxes... however, there is no ldap devel in the FreeBSD Ports Tree that I can find... The instructions I'm going off are as follows: WHM>Software>Install RPM - installed openldap - installed openldap-servers - installed openldap-devel - if it is not installed, you'll get "Cannot find ldap.h" error while recompiling - installed openldap-clients - for working from command line - edited /home/cpapachebuild/buildapache/buildscript - I added --with-ldap after all instances of configuration - run buildscript They're the only step-by-steps I could find for the recompile, and they're for Linux. So, replace rpm with equivalent port. Rest is as per the instructions... except for that darn lack of ldap-devel... See cPanel Forums (where I got little response). Searching for openldap in the wHm ports installer presents me with the following (no devel): Searching for Ports... Click on the path to the port to install it! Port: openldap-client-2.3.42 Path /usr/ports/net/openldap23-client Info: Open source LDAP client implementation Maint: [email protected] B-deps: libtool-1.5.26 R-deps: WWW: http://www.OpenLDAP.org/ Port: openldap-sasl-client-2.3.42 Path /usr/ports/net/openldap23-sasl-client Info: Open source LDAP client implementation with SASL2 support Maint: [email protected] B-deps: cyrus-sasl-2.1.22_1 libtool-1.5.26 R-deps: cyrus-sasl-2.1.22_1 WWW: http://www.OpenLDAP.org/ Port: openldap-server-2.3.42 Path /usr/ports/net/openldap23-server Info: Open source LDAP server implementation Maint: [email protected] B-deps: db44-4.4.20.4 libltdl-1.5.26 libtool-1.5.26 openldap-client-2.3.42 R-deps: db44-4.4.20.4 libltdl-1.5.26 openldap-client-2.3.42 WWW: http://www.OpenLDAP.org/ Port: openldap-client-2.4.10 Path /usr/ports/net/openldap24-client Info: Open source LDAP client implementation Maint: [email protected] B-deps: libtool-1.5.26 R-deps: WWW: http://www.OpenLDAP.org/ Port: openldap-sasl-client-2.4.10 Path /usr/ports/net/openldap24-sasl-client Info: Open source LDAP client implementation with SASL2 support Maint: [email protected] B-deps: cyrus-sasl-2.1.22_1 libtool-1.5.26 R-deps: cyrus-sasl-2.1.22_1 WWW: http://www.OpenLDAP.org/ Port: openldap-server-2.4.10 Path /usr/ports/net/openldap24-server Info: Open source LDAP server implementation Maint: [email protected] B-deps: db46-4.6.21.1 libltdl-1.5.26 libtool-1.5.26 openldap-client-2.4.10 R-deps: db46-4.6.21.1 libltdl-1.5.26 openldap-client-2.4.10 WWW: http://www.OpenLDAP.org/
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now