Install Open LDAP
1.Install the openldap, openldap-servers, and openldap-clients RPMs.
2.Edit the /etc/openldap/slapd.conf file to reference your LDAP domain and server.
suffix “dc=your-domain,dc=com”
suffix “dc=example,dc=com”
rootdn “cn=root,dc=example,dc=com”
jalankan:
slappasswd
kopikan hasil di atas ke /etc/openldap/slapd.conf
rootpw {SSHA}vv2y+i6V6esazrIv70xSSnNAJE18bb2u
jalankan:
chown -R ldap /var/lib/ldap
3.Start slapd with the command:
/sbin/service/ldap start
After you have configured LDAP correctly, you can use chkconfig, ntsysv, or the Services Configuration Tool to configure LDAP to start at boot time. For more information about configuring services, refer to the chapter titled Controlling Access to Services in the Red Hat Linux Customization Guide.
4.Add entries to your LDAP directory with ldapadd.
5.Use ldapsearch to see if slapd is accessing the information correctly.
6.At this point, your LDAP directory should be functioning properly and you can configure any LDAP-enabled applications to use the LDAP directory.
Di client:
editing /etc/nsswitch.conf
passwd: files ldap
shadow: files ldap
group: files ldap
No comments yet.
Leave a Reply
-
Recent
-
Links
-
Archives
- September 2007 (1)
- July 2007 (2)
- May 2007 (1)
- April 2007 (3)
- January 2007 (1)
-
Categories
-
RSS
Entries RSS
Comments RSS