Windows error 0x8007202F, -2147016657

Detailed Error Information

DS_CONSTRAINT_VIOLATION[1]

MessageA constraint violation occurred.
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode7 (0x007)
NameFACILITY_WIN32[2][1]
DescriptionThis region is reserved to map undecorated error codes into HRESULTs.[2][1]
Error Code8239 (0x202f)

This is a Win32 error which has been mapped into an HRESULT. More information may be available in error 0x0000202f.

Questions

0votes
0answers

pyad "a restriction violation has occurred"

I always get this error message. Recently my script still has worked, but I didn't change anything. I don't know why it suddenly crashes all the time. The problem cant be a wrong server or wrong credentials, because I can e.g. get information's from a can with pyad.aduser.ADUser.from_cn(). Thanks for [...] read more
python
pyad
0votes
1answer

Can`t change AD password from c# code, throw exceptions

I have problem with c# script who change user AD password, when try change password, they throw exception A constraint violation occurred. (Exception from HRESULT: 0x8007202F) Code DirectoryEntry entry = new DirectoryEntry("LDAP://domain.com", strLoginName, oldpassword.Text.ToString(), AuthenticationTypes.Secure); DirectorySearcher search = new DirectorySearcher(entry); search.Filter = "(SAMAccountName=" + strLoginName + ")"; search.SearchScope = SearchScope.Subtree; [...] read more
c#
.net
active-directory
ldap
0votes
2answers

Error adding users to roles in ADAM (A constraint violation occurred. (Exception from HRESULT: 0x8007202F)

I get the error when trying to add users to a group. > A constraint violation occurred. (Exception from HRESULT: 0x8007202F) public string addUserToGroup(string userDN, string groupDN) { try { DirectoryEntry de = new DirectoryEntry("LDAP://localhost:389/" + groupDN); de.Username = "myUsername"; de.Password = "myPassword"; de.Properties["member"].Add(userDN); de.CommitChanges(); de.Close(); //return true; return "yes"; [...] read more
c#
active-directory
adam
0votes
1answer

System.DirectoryServices.AccountManagement and error messages from LDAP vs LDAPS

I have some C# code using System.DirectoryServices.AccountManagement that is used to allow a user to change their Active Directory user account password. It is currently using LDAP (:389) and I wanted to switch it to LDAPS (:636) for security purposes. However, when I switch to LDAPS the error messages returned [...] read more
c#
active-directory
principalcontext
0votes
1answer

Forgot Password

I am trying to create a web application to reset the password based on question/answer using System.Web.Security API. I get an exception: > DirectoryServicesCOMException (0x8007202f): A constraint violation occurred" > if user provide one bad answer to the question. If I reset value of attributeMapFailedPasswordAnswerCount to not set the account [...] read more
c#
asp.net
active-directory
forgot-password
0votes
2answers

How do I update the managedBy property on a computer object in Active Directory?

In C# I write... DirectoryEntry computer = GetComputer(); computer.Properties["managedBy"].Value = null; computer.CommitChanges(); When I make the call to CommitChanges() it throws a COM exception A constraint violation occurred. (Exception from HRESULT: 0x8007202F) something is wrong with setting the "managedBy" property to null, but how else do you clear the property? read more
c#
active-directory

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0