go to  ForumEasy.com   
LdapPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Sample ldapmodify LDIF file -- Putting all together (Changes within an entry)
 
Subject: Sample ldapmodify LDIF file -- Putting all together (Changes within an entry)
Author: eLDAP
In response to: Sample ldapmodify LDIF file -- Renaming an entry
Posted on: 07/08/2011 09:29:37 PM


dn: uid=user.01,ou=people,dc=example,dc=com
changetype: modify
add: title
title: HR manager
title: Director of operation
-
delete: mail
mail: user.01@example.com
-
delete: description
-
replace: telephonenumber
telephonenumber: 1-123-555-1234
telephonenumber: 1-123-555-6789
-
delete: description



 

> On 07/08/2011 09:28:30 PM eLDAP wrote:


dn: uid=user.01,ou=people,dc=example,dc=com
changetype: modrdn
newrdn: uid=user001
deleteoldrdn: 0


The changetype is classified as modRDN and loading this LDIF file is going to rename the current dn of the entry from
"uid=user.01,ou=people,dc=example,dc=com"

to

"uid=user001,ou=people,dc=example,dc=com"

without (0) removing the old rdn uid=user.01 from the entry.





References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.