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.

  1. 512 - default enabled account
  2. 67048 - enabled account password not expire

Comments

Popular posts from this blog

c++ - OpenMP unpredictable overhead -

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

javascript - Wordpress slider, not displayed 100% width -