473,779 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ActiveDirectory MembershipProvi der - Help???

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.

Nov 10 '06 #1
0 1496

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1403
by: Rik Brooks | last post by:
I am trying to write a change password routine using the new ActiveDirectoryMembershipProvider. My code is below. I'm getting an exception saying that my ActiveDirectoryMembershipProvider has not been initialized. Can you guys point me to something that tells me what I'm doing wrong, please? bool checkItOut; string ls_retVal = ""; ActiveDirectoryMembershipProvider obj = new ActiveDirectoryMembershipProvider(); try
2
4875
by: JD Qixcle | last post by:
I have been following several threads between David Thielen and Luke Zhang regarding the ActiveDirectoryMembershipProvider as used for ASP.NET 2.0 Forms authentication, but I receive a slighly different error. I consistently receive the following message after submitting credentials from the login page: Parser Error Message: Object reference not set to an instance of an object. Source Error:
0
1908
by: Parag Mahajan | last post by:
Hi, I am using the membership provider class, "System.Web.Security.ActiveDirectoryMembershipProvider". I am using Login Server control and attaching the already configured "ActiveDirectoryMembershipProvider" in the web.config file. But my restriction is that I do not want to give the "connectionUsername" and "connectionPassword" in the web.config file. I want to update this 2 attributes at runtime in the Login1_LoggingIn event handler, so...
18
4675
by: Glenn Eastlack | last post by:
I have been trying to use ASP.NET 2.0 built-in Membership Providers. Particularly the ActiveDirectoryMembershipProvider. My web.config looks like this: <connectionStrings> <clear/> <add name="ADConnectionString" connectionString="LDAP://192.168.32.129/CN=users,CN=testdns,DC=test,DC=com" /> </connectionStrings>
0
1630
by: Nehpets | last post by:
I'm trying to setup a web site that uses active directory for user authentication under asp.net 2.0. For testing, I have separately installed two virtual servers. The first is a domain controller in a new forest named VSERVER00 running Windows Server 2003 R2 Standard. The second is an application server running IIS in the same domain, named VSERVER01 also running Windows Server 2003 R2 Standard. The domain is VDOMAIN.local. I have...
0
1063
by: zeplynne | last post by:
Having trouble using ActiveDirectoryMembershipProvider with one specific website. When attempting to login to the site, after a long period of time (about 2 - 3 minutes), "Server Application Unavailable" message is returned. If I switch the provider back to SQLServer everything works fine. If I create a new simple Web Application and just add a Login.aspx page and Default.aspx page, and nothing else, and add a Login Control everything...
3
1786
by: rroden | last post by:
C:\WINDOWS\assembly \WindowsSystem.Web.Security.ActiveDirectoryMembershipProvider isn't being installed with .net 2.0 or 3.0 on any of my systems. What am I doing wrong?
4
2173
by: Max2006 | last post by:
Hi, I am using ActiveDirectoryMembershipProvider for authentication. In my development environment I don't have any Active Directory available for development and test. Basically my development environment is a windows xp laptop. I am trying to avoid running a domain controller on my laptop. What would be the easiest way to develop and test my application without running a domain controller on my laptop?
1
2566
by: Max2006 | last post by:
Hi, Can I use ActiveDirectoryMembershipProvider and SqlRoleProvider at the same time? I need to store the list of all my user/passwords in AD and users' roles in SQL Server. How is it possible? Any help would be appreciated, Max
0
9633
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10137
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8959
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7483
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.