SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Creating new SQL login Error


Creating new SQL login Error

Author
Message
jstanley 54757
jstanley 54757
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
Points: 4 Visits: 10
I hope I'm posting this is the correct forum. I'm a network administrator and my SQL knowledge is very limited. Our db admin left us and now we are in a jam.

When trying to create a new login in sql server management studio I receive the following error message:
An object (User or Built-in security principal) with the following name cannot be found "bsmith". Check the selected object types and locations for accuracy and ensure that you have typed the object name correctly, or remove this object from the selection.


We have been able to create new logins in the past with no issues until recently. I even try to do a search on our entire directory but return the same error message. About a month or so I moved our global catalog to a different domain controller on our network. Again, I'm very green when it comes to SQL but it seems to be the replication between SQL and AD is broke??

Any advice would be greatly appreciated!

Thank you!
Steve Jones
Steve Jones
SSC Guru
SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)

Group: Administrators
Points: 61939 Visits: 19100
There's no replication from SQL to AD. SQL Server has to query AD to verify the account.

I'm guessing you've spelled something wrong, or you need to include the domain. Can you list exactly what you've done?

Have you tried just a CREATE LOGIN command? If you enter the values in the GUI, before you click OK, there's a "script" button at the top. Click that and get the code. Then look at that.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
jstanley 54757
jstanley 54757
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
Points: 4 Visits: 10
Thank you for responding! These are the steps that I use when creating a new a login in SQL:
1. Right click on "Logins" under "Security" and choose "New Login"
2. In the "Login Name" box, I choose "Search"
3. This brings up a dialog box that where I can choose to search our domain or "Entire Directory". I've added our domain name to the user (mydomain\bsmith) just in case and tried many different users. All ends in the same result.


This is when I receive the error message. I don't get past that. We've been able to create users this way but now receive the error message when trying to do so.

Here are is the code from the script that you suggested-

USE [master]
GO
CREATE LOGIN [ACORP\bsmith] FROM WINDOWS WITH DEFAULT_DATABASE=[AES]
GO


This user was created in our Windows Active Directory a month or so ago.

Thank you again!
Jan
Steve Jones
Steve Jones
SSC Guru
SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)

Group: Administrators
Points: 61939 Visits: 19100
Try this, go into the local host (Windows) and try to add that user to a local group. Same spelling.

I wonder if you have some DC/Kereberos issue between the local host and AD, or between SQL and AD. There are some rare times this flakes.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
jstanley 54757
jstanley 54757
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
Points: 4 Visits: 10
I was able to create the user just fine but I dug into the event viewer files and I believe you are on to something with DC\Kereberos and SQL. I'm seeing some weird NTDS Replication errors on the DC. Can you help me understand how SQL talks to or authenicates back to active directory on the DC? Again, I'm a network admin so I'm not very SQL knowledgeable but need/want to learn.

Thank you again!
Steve Jones
Steve Jones
SSC Guru
SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)SSC Guru (61K reputation)

Group: Administrators
Points: 61939 Visits: 19100
I'm not 100% sure. I know it uses Kerberos, and should connect to a DC. I've seen some strange issues where I've had to use DC/AD tools to reset the connection from the Windows host to AD.

You should be able to check the secure channel to the DC (sc.exe?) and see if it's working from the host.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
jstanley 54757
jstanley 54757
Forum Newbie
Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: General Forum Members
Points: 4 Visits: 10
Thank you! I'll give it a try and let you know. We have a test SQL server that is on the domain that is working fine. I'm able to add logins without any errors.

I'll try your suggestions and let you know. Again, thank you so much!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search