This discussion is archived
2 Replies Latest reply: Nov 29, 2012 10:04 AM by 976828 RSS

Programmatcially enable/disable user via Python?

976828 Newbie
Currently Being Moderated
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

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points