serverguide - Network Auth - Samba and LDAP - incorrect ldapadd command when adding samba schema

Bug #917319 reported by Jacob Smith
6
This bug affects 1 person
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,cn=schema,cn=config, where "X" is the next sequential schema, entry in the cn=config tree. <-- cn={X}misc is wrong

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,cn=schema,cn=config, where "X" is the next sequential schema, entry in the cn=config tree. <-- 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

description: updated
Connor Imes (ckimes)
affects: ubuntu-docs (Ubuntu) → serverguide
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.