Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


AD naming convention issue

Posted on 2003-10-23
Medium Priority
Last Modified: 2008-05-30

firstname.lastname (as a login will work as long as it is less than 20 characters and matches the pre win2k name)
firstname.lastname @ mysite.com (will work regardless of the length of the users name, even if the pre-win2k name is truncated like so: firstname.lastnam)

it seems we are running into a 20 character limit because of the user logon name (pre-windows 2000) and this is a feature according to microsoft (with no fix since this is a feature).

so #1, is there a way to append the @mysite.com automatically? or 2, make a change so that it does not default to the pre win2k name? the reason this is needed as we are not going to change our naming convention for this and we are not going to have our users shorten their names (all names and logins are based on full legal names EX: someone named jim robbins full name is james robbins so his login would be james.robbins@mysite.com, not what he would be informally known as, in this case jim robbins)

i don't know much about this (active directory) but i am researching this to learn more and to fix an issue we are having with several users.

thanks for the help.
Question by:r0guenj
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 13

Expert Comment

ID: 9608049
I think your problem is due to using older operating systems on your client.  On W2K Pro and later, this shouldn't be an issue since you are using the SMTP name of the user to login. Since you have AD, you have a domain that is represented by a DNS naming convention.  The domain name, mysite.com, is automatically appended to the login name.  With older OS's you are stuck with the NetBIOS naming convention and older "NT rules."  This is done to maintain compatiblity.

Expert Comment

ID: 9609283
This is correct about the older naming convention.

Larger AD implementations that I have worked on, typically formulate short names with (first 5 letters of last name)(first initial)(middle inital). You can set this in the AD properties as the "Name", and then use the longer login name for the "User Principal Name" value. So, Brandon P. Comer would be name =  comerbp and User Principal Name Brandon.Comer@mydomain.com. Then both of these login names could be used depending on what client they are using. You can just tell NT4 clients, that they have the truncated name, and they can use the full name as soon as they are upgraded. That way your AD can stay consistent, and users can still use legacy clients. Plus, if a user needs to get on a W2k client and only remembers the truncated logon, it works as well. AD only really cares about the Distinguished name, which is the full LDAP string refernencing the object.


-Brandon Comer

Expert Comment

ID: 9619915
Hi r0guenj,

depending on what you've mentionned, changing your policy toward naming convention would simplify logons and administration for both you as system admin and end-user.
for example,  Jim John Robbins can use : j.robbins as his username or using his middle name: jj.robbins.

however, if you are using AD in mixed/hybrid mode then pre-windows2k users must have their username less or equal to 20 chr.

as for the "@mysite.com", simply add the "mysite.com" to your DNS as suffix and the problem is sovled.

Accepted Solution

Jagerhill97 earned 500 total points
ID: 9642984
OK to begin with no it does not matter if you are running in a Native mode or Mixed mode environment the username will always truncate at 20 chararacters. A Win2k login will ALWAYS default to the DNS name not the UPN. IT does not append the @domainname.com automatically nor can it be added automatically without a script or registry hack. You can try adding the domain name as an autologin Ie: setting the default login to @domainname.com in the registry instead of an actual username. This is a feature in W2K AD that will not be changed in 2000 or 2003. The limit on the 20 characters is a feature as well. Even though you may not be running in a Native mode environment Microsoft wanted W2K to be backward compatable no matter what. It's pretty stupid since you don't need it won't need that type of compatabilty in a Native mode environment but that's the design. Hope this helps.

Author Comment

ID: 9645927
after researching this issue here and using other resources, jagerhill97 gave the same information that i have been able to find out on my own.

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Active Directory can easily get cluttered with unused service, user and computer accounts. In this article, I will show you the way I like to implement ADCleanup..
A bad practice commonly found during an account life cycle is to set its password to an initial, insecure password. The Password Reset Tool was developed to make the password reset process easier and more secure.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question