Ldap notes
To import a ldif file to modify entries:
ldapmodify -c -h myserver.com -p <myport> -D <myUserDN> -w <password> -f <File.ldif>
Ldif to replace an attribute
dn: <myNodeDN>
changetype: modify
replace: cn
cn: changedCN_Value
Ldif to delete an attribute
dn: <myNodeDN>
changetype: modify
delete: <attributeToDelete>
Ldif to add a node
dn:<new Node DN to be added>
changetype:add
objectClass: <xxx>
<attribute1>: <value1>
<attribute2>: <value2>
<attribute3>: <value3>
<attribute4>: <value4>
Searching for Not equals operation we use :
(&(!(eenumber=*)))
No comments yet
