Re: ldp Constraints Violation in modifying password
- From: "Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 7 Jun 2007 22:46:16 -0400
Constraint violation on a pwd modify operation usually means that you either
didn't specify the password in the right syntax or violated password policy.
To do password "reset" with ldp, you do a single replace operation on the
unicodePwd attribute. The value is specified as unicode and must the
plaintext password in quotation marks. Ldp has a special syntax to make
this easy:
\UNI:"Password1"
assuming you wanted a password of password1.
If that doesn't work, you are violating password policy.
You'll get "unwilling to perform" if you attempt the modification on an
unsecure channel. Note that you don't need SSL for the secure channel with
AD 2003+ and any LDAP client OS of XP or higher. You can bind with secure
auth an select "encrypt traffic after bind" (or whatever the checkbox is
called).
If you want to do a password "change", do a delete and an add operation with
the delete having the old password value and the add having the new one.
Use the same syntax as above to specify the value.
HTH,
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"jflash" <jflash@xxxxxxxxxx> wrote in message
news:1181228658.940923.212280@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello,
I'm trying to change the password of an Active Directory user using
ldp.exe. This is the output returned
***Call Modify...
ldap_modify_ext_s(ld, 'CN=Davide Pelosi,OU=efsa,DC=scuola,DC=local',
[1] attrs, SvrCtrls, ClntCtrls);
Error: Modify: Constraints Violation. <19>
Ldp connects in ssl mode and binds correctly with the administrator
account but it is impossible to change password
using modify and replace or delete-add couple.
Thenks for your hel,
Davide
.
- References:
- ldp Constraints Violation in modifying password
- From: jflash
- ldp Constraints Violation in modifying password
- Prev by Date: Roaming users and group policies
- Next by Date: Re: Site naming issue? (Event ID 5779)
- Previous by thread: ldp Constraints Violation in modifying password
- Next by thread: Domain set up question
- Index(es):
Relevant Pages
|