Attribute not recognized 'enablePasswordRetrieval' error

Last post 05-16-2008 4:53 PM by caladin. 4 replies.

Sort Posts:

  • Attribute not recognized 'enablePasswordRetrieval' error

    04-29-2008, 2:32 PM
    • Loading...
    • caladin
    • Joined on 08-03-2006, 6:09 PM
    • Posts 40

    I'm trying to set up password reset on my webpage.

     The passwords is salted, so it needs to be reset no retrieved.

     I keep getting the error: Attribute not recognized 'enablePasswordRetrieval'

     but what I read indicates that setting needs to be false, as well as enablePasswordReset = "true"

     

    here is my membership provider.

     

    <membership defaultProvider="MyADMembershipProvider">

    <providers>

    <add name="MyADMembershipProvider"

    type="System.Web.Security.ActiveDirectoryMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"

    connectionStringName="ADConnectionString"

    connectionUsername=<removed>

    connectionPassword=<removed>

    attributeMapUsername="SAMAccountName"

    requiresQuestionAndAnswer="true"

     

     

    enablePasswordRetrieval="false"

    enablePasswordReset="true"

     

    attributeMapPasswordQuestion="PwdQuestion"

    attributeMapPasswordAnswer="PwdAnswer"

    attributeMapFailedPasswordAnswerCount="FailedPwdCount"

    attributeMapFailedPasswordAnswerTime="FailedPwdAnswerTime"

    attributeMapFailedPasswordAnswerLockoutTime="FailedPwdLockOutTime"

     

    />

    </
    providers>

    </membership>

     

    Anyone have any idea what I'm doing wrong?

    Any help is greatly appreciated.

    Thanks,

     

    Eric-

  • Re: Attribute not recognized 'enablePasswordRetrieval' error

    04-29-2008, 9:11 PM
    • Loading...
    • Kevin_D
    • Joined on 04-16-2008, 3:44 AM
    • Redlands, CA
    • Posts 17

    I dont believe that the ActiveDirectoryMembershipProvider supports the enablePasswordRetrieval property, so you probably wont need to set it. See this link

    http://msdn.microsoft.com/en-us/library/system.web.security.activedirectorymembershipprovider.aspx

    Kevin

    DCSHosts.com Affordable Windows Hosting Solutions, Plans starting at $9.95 / month.
  • Re: Attribute not recognized 'enablePasswordRetrieval' error

    04-30-2008, 11:01 AM
    • Loading...
    • caladin
    • Joined on 08-03-2006, 6:09 PM
    • Posts 40

    When I run the password retrival control without that setting, I get this error

    Your attempt to retrieve your password was not successful. Please try again 

    Any ideas what I'm doing wrong? If it's not the lack of the above command?

    Thanks,

    Eric

  • Re: Attribute not recognized 'enablePasswordRetrieval' error

    04-30-2008, 11:15 AM
    Answer
    • Loading...
    • Kevin_D
    • Joined on 04-16-2008, 3:44 AM
    • Redlands, CA
    • Posts 17

    I dont believe that the ActiveDirectoryMembershipProvider allows for retreiving users passwords.  See this msdn article

     

    http://msdn.microsoft.com/en-us/library/system.web.security.activedirectorymembershipprovider.getpassword.aspx

     

    Specifically:

     

    ActiveDirectoryMembershipProvider..::.GetPassword Method

     

    Returns the password of the specified user from the database. The ActiveDirectoryMembershipProvider class does not support this method.

     

    Kevin 

     

    DCSHosts.com Affordable Windows Hosting Solutions, Plans starting at $9.95 / month.
  • Re: Attribute not recognized 'enablePasswordRetrieval' error

    05-16-2008, 4:53 PM
    • Loading...
    • caladin
    • Joined on 08-03-2006, 6:09 PM
    • Posts 40

     

     

    I thought from my readings that if i set these two settings on the provider.

     

    requiresQuestionAndAnswer="true"

     

    enablePasswordReset="true"

    and set up the AD fields to support the questions and answer stuff, that it would reset the password and send/show a temporary password.

     

    Am I incorrect?

     

    I followed all these steps (I knwo ti's for adam, but it was the closest i coudl find)

    http://blogs.msdn.com/dansellers/archive/2005/10/20/483272.aspx

    Is there something else that not listed that needed for Ad and not ADAM? Is there a similar tutorial for AD?

    Thanks!

    Eric-

     

Page 1 of 1 (5 items)
Microsoft Communities
Page view counter