Skip to main content

I was recently using the AD smartobject, more specifically the GetUserDetails method. I noticed that it works well in most cases if the username property is set to the full domain + username of the desired user i.e. DOMAINUsername

 

However, I encountered a problem with a specific user. The smartobject method returns an error (as if the user were not found). The only difference between this particular user and any other user is the total length of the input parameter for the method (username).

 The user that is causing a problem has 3 characters in the domain name and the AD user name is 17 caracters long e.g. ABCKindaLongUserName

Has any one else encountered this problem?

 

I was able to reproduce this error. I am going to file a support ticket for this issue. Thanks for pointing it out.

 Scott 


After a bit of further investigation, this appears to be an AD limitation, not a Smart Object issue. Check out the following links from Microsoft. SamAccountName is retrticted to less than 20 characters for compatibility with older software. So in the example of ABCKindaLongUserName it is 21 characters exceeding the AD size limitation.


http://msdn.microsoft.com/en-us/library/ms679635(VS.85).aspx
http://msdn.microsoft.com/en-us/library/cc220838(PROT.13).aspx 

This is unfortunatly an AD restriction.


Reply