Search the web
Sign In
New User? Sign Up
ADSIANDDirectoryServices · ADSI and System.DirectoryServices Q&A
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
"Directory Service is Busy"   Message List  
Reply | Forward Message #4615 of 4629 |
Re: "Directory Service is Busy"

Yesterday I got hold of the actual source employee data and log file that
was used to update AD, and checked it against the user account provisioning
code. I began to observe a pattern in the errors, where employees/users with
no supervisor (NULL) were inducing the “directory service is busy error”.
Because they have no supervisor, the code logic attempts to assign a mere “
“ space into their AD user object’s manager property.

So I tested this theory out in my home domain,

public static void BlankManager(string username)
{
DirectoryEntry updateUser =
FindStaticUser(username);
if (updateUser == null)
throw new
ApplicationException(username + " not found in the static OU.");

updateUser.Properties["manager"].Value =
" ";
updateUser.CommitChanges();

}

public static void UnassignManager(string username)
{
DirectoryEntry updateUser =
FindStaticUser(username);
if (updateUser == null)
throw new
ApplicationException(username + " not found in the static OU.");

if
(updateUser.Properties.Contains("manager"))
{

updateUser.Properties["manager"].RemoveAt(0);
updateUser.CommitChanges();
}

}

True enough, the first method will cause the “Directory service is busy”
error to surface – after a typical 30-second wait. Additional info returned
from that p/invoke method call:

8409: 000020D9: SvcErr: DSID-031510BA, problem 5001 (BUSY), data 13
(LDAP Provider)

The manager attribute is designed to accept a DN that points to another user
object, so it appears a whitespace character is not going to cut it. The
second method is able to properly remove any manager currently assigned to a
user. It does seem odd though, why wouldn’t AD immediately respond stating
“invalid user DN; cannot assign manager” for an error message. In this
manner, it seems to think a single space character is a valid DN and
attempts to go look for that in the AD store, and even thinks it is busy.

At any rate we have reported our findings to the customer and hopefully be
able to test this out in their environment soon.

Thanks,
Aaron


[Non-text portions of this message have been removed]




Tue Mar 24, 2009 3:53 am

valoryea
Offline Offline
Send Email Send Email

Forward
Message #4615 of 4629 |
Expand Messages Author Sort by Date

I am looking at a customer's environment where custom .NET programs carry out user account provisioning jobs to AD every past midnight. They can create users...
Aaron Seet
valoryea
Offline Send Email
Mar 12, 2009
2:45 pm

I had been recommended to check out the DirectoryServicesCOMException class, which is features an ExtendedError property and ExtendedErrorMessage property....
Aaron Seet
valoryea
Offline Send Email
Mar 23, 2009
1:58 am

My company uses ADAM for data. We've pushed the limits of writing to AD/AM to the point that we were getting the same type of message. Initially, we thought we...
Stuart Miller
stumiller_2000
Offline Send Email
Mar 23, 2009
5:43 am

Yesterday I got hold of the actual source employee data and log file that was used to update AD, and checked it against the user account provisioning code. I...
Aaron Seet
valoryea
Offline Send Email
Mar 24, 2009
3:58 am

In an interesting turn of events, we have gotten access to one of the customer's test domain, and I wasted no time attempting the same tests onto this domain....
Aaron Seet
valoryea
Offline Send Email
Mar 26, 2009
7:36 am

On further investigation, a domain controller that is not patched to SP1 or SP2, thereby remaining at RTM patch level, would accept a “ “ space value for a...
Aaron Seet
valoryea
Offline Send Email
Apr 3, 2009
9:05 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help