From: Steeve B. <ste...@gm...> - 2010-08-20 09:27:31
|
I've found the solution. I use this method : >>> mod_attrs = [( ldap.MOD_ADD, 'uidNumber', '1000' )] >>> l.modify_s('uid=francis,ou=users,dc=example,dc=com', mod_attrs) I had began with this method, but my error was to keep number as integer and not as string. Thx Steeve Barbeau http://steeve-barbeau.blogspot.com/ http://twitter.com/steevebarbeau On Fri, Aug 20, 2010 at 10:27 AM, Chaos Eternal <cha...@gm...>wrote: > you cannot alter/change stuctral objectClass of an existing entry > > On 20 Aug 2010 4:08 PM, "Steeve BARBEAU" <ste...@gm...> wrote: > > Hi, > > I'm new to this mailing list and I've a question concerning python-ldap. > I want to add some objectClass and attributes to existing entries but I > have this error : > ldap.OTHER: {'info': 'no structuralObjectClass operational attribute', > 'desc': 'Internal (implementation specific) error'} > > I'm using the add_s() function and I don't know if this is the good for > doing that. > > PS : When I use the ldapmodify command with a ldif file and with the same > attributes than in my python code, it works. > > You're help will be welcome, Thx > > Steeve Barbeau > http://steeve-barbeau.blogspot.com/ > http://twitter.com/steevebarbeau > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev > > |