Error using ADAM and CreateUserWizard

by Thomas 11. April 2008 18:34

Ran into this gem today. I have an app using the ActiveDirectoryMembershipProvider connecting to an ADAM instance.  While debugging over a VPN connection from my development machine, I ran into this error when the CreateUserWizard tried to create an account.

DirectoryServicesCOMException (0x80072020): An operations error occurred. (Exception from HRESULT: 0x80072020)]

This was followed by a monsterous stack trace ending with System.DirectoryServices.DirectoryEntry.Invoke.

Isn't that descriptive? ;-> Anyway, through much digging I discovered that the problem is that ADAM does not like to accept plaintext passwords over an unsecure connection (meaning without SSL or some sort of ADAM-level security). A quick solution is to tell ADAM to allow such passwords by doing the following:

  1. Open the ADAM ADSI Edit tool
  2. Right-click on the top most node called "ADAM ADSI Edit" and hit "Connect To..."
  3. In the Connection Settings dialog choose "Configuraiton" for Well-known naming context.
  4. Navigate to CN=Directory Service,CN=Windows NT,CN=Services,CN=Configuration (folder-wise, remember you read backwards)
  5. Right-click on the "Directory Service" node and hit Properties
  6. Change the property "dsHeuristics" to 0000000001001

 

You can read more at:

Anonymous LDAP operations to Active Directory are disabled on Windows Server 2003 domain controllers  

DS-Heuristics Attribute 

Comments

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.5.0.7
Theme by Extensive SEO