On Sep 9, 2009, at 1:32 PM, Zhang Huangbin wrote:
>
> I want to replace cn=cn2 by cn=cn4 if it exist, or add cn=cn4
> directly if 'cn=cn2' donesn't exist.
>
> If cn=cn2 is not exist, [(ldap.MOD_DELETE, 'cn', 'cn2')] will raise
> an error.
> If cn=cn2 is not exist, [(ldap.MOD_ADD, 'cn', 'cn4')]
Hi, all.
What's the best way to 'replace' value of attribute which can handle
multiple values?
Such as:
dn: uid=myuid,dc=example,dc=com
cn: cn1
cn: cn2
cn: cn3
My purpose is to get ldif like this (no cn=cn2 any more):
dn: uid=myuid,dc=example,dc=com
cn: cn1
cn: cn3
cn: cn4
I want to replace
Michael Ströder wrote:
> Łukasz Mierzwa wrote:
>> I'm writing LDAP library (ORM without R as I call it) for python, it's using
>> python-ldap to do the hard work and let You manage LDAP entries in more ORM
>> style.
>
> 1. You're not the first one implementing such a module on top of python-lda
Łukasz,
Łukasz Mierzwa wrote:
>
> I'm writing LDAP library (ORM without R as I call it) for python, it's using
> python-ldap to do the hard work and let You manage LDAP entries in more ORM
> style.
I don't have the spare time to look more closely at it not to speak of really
contributing to i