ldapdiff cookbook

0.  create a smaple ldap database (see slapd.conf.sample)
1.  add initial data with "./addentry.sh webtomware.init.ldif" 
    (password: webtomware)
2.  add personal data with "./addentry.sh webtomware.user.ldif"
    (password: webtomware)
2a. if you run into errors try "./addentry.sh webtomware_without_jpeg.user.ldif"
    (ubuntu (hardy) doesn't seem to support binary enabled ldapadd)
3.  change an attribute like the mail address in "webtomware.user.ldif" from 
    "Thomas.Reith@rhoen.de" to "Thomas.Reith@vogelsberg.de"
4.  run ../ldapdiff -c ldapdiff.conf -d 2 -p user -f webtomware.user.ldif
    run ../ldapdiff -c ldapdiff.conf -d 2 -p group -f webtomware.group.ldif
5a. if "onlineupdate" equals to "yes" in ldapdiff.conf, the ldap server
    should now contain the new mail address
5b. if "onlineupdate" equals to "no" in ldapdiff.conf, run
    ldapmodify -D "cn=Manager,dc=webtomware,dc=com" -x -W -f ldapdiff.mod
5c. if "modifybydeladd" equals to "yes" in ldapdiff.conf, run 
    ldapadd -D "cn=Manager,dc=webtomware,dc=com" -x -W -f ldapdiff.add
    ,too 
6.  if you are interested in doing some stress tests, the script genstress.sh
    could be useful for you ;-)
    run ./genstress.sh > stress.ldif
    run ../ldapdiff -c ldapdiff.conf -d 2 -p user -f stress.ldif
7.  if you are looking for a ldap browser, try "luma", "gq" or "jexplorer"

Thomas.Reith@rhoen.de
Sat Oct 18 09:43:37 CEST 2008
