From: Ralf Haferkamp (rhafer_at_suse.de)
Date: Thu Jun 08 2006 - 13:05:56 CEST
From: Ralf Haferkamp <rhafer@suse.de> Date: Thu, 8 Jun 2006 13:05:56 +0200 Message-Id: <200606081305.56657.rhafer@suse.de> Subject: Re: [suse-sles-e] Problem with OpenLDAP in SLES9 SP3
On Thursday 08 June 2006 12:42, shashi wrote:
> Ralf Haferkamp wrote:
> > On Thursday 08 June 2006 09:56, shashi wrote:
[..]
> >
> > You could also try to start OpenLDAP directly from the command line with:
> > /usr/lib/openldap/slapd -u ldap -g ldap -d -1 \
> > -h "ldap://0.0.0.0:10389 ldaps://0.0.0.0:10636"
> > To see if that works. (This might print a lot of stuff to stdout)
>
> ------------------------------------------------------------------------
[..]
> -------------------------------------------------------------------------
>
> With this command (I shorten your specified command),
> #/usr/lib/openldap/slapd -u ldap -g ldap -h ldap://0.0.0.0:10389
>
> my OpenLDAP is working fine. I can able to add and delete entries in
> OpenLDAP.
>
> SuSE:~ # rcldap status
> Checking for service ldap: running
>
> So, what was the problem? Is the problem belongs to OpenLDAP or the
> problem belongs to /etc/init.d/script on SLES9 SP3?
Might be a problem in /etc/init.d/ldap. To make sure please insert the
following line to /etc/init.d/ldap directly after the
'echo -n "Starting ldap-server"' line:
echo -n "$SLAPD_BIN -h <$SLAPD_URLS> <$USER_CMD> <$GROUP_CMD> <$OPENLDAP_SLAPD_PARAMS> <$SLAPD_SLP_REG>"
After that do rcldap restart and sent the output of that.
> But, still, if i start the service with #openldap start, i will get
> these message in my log file.
>
> SuSE slapd[7651]: slapd startup: initiated.
> SuSE slapd[7651]: backend_startup: starting "dc=suse,dc=com"
> SuSE slapd[7651]: bdb_db_open: dc=suse,dc=com
> SuSE slapd[7651]: bdb_db_open: dbenv_open(/var/lib/ldap/)
> SuSE slapd[7651]: slapd starting
> SuSE slapd[7651]: daemon: added 6r
> SuSE slapd[7651]: daemon: added 7r
> SuSE slapd[7651]: daemon: listen(ldap://<hostname>:10389/, 5)
> failed errno=98 (Address already in use)
> SuSE slapd[7651]: slapd shutdown: initiated
> SuSE slapd[7651]: ====> bdb_cache_release_all
> SuSE slapd[7651]: slapd shutdown: freeing system resources.
> SuSE slapd[7651]: slapd stopped.
-- Ralf Haferkamp SUSE LINUX Products GmbH, Maxfeldstrasse 5, D-90409 Nuernberg T: +49-911-74053-0 F: +49-911-74053575 - Ralf.Haferkamp@suse.com --------------------------------------------------------------------- To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com For additional commands, e-mail: suse-sles-e-help@suse.com
This archive was generated by hypermail 2.1.7 : Thu Jun 08 2006 - 13:06:04 CEST