Installation Record of OpenLDAP, and LDAP GUI tools

Last updated on Aug 10th 2001

OpenLDAP

OpenLDAP 2.0.11 for Windows and Linux are available from the site: http://www.openldap.org
The following instructions are based on the QuickStart guide which is available from the openldap.org.

Windows2000

Installation on Windows2000 are pretty easy. Just extract openldap-2_0_11-win32build-20010731.zip into under directory C:\openldap2.0.11\.

Trubolinux6.5

Although OpenLDAP 2.0.3 is provided in the Turbolinux package, it is obsolete.
If OpenLDAP 2.0.3 is already installed in Turbolinux through the RPM. You should uninstall related files in you system.
rpm -qa | grep ldap
rpm -e openldap-2.0.3.rpm
etc...

rm -rf /etc/ldap
etc...

Extract the archive and follow the INSTALL document in the archive.
tar xvfz openldap-stable-2001024.tgz (or use unstuff)
cd openldap-2.0.11
./configure
make
make install

Configurations

Edit slapd.conf:
cd /usr/local/etc/openldap
vi slapd.conf
"/usr/local/etc/openldap/slapd.conf"
include        /usr/local/etc/openldap/schema/core.schema
pidfile         /usr/local/var/slapd.pid
argsfile       /usr/local/var/slapd.args
database        ldbm
suffix          "dc=teddy,dc=net"
rootdn          "cn=master,dc=teddy,dc=net"
rootpw          honey
directory       /usr/local/var/openldap-ldbm
index   objectClass     eq
Start LDAP server:
/usr/local/libexec/slapd

NOTE:
To stop the LDAP server, type

kill -INT <process id of slapd listed by ps aux>
or
kill -INT `cat /usr/local/var/slapd.pid`
Check the configuration:
IN:
ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts
OUT:
gContexts
version: 2
 
#
# filter: (objectclass=*)
# requesting: namingContexts
#
 
#
dn:
namingContexts: dc=teddy,dc=net
 
# search result
search: 2
result: 0 Success
 
# numResponses: 2
# numEntries: 1
Write LDIF to add entries.

"quickstart.ldif"

dn: dc=teddy,dc=net
objectclass: dcObject
objectclass: organization
o: Teddy's Network
dc: teddy
 
dn: cn=master,dc=teddy,dc=net
objectclass: organizationalRole
cn: master  
ldapadd -x -D "cn=master,dc=teddy,dc=net" -W -f quickstart.ldif
Enter LDAP Password: <TYPE honey>
adding new entry "dc=teddy,dc=net"
 
adding new entry "cn=master,dc=teddy,dc=net"

NOTE:
If you'd like to remove old batabase and to start with new configuration, stop the LDAP  server by kill -INT command. Then remove all files under /usr/local/var/openldap-ldbm/. After that start the LDAP server again.

ldapsearch -x -b 'dc=teddy,dc=net' '(objectclass=*)'
version: 2

#
# filter: (objectclass=*)
# requesting: ALL
#
 
# teddy,dc=net
dn: dc=teddy,dc=net
objectClass: dcObject
objectClass: organization
o: Teddy's Network
dc: teddy
 
# master,dc=teddy,dc=net
dn: cn=master,dc=teddy,dc=net
objectClass: organizationalRole
cn: master
 
# search result
search: 2
result: 0 Success
 
# numResponses: 3
# numEntries: 2


GQ

This tool is available from the site: http://biot.com/gq/
Althogh this tool is created for GNOME, this works fine under KDE too.

Extract the archive and follow the INSTALL document in the archive.

tar xvfz gq-0.4.0.tar.gz (or use unstuff)
cd gq-0.4.0
./configure
make
make install
Launch the tool.
gq
Open preferences dialog from the File menu.
Select a 'Servers' tab and create a new connection for localhost.
The settins of the localhost are as follows.

Now we can browse the entries and can edit attributes using GUI interface:-)
If you don't setup server connection appropriately, 'Insufficient access' error message appears when an attribute is editted.

This is the top level of the tree, or the 'suffix'.

The 'master' with passwd 'honey' is here.


LDAP Browser/Editor

This tool is available from the site: http://www.iit.edu/~gawojar/ldap/

Extract the package.

tar xvfz Browser282b2.tar.gz (or use unstuff)
LDAP Browser/Editor v2.8.2 is written in Java. Before launching the software, jdk 1.3.1 should be installed.
The application is launched using lbe.sh.
cd ldapbrowser
./lbe.sh
Add new session to the SessionList. Settings for the connection to the localhost are as follows.

Top level of the tree is shown like this.

The cn=master entry is here.


KLDAP

This tool is available from the site: http://www.mountpoint.ch/oliver/kldap/

The installation of kldap-0.4 on the Turbolinux6.5 was not succeeded because of the version of the library.
Your should setup the library if you would like to use KLDAP.
GQ and LDAP Browser/Editor seems enough for us though. *giggles*


Congrats!

We're ready to use OpenLDAP and associative tools for our development. Have fun:-)