You are not logged in.

#1 2009-12-01 14:35:57

Henirk
Member
Registered: 2009-12-01
Posts: 6

OpenLDAP problem

Hi!

I am trying to configure an openldap server for easy managing of users and groups over all of our linux servers.
I am following a guide from the wiki (http://wiki.archlinux.org/index.php/Sec … ll_Network) but when I tried to start the ldap service it just said fail.

I checked the /var/log/everything.log and it says

Dec  1 16:12:35 arch01 slapd[1299]: @(#) $OpenLDAP: slapd 2.4.19 (Oct 24 2009 08:42:21) $
Dec  1 16:12:35 arch01  nobody@arch: /build/src/openldap-2.4.19/servers/slapd
Dec  1 16:12:35 arch01 slapd[1299]: slapd stopped.
Dec  1 16:12:35 arch01 slapd[1299]: connections_destroy: nothing to destroy.

Could someone please help me out? smile

Thanks!

Offline

#2 2009-12-01 14:46:05

Henirk
Member
Registered: 2009-12-01
Posts: 6

Re: OpenLDAP problem

After running a "slapd -d 5" i get

@(#) $OpenLDAP: slapd 2.4.19 (Oct 24 2009 08:42:21) $
        nobody@arch:/build/src/openldap-2.4.19/servers/slapd
ldap_pvt_gethostbyname_a: host=arch01, r=0
daemon_init: <null>
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
daemon: listener initialized ldap:///
daemon_init: 2 listeners opened
ldap_create
slapd init: initiated server.
slap_sasl_init: initialized!
bdb_back_initialize: initialize BDB backend
bdb_back_initialize: Berkeley DB 4.8.24: (August 14, 2009)
hdb_back_initialize: initialize HDB backend
hdb_back_initialize: Berkeley DB 4.8.24: (August 14, 2009)
bdb_db_init: Initializing BDB database
>>> dnPrettyNormal: <dc=example,dc=org>
=> ldap_bv2dn(dc=example,dc=org,0)
<= ldap_bv2dn(dc=example,dc=org)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=example,dc=org)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(dc=example,dc=org)=0
<<< dnPrettyNormal: <dc=example,dc=org>, <dc=example,dc=org>
>>> dnPrettyNormal: <cn=admin,dc=example,dc=org>
=> ldap_bv2dn(cn=admin,dc=example,dc=org,0)
<= ldap_bv2dn(cn=admin,dc=example,dc=org)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=admin,dc=example,dc=org)=0
=> ldap_dn2bv(272)
<= ldap_dn2bv(cn=admin,dc=example,dc=org)=0
<<< dnPrettyNormal: <cn=admin,dc=example,dc=org>, <cn=admin,dc=example,dc=org>
slapd destroy: freeing system resources.
slapd stopped.
connections_destroy: nothing to destroy.

Offline

#3 2009-12-01 15:06:21

Henirk
Member
Registered: 2009-12-01
Posts: 6

Re: OpenLDAP problem

Resolved,

There was something wrong with the /etc/openslapd/slapd.conf file.

slapd -Tt

To check if the config file is right.

Offline

#4 2009-12-02 10:36:16

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,221
Website

Re: OpenLDAP problem

The few times I had trouble with openldap, I found it a b*tch to find what was actually causing the problem. IMHO logging is crucial for every app, let alone an app that is so basic and necessary for many people...

Offline

Board footer

Powered by FluxBB