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!!)
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...
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?
Last edited by saundersmatt; 24th June 2008 at 08:29 PM.
"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:
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...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
See cPanel Forums (where I got little response).
Searching for openldap in the wHm ports installer presents me with the following (no devel):
Code: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: delphij@FreeBSD.org 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: delphij@FreeBSD.org 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: delphij@FreeBSD.org B-deps: db44-18.104.22.168 libltdl-1.5.26 libtool-1.5.26 openldap-client-2.3.42 R-deps: db44-22.214.171.124 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: delphij@FreeBSD.org 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: delphij@FreeBSD.org 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: delphij@FreeBSD.org B-deps: db46-126.96.36.199 libltdl-1.5.26 libtool-1.5.26 openldap-client-2.4.10 R-deps: db46-188.8.131.52 libltdl-1.5.26 openldap-client-2.4.10 WWW: http://www.OpenLDAP.org/
There are currently 1 users browsing this thread. (0 members and 1 guests)