可否有人能將設定的過程Post上來呢?我是使用tarball的方式安裝的。
Setup LDAP Authencate for apache 1.3.26 over RedHat 7.x
--------------------------------
1. download auth_ldap-1.6.0.tar.gz from
http://www.rudedog.org/auth_ldap/2. tar zxvf auth_ldap-1.6.0.tar.gz
#假設 apache 安裝在 /usr/local/apache
3. ./configure --with-apxs=/usr/local/apache/bin/apxs
#install auth_ldap.so into /usr/lib/apache
4. make && make install
5. edit /home/httpd/conf/httpd/conf and add these lines
LoadModule auth_ldap_module /usr/lib/apache/auth_ldap.so
AddModule auth_ldap.c
5.1 edit httpd.conf,In protect directory add this entry
AllowOverride AuthConfig
Note:
If "LoadModule is not a valid command" shown when apache startup,check your apache DAO enabled or not (by command /home/httpd/bin/httpd -l)
if DAO is enabled there will "mod_so.c" shown otherwise recompile your apache with --enable-module=so
6. edit .htaccess in protect directory as
AuthName "內部網路"
AuthType Basic
AuthLDAPURL ldap://localhost/dc=test,dc=example.com?uid
require valid-user
That all,hope that works for you !