Commerce server profile can be extended to store some of profile information in Active Directory or in any other data store. Normally user's information like Username, Password, and Address etc will be stored in Active Directory. Whenever a user is created using commerce server profile API, an active AD user will also get created. Normally password information about the user will be stored in SQL Server. If we are storing both Username and Password in AD following points need to be noted.
AD Data Member
Description
cn
Logon Name (Primary and Dual Key)
sAMAccountName
Logon Name
userPrincipalName
uniCodePwd
Password
givenName
First Name
sn
Last Name
userAccountControl
To make the account active.
Always set 101 as the value to enable the account in Active Directory. To make the account In-Active set the property to 546.