Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Creating new SQL login Error Expand / Collapse
Author
Message
Posted Wednesday, January 22, 2014 8:15 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 23, 2014 1:52 PM
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!
Post #1533665
Posted Wednesday, January 22, 2014 8:28 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 12:38 AM
Points: 33,267, Visits: 15,436
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
Post #1533682
Posted Wednesday, January 22, 2014 9:36 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 23, 2014 1:52 PM
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
Post #1533728
Posted Wednesday, January 22, 2014 10:04 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 12:38 AM
Points: 33,267, Visits: 15,436
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
Post #1533744
Posted Wednesday, January 22, 2014 3:03 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 23, 2014 1:52 PM
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!
Post #1533855
Posted Wednesday, January 22, 2014 3:11 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 12:38 AM
Points: 33,267, Visits: 15,436
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
Post #1533862
Posted Thursday, January 23, 2014 1:54 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, January 23, 2014 1:52 PM
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!
Post #1534252
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse