Here is what was going on with my account name and why it was too long. When I created the name in AD I am supposed to follow a certain format that is standard for all service accounts but say you don't have a convention and the account name ends up more than 21 characters like this
TestMOSSAdmin01111111111 (just an example I hope you don't use a service account name like this)
Or any other naming convention that ends up longer than 21 characters. You will find that when you create this name in Active Directory it shows in the Full Name and User Logon Name as TestMOSSAdmin01111111111 but when you look at the User logon name (pre-Windows 2000) you will see it takes off the Extra 1's and only has TestMOSSAdmin0111111 as the user name.
This is where the problem is, for whatever Reason MOSS SharePoint 2007 doesn't like this. When you go to create a new web application and it asks for your Service Account name you would think you need to enter the TestMOSSAdmin01111111111, but it will give you an error saying "The username and password entered are not valid".
I spent an hour changing my service account password, changing it again, logging into server after server proving to myself that the username and password worked. Then finally someone said "It wouldn't want that shorter name listed in AD under pre-Windows 2000 user name would it?"
So as a test I put in the pre-Windows 2000 user name TestMOSSAdmin0111111 and the password and everything worked just fine! I am not sure why MOSS SharePoint 2007 requires you to use the shorter username listed as (pre-Windows 2000) but it does.
I hope this guide helps you to avoid the issue I was getting with using the wrong username when trying to use my long username with MOSS SharePoint 2007. I have tested this on Windows 2003 with IIS 6 and Windows 2008 with IIS 7.5 and both have the issue. It is something funky with MOSS SharePoint 2007 that you should be aware of so you can avoid staring at a server saying I know I am typing this password right! Like I did, hope this helps.
Published by TechTips
I am a senior systems engineer and enjoy writing articles about computers, technology and other electronics. View profile
TechTips - Remote Desktop Repeatedly Prompts for Username and Password U...A guide explaining how to resolve the issue where the remote desktop asks for user name and password repeatedly when using Windows Server 2008 R2- Active Directory SecurityOne may wonder why it is necessary at all to care about Active Directory Security. The Active Directory Security Issues lead to high impact on security standards.
- Windows 2000/2003 Active Directory FundamentalsActive Directory is a management tool that can help simplify the administration of your network, but understanding the fundamentals are key.
- Facebooks New (and Only) Security FeatureSo maybe you used a public PC to log into your Facebook account and you hit a button that saved your login credentials. Or maybe you received an email from what you thought was Facebook and you plugged in your usernam...
TechTips - How to Set Anonymous Access Permission for a Website in Share...A guide detailing how to setup anonymous access for websites in SharePoint 2007
- TechTips - Install a MOSS 2007 SharePoint Server Farm
- Records and Intellectual Control: Business Information Considerations in a Digital...
- TechTips - How to Setup a New Website in SharePoint 2007
- Encrypting File System (EFS) in Windows Server 2003 Environment
- Product Review : ADManager Plus to Manage Active Directory for Windows Environment
- Using DOS Commands with Windows XP Home, XP Professional and Vista
- Script for Window's RAS Service to Automatically Login to Avaya PBX's with Stored...




