Table of Contents
LDAP-Basics
lookup values
- normal :
ldapsearch-x uid=peter - wildcard :
ldapsearch -x gecos=pet* - only print one value :
ldapsearch -x uid=peter gecos - show ldap-internals too :
ldapsearch -x uid=nat* +
modify values
- save the values to a ldif-file
- change with an editor
- read the values with ldapmodify
ldapsearch -x -LLL uid=peter >/tmp/peter.ldif emacs -nw /tmp/peter.ldif ldapmodify -x -W -D cn=ldapadmin,dc=ihf,dc=local -f /tmp/peter.ldif
delete values
ldapdelete -x -W -D cn=ldapadmin,dc=ihf,dc=local uid=peter
meaning of the options
- -x simple auth instead of sasl
- -W prompt for passwd
- -D ldapadmin or any other authorized ldapuser
knowwiki/basics/ldap_basics.txt · Last modified: 2007/01/12 15:58



