ldap の変更点   


* opneldap [#e544015f]
 yum -y install openldap-clients openldap-servers
 chkconfig --level 2345 ldap on

/etc/openldap/slapd.conf
 rootpw secret

 /etc/init.d/ldap start

/root/manager.ldif
 dn: dc=my-domain,dc=com
 objectClass: dcObject
 objectClass: organization
 dc: my-domain
 o: my-domain
 
 dn: cn=Manager,dc=my-domain,dc=com
 objectClass: organizationalRole
 cn: Manager
 
 dn: ou=People,dc=my-domain,dc=com
 objectClass: organizationalUnit
 ou: People
 
 dn: ou=Group,dc=my-domain,dc=com
 objectClass: organizationalUnit
 ou: Group

 ldapadd -x -D "cn=Manager,dc=my-domain,dc=com" -W -f manager.ldif


* phpLdapAdmin [#g703c38e]
 wget http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/5/x86_64/epel-release-5-4.noarch.rpm
 rpm -ivh epel-release-5-4.noarch.rpm
 yum --enablerepo=epel install phpldapadmin

/etc/httpd/conf.d/phpldapadmin.conf 
 Alias /phpldapadmin /usr/share/phpldapadmin/htdocs
 Alias /ldapadmin /usr/share/phpldapadmin/htdocs
 <Directory /usr/share/phpldapadmin/htdocs>
   Order Deny,Allow
   Deny from all
   Allow from 127.0.0.1 192.168.0.
 </Directory> 

 /etc/init.d/httpd restart

 login : cn=Manager,dc=my-domain,dc=com
 password : password

/etc/phpldapadmin/config.php
 // 最終行
 // 有効にする
 $servers->setValue('login','attr','dn');

 参考
 http://satospo.sakura.ne.jp/blog_archives/tech/web/ldapadmin_inst1.html