I have finish the ladp configure...I can give u some help..
It's my ldap.conf:
# $OpenLDAP: pkg/ldap/libraries/libldap/ldap.conf,v 1.4.8.6 2000/09/05 17:54:38 kurt Exp $
#
# LDAP Defaults
#
# See ldap.conf(5) for details
# This file should be world readable but not world writable.
#BASE dc=example, dc=com
#URI ldap://ldap.example.com ldap://ldap-master.example.com:666
#SIZELIMIT 12
#TIMELIMIT 15
#DEREF never
HOST 192.168.0.2
BASE dc=beic,dc=gov.cn
It's my sldap.conf:
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.8.8.7 2001/09/27 20:00:31 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
loglevel 296
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
#######################################################################
# ldbm database definitions
#######################################################################
database ldbm
suffix "dc=beic,dc=gov.cn"
rootdn "cn=root,dc=beic,dc=gov.cn"
rootpw beic
directory /var/lib/ldap
mode 0600
index objectClass eq
index cn,mail,sn eq,sub
index departmentNumber eq
cachesize 2000
access to *
by * read
It's a user configure script:
dn:cn=liudan,ou=people,dc=beic,dc=gov.cn
cn:liudan
sn:liudan
mail:liu_dan@beic.gov.cn
labeledURI:
http://www.beic.gov.cn
roomNumber:1234 liudan
departmentNumber:Engineering
telephoneNumber:010-66415588-1113
pager:010-66415588
mobile:010-13661031628
objectclass:inetOrgPerson
It's my work steps:
root@RH9 openldap]# ldapadd -f users_liudan.ldif -x -D "cn=root,dc=beic,dc=gov.cn" -w beic
adding new entry "cn=liudan,ou=people,dc=beic,dc=gov.cn"
[root@RH9 openldap]# ldapadd -f users_liuej.ldif -x -D "cn=root,dc=beic,dc=gov.cn" -w beic
adding new entry "cn=liuej,ou=people,dc=beic,dc=gov.cn"
[root@RH9 openldap]# ldapmodify -f users_liuej.ldif -x -D "cn=root,dc=beic,dc=gov.cn" -w beic
modifying entry "cn=liuej,ou=people,dc=beic,dc=gov.cn"
[root@RH9 openldap]# ldapmodify -f users_liuej.ldif -x -D "cn=root,dc=beic,dc=gov.cn" -w beic
modifying entry "cn=liuej,ou=people,dc=beic,dc=gov.cn"
[root@RH9 openldap]# ldapmodify -f users_liuej.ldif -x -D "cn=root,dc=beic,dc=gov.cn" -w beic
modifying entry "cn=liuej,ou=people,dc=beic,dc=gov.cn"
[root@RH9 openldap]# ldapmodify -f users_liuej.ldif -x -D "cn=root,dc=beic,dc=gov.cn" -w beic
modifying entry "cn=liuej,ou=people,dc=beic,dc=gov.cn"