Waiting for LDAP server to be ready – OES11

If you got this error while booting OES11: Waiting for LDAP server to be ready or namcd cannot connect to LDAP server in /var/log/messages please follow these steps:

cat /etc/nam.conf
--cut
base-name=o=users
workstation-context=o=servers
admin-fdn=cn=admin,o=users
preferred-server=172.16.10.77
--cut

and replace preferred-server to a correct IP, after change:

cat /etc/nam.conf
--cut
base-name=o=users
workstation-context=o=servers
admin-fdn=cn=admin,o=users
preferred-server=172.16.10.84
--cut

and then:

/var/lib/novell-lum # l
total 92
drwxr-xr-x 2 root root 4096 Nov 11 16:52 ./
drwxr-xr-x 43 root root 4096 Oct 30 10:15 ../
-rw-r--r-- 1 root root 1324 Oct 29 16:47 .172.16.10.77.der
-rw-r--r-- 1 root root 1324 Oct 30 10:29 .172.16.10.83.der

delete an old IP address
rm /var/lib/novell-lum/.172.166.10.77.der

and then refresh namcd:
namconfig cache_refresh
rcnamcd restart

How to browse the eDir using ldapsearch.

To browse the eDir use the Linux ldapsearch command:


ldapsearch -x -h 172.16.12.182 "(objectclass=Person)" > all.text

Used filter “objectclass=Person” will out put all records of users to the all.text file


ldapsearch -x -h 172.16.12.182 "(objectclass=Person)" uid fullname mail loginTime passwordEcpirationTime loginTime > selected.text

Used filter “objectclass=Person” and requested records “uid fullname mail loginTime passwordEcpirationTime loginTime” will out put just selected records of users to the selected.text file.