Hopefully one of you have worked with the .net 2.0
ActiveDirectory MembershipProvi der or some varient they of. please
reply to rn*******@dmacc .edu
What I want to reference is the resetpassword method of the Membership
user class. What I have done is create all the AD schema entries. I
have pointed my web.config file properly at these items. Yet I still
get the "Attribute schema mappings for bad password answer tracking
must be specified to enable password reset functionality."
Do you have any insights?
Code is pretty straightforward . and no my password isn't password
Membership.Vali dateUser("admin ", "password") 'Domain Admin account
or password reset account; hangs here
TheUser = Membership.GetU ser(struser, False) 'Gets the user
newPass = TheUser.ResetPa ssword() ' Should return the password the
thing is reset to.
Web.config settings
<connectionStri ngs>
<add name="ADTestSer vice"
connectionStrin g="LDAP://vdmacc.edu/ou=Students,dc= vdmacc,dc=edu"/>
</connectionStrin gs>
<system.web>
<membership
defaultProvider ="AspNetActiveD irectoryMembers hipProvider">
<providers>
<add name="AspNetAct iveDirectoryMem bershipProvider "
type="System.We b.Security.Acti veDirectoryMemb ershipProvider,
System.Web, Version=2.0.0.0 , Culture=neutral ,
PublicKeyToken= b03f5f7f11d50a3 a"
connectionStrin gName="ADServic e"
connectionProte ction="Secure"
connectionUsern ame="admin"
connectionPassw ord="password"
enablePasswordR eset="true"
enableSearchMet hods="true"
requiresQuestio nAndAnswer="Tru e"
applicationName ="/"
description="De fault AD connection"
attributeMapPas swordQuestion=" PasswordQuestio n1"
attributeMapPas swordAnswer="Pa sswordAnswer2"
attributeMapFai ledPasswordAnsw erCount="badPwd Count"
attributeMapFai ledPasswordAnsw erTime="badPass wordTime"
attributeMapFai ledPassswordAns werLockout="loc kout"
Time="lastBacku pRestorationTim e"
requiresUniqueE mail="true"
clientSearchTim eout="30"
serverSearchTim eout="30"
passwordAttempt Window="10"
passwordAnswerA ttemptLockoutDu ration="30"
maxInvalidPassw ordAttemps = "5"
minRequiredPass wordLength="6"
minRequiredNona lphanumericChar acters="1"
/>
</providers>
</membership>
PS. I have the changepassword method working perfectly. Which is
awesome.