Solved

SQL - Grant group access to database fails

Posted on 2013-06-11
5
323 Views
Last Modified: 2013-08-06
Hoping someone can help me out here.

I've create a database in SQL 2005 and need to have users access it via Excel.
If I gran login access to a user account, excel quite happily connects, all is good.

I however want to grant access with an AD global group instead of per user.  When I do so, using the same server & database permissions, Excel gives me a login failed.

To be clear, I'm assigning my database as the default database in the General tab.
Server Roles - Public (default)
User Mapping - public, db_datareader

In the server event log I get a Failure Audit on the user (when I've assigned group access to the database), event ID 18456.

Can't figure this out. Still searching...
Thank you for your time.
0
Comment
Question by:Jay
[X]
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
5 Comments
 
LVL 4

Expert Comment

by:TalShyar
ID: 39238352
Take a look at this article if you have not already done so:

http://blogs.msdn.com/b/sql_protocols/archive/2006/02/21/536201.aspx
0
 

Author Comment

by:Jay
ID: 39238678
Thank you.   I went through it but didn't find anything that matched my issue.

So specifically, I'm getting "severity 14, state 16".
Everything Ive read so far point to the login not being set to an active database, yet like I said, the same setup on a user account works fine.
0
 
LVL 24

Expert Comment

by:DBAduck - Ben Miller
ID: 39239994
So to be clear, you have created a global group in AD and added this user, that worked when used alone, to this group.

Then you went into SQL and added this Global Group to Login and set a default database to your database, then mapped this group to a database and assigned db_datareader.

Is that where you are now?
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 500 total points
ID: 39240004
So you created a Windows Login in SQL Server as opposed to a SQL Server Login?  Did you map the user in the database to this Login?  What does your connection string in Excel look like?
0
 

Author Comment

by:Jay
ID: 39242468
dbaduck - That sounds about right.

Under Security/Logins, I added the user account, assigned the database, and assigned permissions db_datareader.

Works fine.

Same procedure except using the global group doesn't work.  
I'm assuming i should be assinging the database under User Mapping?  Right ? Thats where i would normally select the database and then assign db_datareader.
Server Roles is set to Public
nothing else is changed.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

630 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