[Date Prev][Date Next] [Chronological] [Thread] [Top]

"new style" on ubuntu 8.04



Hi, all
I am installing openldap for the first time. On ubuntu 8.04 server.

Things are going, I have a server, still without SASL, and a client working.
I used the migration tools, and set rootdn and rootpw on my database conf

I was reading a bit more, and I saw a command that didn't work
$ ldapsearch -xLLL -b cn=config -D cn=admin,cn=config -W olcDatabase={1}hdb
on https://help.ubuntu.com/9.10/serverguide/C/openldap-server.html (note, 9.10, not 8.04)

A bit more reading, and I tried to get the "new style" configuration as in http://www.openldap.org/doc/admin24/slapdconf2.html with
$ sudo mkdir /etc/ldap/slapd.d
$ sudo chown -R openldap:openldap /etc/ldap/slapd.d
$ sudo slaptest -f /etc/ldap/slapd.conf -F /etc/ldap/slapd.d
and change, in /etc/default/slapd,
SLAPD_CONF=/etc/ldap/slapd.d

Still can't run the command (with the plain rootpw password from the old slapd.conf)

$ ldapsearch -xLLL -b cn=config -D cn=admin,cn=config -W olcDatabase={1}hdb
ldap_bind: Invalid credentials (49)

I've read http://www.openldap.org/doc/admin24/appendix-common-errors.html
and am now trying to check things and reading around the "new style" and ACL's.

Should I be able to run that command and use the "new style" with ubuntu 8.04 (hardy)?
If so, I'll thank you for any help.

PS:
ii slapd 2.4.9-0ubuntu0.8.04.3 OpenLDAP server (slapd)
ii ldap-utils 2.4.9-0ubuntu0.8.04.3 OpenLDAP utilities
ii migrationtools 47-3ubuntu2 Migration scripts for LDAP
Linux main 2.6.24-27-server #1 SMP Fri Mar 12 01:23:09 UTC 2010 x86_64 GNU/Linux