Difference between revisions of "Openldap: Compile"
Jump to navigation
Jump to search
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...) |
Onnowpurbo (talk | contribs) |
||
Line 7: | Line 7: | ||
Lakukan .. | Lakukan .. | ||
− | cp | + | cp openldap-stable-20100719.tgz /usr/local/src/ |
− | gunzip -c openldap- | + | cd /usr/local/src |
− | cd openldap- | + | gunzip -c openldap-stable-20100719.tgz | tar xvfB - |
+ | cd /usr/local/src/openldap-2.4.23/ | ||
./configure | ./configure | ||
make depend | make depend |
Revision as of 10:16, 6 June 2011
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