serverguide - Network Auth - Samba and LDAP - incorrect ldapadd command when adding samba schema
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Server Guide |
New
|
Undecided
|
Unassigned |
Bug Description
Description: Ubuntu 10.04.3 LTS
Release: 10.04
Step 5 of the Samba and LDAP section of the Server Guide (in Network Authentication) shows the old way (incorrect) to modify config which doesn't work. Also the line after describing what it should look like when complete has the wrong name in it. *update* the next bullet after step 5 about adding indexes contains a ldapmodify and ldapsearch that are both using the older incorrect commands.
5. Finally, using the ldapadd utility, add the new schema to the directory:
ldapadd -x -D cn=admin,cn=config -W -f /tmp/cn\=samba.ldif <-- way prior to make cn=config changes
There should now be a dn: cn={X}misc,
Should be:
5. Finally, using the ldapadd utility, add the new schema to the directory:
sudo ldapadd -Y EXTERNAL -H ldapi:/// -f /tmp/cn\=samba.ldif <-- current way to modify cn=config
There should now be a dn: cn={X}samba,
*update*
The two incorrect commands:
ldapmodify -x -D cn=admin,cn=config -W -f samba_indexes.ldif
ldapsearch -xLLL -D cn=admin,cn=config -x -b cn=config -W olcDatabase={1}hdb
Corrected:
ldapmodify -Y EXTERNAL -H ldapi:/// -f samba_indexes.ldif
ldapsearch -LLL -Y EXTERNAL -H ldapi:/// -b cn=config olcDatabase={1}hdb