Sys Admin Best Practices - startup ldap client problem

Dear All ,

I had setup open solaris b55 with trusted extension ,inside box is sun directory server , i am also setup as ldap client .But i had problem after rebooted the machine , when i am type svcs -a | grep client , the status ldap client going to maintenance mode ,here log from dmesg :

Mar 27 15:28:00 e250 svc.startd[7]: [ID 122153 daemon.warning] svc:/network/ldap/client:default: Method or service exit timed out. Killing contract 29.

Mar 27 15:28:00 e250 svc.startd[7]: [ID 748625 daemon.error] network/ldap/client:default timed out: transitioned to maintenance (see 'svcs -xv' for details)

Mar 27 15:28:01 e250 automountd[317]: [ID 293258 daemon.warning] libsldap: Status: 2 Mesg: Unable to load configuration '/var/ldap/ldap_client_file' ('').

Mar 27 15:28:01 e250 automountd[317]: [ID 793764 daemon.error] Can not determine version of LDAP profile that is used (4, Unable to load configuration '/var/ldap/ldap_client_file' ('').). Using version 2 profile defaults

Mar 27 15:28:01 e250 automount[318]: [ID 793764 user.error] Can not determine version of LDAP profile that is used (4, Unable to load configuration '/var/ldap/ldap_client_file' ('').). Using version 2 profile defaults

Mar 27 15:28:01 e250 automount[318]: [ID 293258 daemon.warning] libsldap: Status: 2 Mesg: Unable to load configuration '/var/ldap/ldap_client_file' ('')

for your information :

bash-3.00# cd /var/ldap/

bash-3.00# ls -al

total 22

drwxr-xr-x3 rootsys 512 Mar 27 15:38 .

drwxr-xr-x 44 rootsys 1024 Mar 23 10:14 ..

-rw-r--r--1 rootroot5673 Mar 27 15:38 cachemgr.log

-r--1 rootroot 200 Mar 27 15:38 ldap_client_cred

-r--1 rootroot 396 Mar 27 15:38 ldap_client_file

drwxr-xr-x2 rootroot 512 Mar 22 18:14 restore

bash-3.00# more /var/svc/log/network-ldap-client:default.log

[ Mar 26 19:52:41 Disabled. ]

[ Mar 26 19:52:50 Enabled. ]

[ Mar 26 19:52:50 Executing start method ("/usr/lib/ldap/ldap_cachemgr") ]

[ Mar 26 19:52:51 Method "start" exited with status 0 ]

[ Mar 27 09:37:57 Executing start method ("/usr/lib/ldap/ldap_cachemgr") ]

[ Mar 27 09:39:58 Method or service exit timed out. Killing contract 28 ]

[ Mar 27 09:39:58 Method "start" failed due to signal KILL ]

[ Mar 27 09:39:58 Executing start method ("/usr/lib/ldap/ldap_cachemgr") ]

[ Mar 27 09:41:59 Method or service exit timed out. Killing contract 50 ]

[ Mar 27 09:42:00 Method "start" failed due to signal KILL ]

[ Mar 27 09:42:00 Executing start method ("/usr/lib/ldap/ldap_cachemgr") ]

[ Mar 27 09:44:01 Method or service exit timed out. Killing contract 52 ]

[ Mar 27 09:44:01 Method "start" failed due to signal KILL ]

[ Mar 27 14:12:05 Executing start method ("/usr/lib/ldap/ldap_cachemgr") ]

[ Mar 27 14:14:05 Method or service exit timed out. Killing contract 28 ]

[ Mar 27 14:14:06 Method "start" failed due to signal KILL ]

[ Mar 27 14:14:06 Executing start method ("/usr/lib/ldap/ldap_cachemgr") ]

[ Mar 27 14:16:06 Method or service exit timed out. Killing contract 49 ]

[ Mar 27 14:16:06 Method "start" failed due to signal KILL ]

[ Mar 27 14:16:06 Executing start method ("/usr/lib/ldap/ldap_cachemgr") ]

[ Mar 27 14:18:06 Method or service exit timed out. Killing contract 51 ]

[ Mar 27 14:18:06 Method "start" failed due to signal KILL ]

[ Mar 27 15:26:00 Executing start method ("/usr/lib/ldap/ldap_cachemgr") ]

[ Mar 27 15:28:00 Method or service exit timed out. Killing contract 29 ]

[ Mar 27 15:38:46 Leaving maintenance because disable requested. ]

[ Mar 27 15:38:47 Disabled. ]

[ Mar 27 15:38:55 Enabled. ]

[ Mar 27 15:38:55 Executing start method ("/usr/lib/ldap/ldap_cachemgr") ]

[ Mar 27 15:38:56 Method "start" exited with status 0 ]

Any idea to solve this problem ?

Regards

hadi

[4002 byte] By [hadi74a] at [2007-11-26 23:03:15]
# 1

Hi Hadi,

(do you still have this problem?, btw: this is rather a question for another forum - networking or directory servers)

I configured the native Solaris ldap client for the first time last week - it's rather horrible. ;-)

the doc (could be better too):

http://docs.sun.com/app/docs/doc/816-4556, (chapter 12 ff.)

Do you use SUN directory server?

Use the -v option when calling ldapclient, try it with the subcommand 'manual' (man ldapclient). If there is no '/var/ldap/ldap_client_file' etc. created the configuration with ldapclient simply failed.

If you are still interested I can post a description how I did it here...

Greetings

Jochem

jochem_ippersa at 2007-7-10 13:54:45 > top of Java-index,General,Sys Admin Best Practices...