Openldap: Compile
Revision as of 10:14, 6 June 2011 by Onnowpurbo (talk | contribs) (New page: Downoad source code dari http://www.openldap.org/software/download/ ==Compile== Lakukan .. cp gunzip -c openldap-VERSION.tgz | tar xvfB - cd openldap-VERSION ./configure mak...)
Downoad source code dari
http://www.openldap.org/software/download/
Compile
Lakukan ..
cp gunzip -c openldap-VERSION.tgz | tar xvfB - cd openldap-VERSION ./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