I
itsPiyush
I am adding new attributes in Active Directory and adding those
attributes in User class.
Now when I am adding this attributes in Web.config file in
<membership> tag it is not getting reflected.
For eg I added an attribute passwordQuestion in Active Directory
schema. And then I added that attribute in User class.
Now in web.config file I am using this attributes but its not
reflecting.
<system.web>
<membership defaultProvider="MyADMembershipProvider" >
<providers>
<add name="MyADMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider,
System.Web,Version=2.0.0.0,Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="TestDomain" connectionUsername="testdmn
\Administrator"
connectionPassword="passwd12"
attributeMapUsername="sAMAccountName"
requiresQuestionAndAnswer="false"
enablePasswordReset="true"
attributeMapPasswordAnswer="passwordQuestion"
attributeMapPasswordQuestion="PasswordAnswer"
attributeMapFailedPasswordAnswerCount="FailedPassAnsCnt"
attributeMapFailedPasswordAnswerTime="FailedPassAnsTime"
attributeMapFailedPassswordAnswerLockoutTime="FailedPassAnsLockTime"/>
</providers>
</membership>
</system.web>
It is giving me error as passwordQuestion is not an attribute of the
user Class
attributes in User class.
Now when I am adding this attributes in Web.config file in
<membership> tag it is not getting reflected.
For eg I added an attribute passwordQuestion in Active Directory
schema. And then I added that attribute in User class.
Now in web.config file I am using this attributes but its not
reflecting.
<system.web>
<membership defaultProvider="MyADMembershipProvider" >
<providers>
<add name="MyADMembershipProvider"
type="System.Web.Security.ActiveDirectoryMembershipProvider,
System.Web,Version=2.0.0.0,Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
connectionStringName="TestDomain" connectionUsername="testdmn
\Administrator"
connectionPassword="passwd12"
attributeMapUsername="sAMAccountName"
requiresQuestionAndAnswer="false"
enablePasswordReset="true"
attributeMapPasswordAnswer="passwordQuestion"
attributeMapPasswordQuestion="PasswordAnswer"
attributeMapFailedPasswordAnswerCount="FailedPassAnsCnt"
attributeMapFailedPasswordAnswerTime="FailedPassAnsTime"
attributeMapFailedPassswordAnswerLockoutTime="FailedPassAnsLockTime"/>
</providers>
</membership>
</system.web>
It is giving me error as passwordQuestion is not an attribute of the
user Class