Apache 2.2 + ldap tip

Apache 2.2 + ldap tip

am 02.08.2007 19:36:37 von Some Other Guy

Hi.

I have been attempting to get apache to use our Apple Xserve's LDAP
server for authenticating users in .htaccess files. It seemed like I had
everything set up right, but i was getting "GROUP: not in
required group(s)." errors in the log file. I tried everything i could
think of, and I found a reference to it on google. The guy there said
that he was having the same problem and he discovered that if you remove
the "auth_sys_group" module, it works. I did so, and now ldap
authentication works like a champ.

Here is a copy of my *working* .htaccess file:

AuthName "Keeping out the riff-raff"
AuthzLDAPAuthoritative off
AuthType Basic
AuthBasicProvider ldap
AuthLDAPURL ldap://xserv.your-domain/cn=users,dc=xserve,dc=your-stuff-he re
require valid-user

Anyway, it seems to be working for me, and since it took so much
searching to find the solution to this problem, I figured that I should
post this in the hopes that it helps someone else out there :)

-rich