Gentoo Archives: gentoo-user

From: Derek Bodner <subscribedlists@×××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] ldap authentication and apache 2.2 problems
Date: Wed, 19 Dec 2007 19:20:35
Message-Id: 1a410e090712191114q7f263fb6vfae206961c9f478f@mail.gmail.com
1 Hey guys,
2 Having some problems setting up ldap authentication with apache 2.2,
3 something that worked previously with 2.0. I have the following setup:
4 [ebuild R ] www-servers/apache-2.2.6 USE="ldap ssl -debug -doc -mpm-event
5 -mpm-itk -mpm-peruser -mpm-prefork -mpm-worker -no-suexec (-selinux)
6 -static-modules -threads" 0 kB
7
8 [ebuild R ] dev-libs/apr-util-1.2.10 USE="berkdb gdbm ldap -doc -mysql
9 -postgres -sqlite -sqlite3" 0 kB
10
11 And in /etc/conf.d/apache2:
12 APACHE2_OPTS="-D DEFAULT_VHOST -D FCGID -D USERDIR -D PHP5 -D LDAP -D
13 AUTH_LDAP"
14
15
16 However, when I add the following to a vhost:
17 AuthType Basic
18 AuthName "blah"
19 AuthLDAPEnabled on
20 AuthLDAPURL "ldap://ldap_ip/ou=People,dc=mydomain,dc=com?uid?one"
21 AuthLDAPGroupAttribute memberUid
22 AuthLDAPGroupAttributeIsDN off
23 Require valid-user
24
25 I get the following error:
26 Invalid command 'AuthLDAPEnabled', perhaps misspelled or defined by a module
27 not included in the server configuration
28
29 What do I need to do to set this up with apache 2.2?
30
31 --
32 Derek Bodner
33 subscribedlists@×××××××××××.com