Can't get ldap cachemgr to start.


 
Thread Tools Search this Thread
Operating Systems Solaris Can't get ldap cachemgr to start.
# 1  
Old 03-22-2011
Can't get ldap cachemgr to start.

Hi,
I had a Solaris 10 system running ldap perfectly with no problems. However, there was a power failure over the weekend, and now, ldap does not work.

1. svcadm enable svc:/network/ldap/client:default executes, but the service does not get enabled.
# svcs -a |grep ldap
disabled 0:14:00 svc:/network/ldap/client:default


2. '/var/ldap/ldap_client_file' is not there.

3. I re-initalized the client manually using the command below, but it does not still start the ldap client service.
ldapclient manual -v -a defaultsearchbase=dc=amber,dc=xxx,dc=xxx,dc=com -a proxyDN=cn=proxyagent,ou=profile,dc=xxx,dc=xxx,dc=com -a domainname=xxx.xxx.com-a proxypassword=mypassword 111.111.111.111

4. If I try to re-initalize the client with this command
/usr/sbin/ldapclient -v init -a proxyDN=cn=proxyagent,ou=profile,dc=xxx,dc=xxx,dc=com -a domainname=xxx.xxx.com -a proxyPassword=my password 111.111.111.111

It generate the following error:


Parsing proxyDN=cn=proxyagent,ou=profile,dc=xxx,dc=xxx,dc=com
Parsing domainname=xxx.xxx.com
Parsing proxyPassword=mypassowrd
Arguments parsed:
domainName: xxx.xxx.com
proxyDN: cn=proxyagent,ou=profile,dc=xxx,dc=xxx,dc=com
proxyPassword: mypassword
defaultServerList: 111.111.111.111
Handling init option
About to configure machine by downloading a profile
No profile specified. Using "default"
findBaseDN: begins
findBaseDN: ldap not running
findBaseDN: calling __ns_ldap_default_config()
__ns_ldap_list return NULL resultp
findBaseDN: Err exit
LDAP ERROR (91): Can't connect to the LDAP server.
Failed to find defaultSearchBase for domain xxx.xxx.com

4. /var/adm/messages file has the following message:
libsldap: Status: 2 Mesg: Unable to load configuration '/var/ldap/ldap_client_file' ('').

How do I get ldap running again? What do I need to get the cachemgr working?

Smilie
Please help.

# 2  
Old 03-22-2011
Code:
LDAP ERROR (91): Can't connect to the LDAP server.

Start your directory server.
This User Gave Thanks to jlliagre For This Post:
# 3  
Old 03-22-2011
jlliagre,
Thank you! That worked.
I started the directory server and then did a ldapclient init, and it executed without an error and started the cachemanger.

However, a
ps -ef |grep sldap
produces nothing.

I still can't access any of the ldap accounts. Any thoughts?

---------- Post updated at 07:38 AM ---------- Previous update was at 07:30 AM ----------

Sorry, I take that back. I still don't see a sldap process, but once I started ldapclient init without the manual process, all the accounts started working again.

Not sure why I don't see the sldap process, but everything seems to be back on track.

Thank you for you help.
# 4  
Old 03-22-2011
Is your ldap server installed on the same ldap client machine ?
# 5  
Old 03-22-2011
Yes. And everything is working out great, after starting the directory server. I just realised why I can't see the directory server. It was a typo. I was looking for a process named sldap instead of slapd!

Thank you for you help. I really appreciate it.Smilie
# 6  
Old 03-22-2011
# 7  
Old 03-22-2011
Oops! I will try to get this setup. I assume that you me that is should be added to the startup process, etc? Thank you for the link.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Splitting week start date and end date based on custom period start dates

Below are my custom period start and end dates based on a calender, these dates are placed in a file, for each period i need to split into three weeks for each period row, example is given below. Could you please help out to achieve solution through shell script.. File content: ... (2 Replies)
Discussion started by: nani2019
2 Replies

2. UNIX for Beginners Questions & Answers

Start /SYS on SUN SPARC does not start machine [SUN SPARC ENTERPRISE T-5240]

-> start /SYS Are you sure you want to start /SYS (y/n)? y Starting /SYS ]-> show HOST /HOST Targets: bootmode diag domain Properties: autorestart = reset autorunonerror = false bootfailrecovery = poweroff ... (29 Replies)
Discussion started by: z_haseeb
29 Replies

3. Solaris

LDAP Client not connecting to LDAP server

I have very limited knowledge on LDAP configuration and have been trying fix one issue, but unsuccessful. The server, I am working on, is Solaris-10 zone. sudoers is configured on LDAP (its not on local server). I have access to login directly on server with root, but somehow sudo is not working... (9 Replies)
Discussion started by: solaris_1977
9 Replies

4. UNIX for Dummies Questions & Answers

How can I replace the lines that start with a star and replace it with numbers start from 1?

I need to replace the (*) in the fist of a list with numbers using sed for example > this file contain a list * linux * computers * labs * questions to >>>> this file contain a list 1. linux 2. computers 3. labs 4. questions (7 Replies)
Discussion started by: aalbazie
7 Replies

5. UNIX for Advanced & Expert Users

something like LDAP Administrator 2011.1 "LDAP-SQL" but for the CLI

Hi I am searching a tool like "LDAP Administrator 2011.1"/ "LDAP-SQL" but for the CLI. Wish to use LDAP-SQL in scripts (non Windows GUI environment) http://ldapadministrator.com/resources/english/2011.1/images/sqlquery_large.png Softerra LDAP Administrator 2011.1 - What's New OS is... (2 Replies)
Discussion started by: slashdotweenie
2 Replies

6. Shell Programming and Scripting

Start program in background (or start crontab ahead of time)

Hey! I'm working on a script that will add a user, create some configfiles, and add a crontab for the user. The crontab looks like the following: @reboot /home/user/program config.conf & I would like for this process to start at the end of my script under the corresponding username by... (0 Replies)
Discussion started by: noratx
0 Replies

7. Solaris

ldap client fails to start under solaris 10

I have an issue here with ldap client. It stoped and won't start. What I have got: sadm $ tail /var/adm/messages Apr 16 09:17:24 hostname inetd: libsldap: Status: 2 Mesg: Unable to load configuration '/var/ldap/ldap_client_file' (''). Apr 16 09:17:24 hostname inetd: libsldap: Status: 2 ... (3 Replies)
Discussion started by: aixlover
3 Replies

8. AIX

Q: how to start a service when system start

As topic, assume we have a service called "blahservice" and we can start it by: startsrc -s blahservice what is the best practice to run such command when system start? - directly use mkitab to add it into /etc/inittab or - drop startup scripts in /etc/rc.d/rcX.d I know they... (4 Replies)
Discussion started by: acerlinux
4 Replies

9. Linux

where to put an application if i want to start it on start up

hi i want to know the way by which i put any file somewhere and it get s started when the system restarts or bots i mean whenever my system starts that application must also start thanks (3 Replies)
Discussion started by: shukla_chanchal
3 Replies

10. UNIX for Dummies Questions & Answers

How do I start a program when I start my Computer?

I'm running MAC OS X and I'm wondering how I start 'nixey programs (not normal apps) on startup? Things like the dnet client and hxd Hotline Server. Anyone know? (1 Reply)
Discussion started by: l008com
1 Replies
Login or Register to Ask a Question