Skip to Main Content

Security Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Programmatcially enable/disable user via Python?

976828Nov 28 2012 — edited Nov 29 2012
I have a need to programmatically enable/disable a user. I am using Python's ldap module and so would like to know how to do this via ldap modify.

I used the dsutil command to enable/disable a user and the only attributes I saw that changed were nsAccountLock. However, simply modifying this attribute was not sufficient (at least in terms of dsutil status).

What do I need to do to enable/disable programmatically?

Thanks,
C
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 27 2012
Added on Nov 28 2012
2 comments
347 views