[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ldif file to add, delete and replace an attribute in LDAP entry



 
    
[root@eclectic data]# cat test.ldif 
dn: unimacqIPREGdomainname=austin.unimacq.edu.au,ou=Resources,o=The University of Macquarie,c=AU
changetype: modify
add: unimacqipregnameserver
unimacqipregnameserver: pet1.austin.unimacq.edu.au
-
delete: unimacqipregnameserver
unimacqipregnameserver: pet2.austin.unimacq.edu.au
-
replace: mail ou
mail: vc@xxxxxxxxxxxxxx
ou: Vice-Chancellor's Office 

[root@eclectic data]# /servers/sun/directory52/shared/bin/ldapmodify -h eclectic -p 389 -D "cn=directory Manager" -j passwd-devel -c -f test.ldif 
modifying entry unimacqIPREGdomainname=austin.unimacq.edu.au,ou=Resources,o=The University of Macquarie,c=AU

Google