ldapedit
ldapedit is a custom UGCS utility to help you modify your ldap data. It is designed to be easier than the ldapmodify command-line program.
From 'ldapedit -h':
Usage: /usr/local/bin/ldapedit -a entry value1 [value2 ...]
/usr/local/bin/ldapedit -r field [value1 value2]
/usr/local/bin/ldapedit -m field value1
/usr/local/bin/ldapedit
-a: Adds the specified value to the named entry
-r: Removes all values for the specified entry, or
just the specified values if present
Multiple add/remove operations can be specified on one line
Other options: ( must be specified before add/remove operations)
-u username: change data for another user
-n Don't actually do anything, just show what would have been done
-q Suppress output
-h Show this help message
-hh Show documentation on common LDAP entries
Run with -hh to see a list of the most common LDAP options
Examples
- Add a mailForwardingAddress:
ldapedit -m mailForwardingAddress address@domain.com
- Set the spam kill score
ldapedit -m amavisSpamKillLevel 6.0
- Change your phone number
ldapedit -m mobile 111-333-4444
- See all of your ldap information
ldapedit
