Right,
Can we see some code? We can then deduce from there exactly what you need.
Carlos
-----Original Message-----
From: Kingslan, Rick T. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 16, 2003 2:06 PM
To: [EMAIL PROTECTED]
Subject: [ActiveDir] Creating programatically when password complexity is in force
I've run into an interesting problem. If I create a user
programatically, (using C#, but we've confirmed the same with VBScript)
the password cannot be set until the user object exists. If I try it,
we get the error:
"Server is unwilling to process the request"
when a SetInfo is done on the creation of the user object. All required
fields for the user object are being entered, and checked per the 'Tuna'
just to be sure.
However, the user cannot exist with a blank password because the blank
password violates the password complexity and the minimum length rules.
And, as stated, the password cannot be set until the object exists.
Would one of the scripting / programming geniuses that we have here tell
me what I'm missing? I have to believe that there is a way to do this.
Or, am I going to be relegated to using ADUC again to create my users
(which is a major pain in the a$$, to say the least)?
Rick Kingslan MCSE, MCSA, MCT
Microsoft MVP - Active Directory
LAN Administration - Windows 2000
West Corporation
[EMAIL PROTECTED]
List info : http://www.activedir.org/mail_list.htm
List FAQ : http://www.activedir.org/list_faq.htm
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/
------------------------------------------------------------- This email and any files transmitted are confidential and intended solely for the use of the individual or entity to which they are addressed, whose privacy should be respected. Any views or opinions are solely those of the author and do not necessarily represent those of the Trencor Group, or any of its representatives, unless specifically stated.
Email transmission cannot be guaranteed to be secure, error free or without virus contamination. The sender therefore accepts no liability for any errors or omissions in the contents of this message, nor for any virus infection that might result from opening this message. Trencor is not responsible in the event of any third party interception of this email. If you have received this email in error please notify [EMAIL PROTECTED] For more information about Trencor, visit www.trencor.net <http://www.trencor.net>
