How to activate an account in AD which is created using CS 2007 Profile APIs
CS 2007 supports storing profile information in a combination of data source i.e. while creating a profile it is possible to store some information in a database (say SQL 2005) and some other information in Active Directory. In our application we were storing the user name, password, first name, last name etc in AD and other information was being stored in SQL 2005 database.
While creating the profile using profile APIs (Profile APIs, Profile webservice or Profile Adapter for BizTalk), we observed that the account is successfully created in AD however the same is not yet activated/enabled. In order to enable the account in AD, we need to use the userAccountControl property in AD and set the same to 101. 101 is the AD code for active account. This is the attribute we need to set for the account in AD to make it active.