Wednesday, February 08, 2006

Links that helped me today: (on LDAP Aunthentication)

http://forum.mamboserver.com/showthread.php?t=55&page=5
Well, I'd bet the answer to the ldap_connect() error shows up in one these google links. Especially the 2nd one. But anyway, I'll cool down now...The error message you're seeing probably means you don't have ldap support enabled for php. If you're on windows, you should:- In php.ini, uncomment the line:extension=php_ldap.dll- Copy the php_ldap.dll file in your winnt\system32 directory- Restart your web server.

http://forums.devshed.com/apache-development-15/apache-mod-auth-ldap-on-w2k-a-solution-151253.html
Apache & mod_auth_ldap on W2k - a solution
Lots of people get headaches from this. At last I found a working config for me. Let me summarize and I hope that it helps out some of you.1. Install e.g. Apache2/win32 from httpd.apache.org2. download mod_auth_ldap.dll for either apache 1 or 2 from :http://www.muquit.com/muquit/softwa...ap_apache2.htmlDo not use the mod_auth_ldap.so from the apache distro... it crashes your server.3. download the iPlanet 5.08 LDAP SDK (see link on the muquit page) from the SUN site.4. copy the mod_auth_ldap.dll file in your modules dir, together with ALL THE .DLL and .LIB FILES FROM THE LDAP SDK ZIP FILE.5. Do not forget to add :LoadModule auth_ldap_module modules/mod_auth_ldap.dllLoadModule ldap_module modules/util_ldap.soto your list of modules to load6. configuration (kinda how it was for me) :

http://www.scit.wlv.ac.uk/~jphb/sst/basics/ldap.html
All forms of Apache authentication will use the .htaccess file, if present in a directory. Here is a .htaccess file for LDAP authentication.
AuthType Basic
AuthName "Access Test"
LDAP_Server ldapserver.wlv.ac.uk
UID_Attr uid
Base_DN "ou=2kusers,dc=unv,dc=wlv,dc=ac,dc=uk"
require valid-user


http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap.html#req
Install compiled/supplied DLL in Windows MS NT/2000 Download and extract the zip file containing the module (unless you compiled the DLL yourself). The supplied zip file has the following files: mod_auth_ldap_dll/
mod_auth_ldap_dll/mod_auth_ldap.dll - non debug version
mod_auth_ldap_dll/mod_auth_ldap.dll.debug - debug version
mod_auth_ldap_dll/README
The debug version of the module writes debug messages in the server error_log file. So you should use this module first, when you're sure that the module works properly, replace it with the non debug version.
Copy the debug version of the module in the Apache modules directory first, e.g.copy mod_auth_ldap.dll.debug c:/Apache/modules/mod_auth_ldap.dll
Modify the file httpd.conf and put the following lines:

LoadModule ldap_auth_module modules/mod_auth_ldap.dll

No comments: