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 use bind mounts in Linux.

Bind mounting is quite simple. Instead of mounting a block device into a particular path you are mounting one path into another path.

mount -o bind /home/andzia /ftp/andzia

You will now see this reflected when running the mount command:

mount | grep var
/home/andzia on /ftp/andzia type none (rw,bind)

If you want this to persist across reboots, you’ll just need to update your /etc/fstab with the bind mount as well.

/home/andzia /ftp/andzia none bind 0 0