#install ldap
1. install BerkeleyDB.4.6
2. add /usr/local/BerkeleyDB.4.6/lib to /etc/ld.so.conf, then execute ldconfig
3. env CPPFLAGS="-I/usr/local/BerkeleyDB.4.6/include" LDFLAGS="-L/usr/local/BerkeleyDB.4.6/lib" ./configure --prefix /usr/local/openldap
4. make depend
5. make
6. make install
7. go to /usr/local/openldap/libexec execute ./slapd
8. ps -aux | grep slapd verify LDAP server is up
#install ldap browser
#for error:Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable
export DISPLAY=150.245.177.42:0.0
./lbe.sh
#install berkeleyDB
1. go to build_unix directory
2. ../dist/configure
3. make
4. make install
base dn: o=company,c=cn
user dn: cn=manager,o=company,c=cn
Start the LDAP Server:
slapd -d 1 -f ldap.conf.example
slapd -d 1
ldapadd -x -D "cn=Manager,dc=jayway,dc=se" -W -f base_data.ldif
ldapadd -x -D "cn=Manager,dc=jayway,dc=se" -W -f setup_data.ldif
ldapsearch -LLL -b dc=jayway,dc=se "(objectclass=*)" dn
ldapsearch -h 150.245.178.152 -x -D cn=manager,dc=company,dc=com -w secret -b userName=Stone,ou=User,dc=company,dc=com
ldapdelete -h 150.245.178.152 -x -D cn=manager,dc=company,dc=com -w secret userName=Stone,ou=User,dc=company,dc=com
Ldapadd –h 150.245.178.5 –p 389 -x -D "cn=Manager,dc=company,dc=com" -W -f account.ldif