Apache2 authetication to AD LDAP
Posted on 2005-03-02
I have two websites being served from a FreeBSD/sparc box by Apache2; we have an Active Directory Domain Controller that also does LDAP. I would like to give access to these two websites by authenticating to the LDAP server. When I built apache2 from ports, I specified "-DWITH_LDAP_MODULES" during the make, so it should be there.
- how can I verify that apache has been built with LDAP support (mod_ldap_auth?). I've looked in /usr/local/include, /usr/local/lib and /usr/local/lib/apache2 and I see a lot of ldap-related files (.h and .so files,) but I don't see mod_ldap_auth. Where _should_ it be?
- how can I get the websites to prompt for authentication credentials (username/password) and check against the LDAP server?
- will it require that the username be in the format DOMAIN\username ? if so, is there any way to configure it so that the user can omit the domain?
# httpd -v
Server version: Apache/2.0.50
Server built: Nov 9 2004 23:51:31
# uname -a
FreeBSD my.server.host.name 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 19:30:40 UTC 2004 firstname.lastname@example.org:/usr/obj/usr/src/sys/GENERIC sparc64