[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
rootDN problems with slapd-config
- To: <openldap-technical@openldap.org>
- Subject: rootDN problems with slapd-config
- From: Dave Schneider <Dave.Schneider@e2open.com>
- Date: Thu, 25 Aug 2016 15:26:56 -0500
- Authentication-results: spf=none (sender IP is ) smtp.mailfrom=dave.schneider@e2open.com;
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=E2OPEN.onmicrosoft.com; s=selector1-e2open-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=sQv7g7s7QCRdD1myUeMHdDJv6/l92TtXHSRttAN1zl8=; b=qHWB62kwOIrUohBWfZ8yvpYal687TBUp7Dp9s3SCv83jx4cZa+XpYbGy3w8x7H6sTiI/qHeNh2b6hTjiZ/lezzs38IGtC2LzEZoNNTUZ+XX4M46ZlzhvR+HXzZjdHuBZkoQD/IxbJ+HhX/gg3VkDS+mWPt4k7kqsJKwC6DDIkVM=
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
I'm having problems getting the rootDN working when using slapd-config
form of configuration, while the "exact" same configuration using
slapd.conf works fine. Here are my stripped down test versions of the
two configurations (hashed password is 'secret' from slappasswd):
slapd.d/cn=e2config.ldif:
-------------------------
dn: cn=config
objectClass: olcGlobal
cn: config
olcArgsFile: /var/openldap/run/slapd.args
olcPidFile: /var/openldap/run/slapd.pid
dn: cn=schema,cn=config
objectClass: olcSchemaConfig
cn: schema
include: file:///var/openldap/schema/core.ldif
include: file:///var/openldap/schema/cosine.ldif
dn: olcDatabase=frontend,cn=config
objectClass: olcDatabaseConfig
objectClass: olcFrontendConfig
olcDatabase: frontend
dn: olcDatabase=mdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcMdbConfig
olcDatabase: mdb
olcMaxsize: 1073741824
olcSuffix: dc=com
olcRootDN: cn=reader,dc=com
olcRootPW: {SSHA}RIC5hnBuWr4t857KR+dzTEOF/ekQaIVx
olcDbDirectory: /var/openldap/data
olcDbIndex: objectClass eq
olcDbIndex: dc eq
olcDbIndex: cn eq
slapd.conf:
-----------
include /var/openldap/schema/core.schema
include /var/openldap/schema/cosine.schema
backend mdb
pidfile /var/openldap/run/slapd.pid
argsfile /var/openldap/run/slapd.args
database mdb
maxsize 1073741824
suffix dc=com
rootdn cn=reader,dc=com
rootpw {SSHA}RIC5hnBuWr4t857KR+dzTEOF/ekQaIVx
directory /var/openldap/data
index objectClass eq
index dc eq
index cn eq
When I run a simple search for slapd running with the slapd.conf
configuration I get:
$ ldapsearch -D cn=reader,dc=com -w secret -x -LLL -b dc=com -s base dc=*
dn: dc=com
objectClass: top
objectClass: domain
dc: com
But when I run the same search with the slapd.d configuration I get:
$ ldapsearch -D cn=reader,dc=com -w secret -x -LLL -b dc=com -s base dc=*
ldap_bind: Invalid DN syntax (34)
additional info: invalid DN
Debug output on the server side isn't giving much info in addition to
what's already displayed on the client:
57bf52df conn=1000 op=0 do_bind: invalid dn (cn=reader,dc=com)
Any help on what I might be doing wrong is greatly appreciated. Oh
yeah, I'm using version 2.4.44.
Thanks,
Dave