cookbook for using ldapdiff

1.  download, compile and install openldap from ftp://ftp.openldap.org
2.  [optional for non glibc systems] download, compile and install libiconv 
    from ftp://ftp.gnu.org
3.  download ldapdiff from http://webtomware.rhoen.de
4.  compile ldapdiff with
    "./configure --with-ldap-dir=/usr/local/openldap"
    if you have the iconv functions in your glibc run
    "./configure --with-ldap-dir=/usr/local/openldap --with-iconv-dir="your_\
    iconv_installation_dir"
5.  modify slapd.conf like samples/slapd.conf.sample
    (don't forget to add the necessary schema files to slapd.conf)
6.  add initial data with "./addentry webtomware.init.ldif" 
    (password: webtomware)
7.  add personal data with "./addentry webtomware.user.ldif"
    (password: webtomware)
7a. if you run into errors try "./addentry webtomware_without_jpeg.user.ldif"
8.  change an attribute like the mail address in "webtomware.user.ldif" from 
    "Thomas.Reith@rhoen.de" to "Thomas.Reith@vogelsberg.de"
9.  run ../ldapdiff -d 2 -p user -f webtomware.user.ldif
    run ../ldapdiff -d 2 -p group -f webtomware.group.ldif
9a. if "onlineupdate" equals to "yes" in ldapdiff.conf, the ldap server
    should now contain the new mail address
9b. if "onlineupdate" equals to "no" in ldapdiff.conf, run
    ldapmodify -D "cn=Manager,dc=webtomware,dc=com" -x -W -f ldapdiff.mod
9c. if "modifybydeladd" equals to "yes" in ldapdiff.conf, run 
    ldapadd -D "cn=Manager,dc=webtomware,dc=com" -x -W -f ldapdiff.add
    ,too 
10. if you are interested in doing some stress tests, the script genstress.sh
    could be useful for you ;-)
11. if you are looking for a ldap browser, to test, if ldapdiff works
    correctly, I recommend using luma from http://luma.sourceforge.net

Thomas.Reith@rhoen.de, Fri Nov 18 21:37:31 CET 2005
