Public bug reported:

Binary package hint: ubuntu-docs

On this page: https://help.ubuntu.com/10.04/serverguide/C/openldap-
server.html

The instruction under the Setting up ACL section:
"ldapsearch -xLLL -b cn=config -D cn=admin,cn=config -W olcDatabase=hdb 
olcAccess"

will always fail since there is cn=admin,cn=config entry in ldap i.e. it is not 
present in 
/etc/ldap/slapd.d/cn\=config/olcDatabase\=\{0\}config.ldif

The command could only work as 
ldapsearch -LLL -Y EXTERNAL -H ldapi:/// -b cn=config dn

Unless you include a step to set up cn=admin,cn=config as follows:
ldapadd -Y EXTERNAL -H ldapi:/// -f config.ldif

where the contents of config.ldif are:
dn: olcDatabase={-1}frontend,cn=config
changetype: modify
delete: olcAccess

dn: olcDatabase={0}config,cn=config
changetype: modify
add: olcRootDN
olcRootDN: cn=admin,cn=config

dn: olcDatabase={0}config,cn=config
changetype: modify
add: olcRootPW
olcRootPW: {MD5}Xr4ilOzQ4PCOq3aQ0qbuaQ==

dn: olcDatabase={0}config,cn=config
changetype: modify
delete: olcAccess


Please note the importance of the spaces.

** Affects: ubuntu-docs (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/702916

Title:
  ldap 10.04 set up documentation missing a step

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to