Windows login doesn't allow, if username more than 20+ character

Hi,

I have the Samba PDC setup in Ubuntu 16.04 & joined the windows clients fine. But the windows 7 doesn't allow the users, if their login characters are more than 20+. I tried UPN format also ( firstname.lastname@example.com ), it didn't work! Can someone please help me!

Login-Error-Message
Sivachidambaram GanesamoorthySr System EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

LearnctxEngineerCommented:
Do you have users with sAMAccountNames longer than 20 characters? If you do, you cannot log on. I don't think it will matter if you try logging on with UPN either. sAMAccountName cannot be longer than 20 characters. This is for backward compatibility with older Windows versions.
1
Shaun VermaakTechnical SpecialistCommented:
I run into these limitations regularly. This one of the reasons I always use/recommend employee numbers as usernames.
2
RaminTechnical AdvisorCommented:
To workaround this issue just type the first 20 characters of the password.
1
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

David Johnson, CD, MVPOwnerCommented:
@ramin it has nothing to do with the password BUT the samaccountname limitation of 20 characters
0
Ajit SinghCommented:
The SAMaccount is limited to 20 characters for earlier clients: https://msdn.microsoft.com/en-us/library/ms679635(VS.85).aspx

However, In order to log in with more than 20 character account name, you must use a UPN logon.

The UPN is comprised of a logon name and the UPN suffix that must be appended to the name (the text following the @ symbol). The UPN must be unique within the forest.

By default, the user has a UPN suffix of "@domain_name". If multiple UPN suffixes are available, you can choose the desired UPN suffix from the list of UPN suffixes.

You may refer to the following link:

Users Can Log On Using User Name or User Principal Name
https://support.microsoft.com/en-us/help/243280/users-can-log-on-using-user-name-or-user-principal-name

Hope this helps!
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Shaun VermaakTechnical SpecialistCommented:
I tried UPN format also ( firstname.lastname@example.com ), it didn't work! Can someone please help me!
Please check under the account tab of the user properties if the UPN is actually configured
0
Sivachidambaram GanesamoorthySr System EngineerAuthor Commented:
Thank you so much for everyone for clarifying my doubts!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Samba

From novice to tech pro — start learning today.