Modifying multiple dns with a single function call
Rahul Amaram
rahul at synovel.com
Fri Mar 18 13:16:22 CET 2011
I am looking for something like this.
dn: cn=User1,dc=example,dc=com
changetype: modify
replace: mail
mail: user1 at example.com
dn: cn=User2,dc=example,dc=com
changetype: modify
replace: mail
mail: user2 at example.com
dn: cn=User3,dc=example,dc=com
changetype: modify
replace: mail
mail: user3 at example.com
I want to make all the above changes with a single function call. Is
this possible or should I call modify_s once for each dn entry?
Regards,
Rahul.
On Friday 18 March 2011 03:25 PM, Michael Ströder wrote:
> Rahul Amaram wrote:
>> I would like to know if it possible to modify multiple dns at once i.e.
>> via a single modify_s request.
>
> Yes, if you mean (multiple) DN-valued attribute values in a single entry.
>
> No, if you mean the DNs of multiple entries.
>
>> I might need to update about 10,000 entries and I was wondering about
>> the best way to do this.
>
> One by one...
>
> This can get tricky if you have a hierarchy of DNs and you have to rename
> superior entries.
>
> Ciao, Michael.
More information about the python-ldap
mailing list