active directory - Enable AD user account using ldap python -
i using ldap module in python add user microsoft 2012 active directory. able add user ad, user gets added next logon , account disabled options ticked. tried lot of option enable account not able so. tried option of enabling account while creating user doesn't work too. tried modify function still no luck. suggest detour above problem? in advance
you need modify entry after created , set useraccountcontrol
attribute.
the useraccountcontrol
attribute bit flag.
there few different enabled
states can set.
512
- default enabled account67048
- enabled account password not expire
Comments
Post a Comment