[python-ldap] Programmatically enable/disable LDAP users from Python?
Chaos Eternal
chaoseternal at gmail.com
Wed Nov 28 04:43:37 CET 2012
Hi, this depends on which ldap server you are using.
On Nov 28, 2012 11:39 AM, "Carolyn Lanser" <cll at rincon.com> wrote:
> I would like to programmatically enable/disable LDAP user accounts. From
> the command prompt I can use dsutil and this apparently sets/removes the
> nsAccountLock operational attribute. I have attempted to do modify_s() to
> set and remove this attribute from w/in Python but always get the following
> error message: "Insufficient 'write' privilege to the 'nsAccountLock'
> attribute of entry ''".****
>
> Is there a way to set/remove/add operational attributes or otherwise
> enable/disable ldap users programmatically through Python?****
>
> Thanks, C****
>
> _______________________________________________
> python-ldap mailing list
> python-ldap at python.org
> http://mail.python.org/mailman/listinfo/python-ldap
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20121128/9b0ee888/attachment.html>
More information about the python-ldap
mailing list