Openldap: Compile
Revision as of 10:16, 6 June 2011 by Onnowpurbo (talk | contribs)
Downoad source code dari
http://www.openldap.org/software/download/
Compile
Lakukan ..
cp openldap-stable-20100719.tgz /usr/local/src/ cd /usr/local/src gunzip -c openldap-stable-20100719.tgz | tar xvfB - cd /usr/local/src/openldap-2.4.23/ ./configure make depend make make test su root -c 'make install'
Edit konfigurasi
Edit /usr/local/etc/openldap/slapd.conf
vi /usr/local/etc/openldap/slapd.conf
database bdb suffix "dc=<MY-DOMAIN>,dc=<COM>" rootdn "cn=Manager,dc=<MY-DOMAIN>,dc=<COM>" rootpw secret directory /usr/local/var/openldap-data
contoh
database bdb suffix "dc=example,dc=com" rootdn "cn=Manager,dc=example,dc=com" rootpw secret directory /usr/local/var/openldap-data
Running
Jalankan
su root -c /usr/local/libexec/slapd
Testing
ldapsearch -x -b -s base '(objectclass=*)' namingContexts
Masukan data
dn: dc=<MY-DOMAIN>,dc=<COM> objectclass: dcObject objectclass: organization o: <MY ORGANIZATION> dc: <MY-DOMAIN> dn: cn=Manager,dc=<MY-DOMAIN>,dc=<COM> objectclass: organizationalRole cn: Manager
contoh
dn: dc=example,dc=com objectclass: dcObject objectclass: organization o: Example Company dc: example dn: cn=Manager,dc=example,dc=com objectclass: organizationalRole cn: Manager