Showing posts with label group. Show all posts
Showing posts with label group. Show all posts

Thursday, March 22, 2012

ActiveDirectory Group Security

Hi all

What i want to do - Execute a Stored Procedure when a user log on that is in aActiveDirectory Group.

I want to create a storedprocedure that will be executed when a windows user log on that is part of a specific ADGroup.

I was able to create the ADGroup and add it to logins. I was able to create the procedure with the ADGroup as owner.

The problem is when the user log on, he is not seen as part of the group that has rights on the DB.

Please help

From your description, I am assuming that you are having trouble to access a database (different than master) where your SP resides, correct?

If this is the case, probably what happened is that the AD group in that DB doesn’t have access to it. This is typically the case when users are created implicitly. You can try the following:

USE [<db_name>]

go

GRANT CONNECT TO [<ADGroup_name>]

go

BTW. If you only want the AD group to be able to execute the SP, you don’t need to make them owners, granting EXECUTE on the SP should be sufficient.

I hope this information helps, let us know if this solved your problem.

- Raul Garcia

SDE/T

SQL Server ENgine

Monday, March 19, 2012

Active Directory Groups Don't Work with Linked Server?

I mapped a login created with an Active Directory Group on server A to a login on server B through a linked server on server A and received a null login error when attempting to connect.

I changed the Active Directory Group login to an individual active directory login and the connection worked fine.

I saw someone post online somewhere that Active Directory Groups don't work with linked server by design--but I wanted to get confirmation on this. Can anyone confirm this, particularly someone from Microsoft?

This might be the dreaded "Double-hop" scenario. There's a great rundown by a Microsoft Protocols Engineer here:

http://blogs.msdn.com/sql_protocols/archive/2006/08/10/694657.aspx

That will get you started on learning why this is happening.

Active Directory Groups Don't Work with Linked Server?

I mapped a login created with an Active Directory Group on server A to a login on server B through a linked server on server A and received a null login error when attempting to connect.

I changed the Active Directory Group login to an individual active directory login and the connection worked fine.

I saw someone post online somewhere that Active Directory Groups don't work with linked server by design--but I wanted to get confirmation on this. Can anyone confirm this, particularly someone from Microsoft?

This might be the dreaded "Double-hop" scenario. There's a great rundown by a Microsoft Protocols Engineer here:

http://blogs.msdn.com/sql_protocols/archive/2006/08/10/694657.aspx

That will get you started on learning why this is happening.

Active Directory Groups Authenticate

I've got a windows application that needs to authenticate to the active directory.
But the only members of certain group can start the application.
for example only the administrators of the active directory can start the application.

Cheers,
Mike

Try posting this question on an Active Directory forum.

Thanks
Laurentiu

Active Directory groups / Permissions problems

We have a large group of users that need read access to a certain report folder. We have added the active directory group to the permissions for the entire folder, and all the reports inherit the folder's permissions.

About 75% of the people in the group CAN access the reports just fine. About 25 people cannot - they get the typical"The permissions granted to user 'DOMAIN\user' are insufficient for performing this operation."

Could someone point me in the right direction for debugging this problem? Is this a bug in Microsoft, or is this a "common" configuration problem where I can look at a couple of logs and change a couple of settings?

Any tips would be greatly appreciated

Sue

HiSue,

Do you use xp system? If so, you have to use impersonation, while on IIS6
and above you can use a domain account for the AppPool.

#Understanding ASP.NET Impersonation Security - Rick Strahl's Web Log
http://west-wind.com/weblog/posts/2153.aspx

Hope this helps.

|||

Rex:

Thank you for the tip. I do use IIS6, and the Reports Server web site, installed by the Reporting Services installer, already uses Impersonation.

Itried to change my application pool identity to a network service account, and it comes back saying I can't even browse the site, due to "Service Unavailable". The event logs seem to indicate that that service account doesn't have some security policy rights on the system, but I tried adding that account to "Log on Locally", "Log on as Service" and "Log on from Network" and none of that works.

We have also discovered that the domain group account that we added for security is listed in Active Directory as a "Distribution" type group and not a "Security" type group. I don't know if this makes a difference, but I'm going to see if we have a security group for these people.

Thanks
Sue

Active Directory Group & SQL Server 2000

Hi,
We have a problem with Active Directory and SQL Server 2000 (SP3a).
The problem is the following:
We have 2 different machines which are running a MS SQL Server 2000. Our fir
st server (Windows 2000) is the ActiveDirectory Controler for our organizati
on. The second server (Windows 2003 Enterprise) is just a member of this Ac
tiveDirectory.
In the Active Directory we have created a specific group for users who have
to using these servers. Then we have added this group to the SQL security of
the two servers.
If the users try to connect (through "Enterprise Manager" with the Windows A
uthentication mode), they can only be connected to the SQL Server that is lo
cated on the ActiveDirectory machine. If the users try to connect to the oth
er server, they receive the
following error message :
A Connection could not be established to SERVERNAME
Reason : Login failed for user 'DOMAINNAME\USERNAME'
Please verify SQL Server is running and check your SQL Server registration p
roperties (by right-clicking on the SERVERNAME node) and try again.
I've replaced for test the AD group (in SQL Security) by the AD user of the
user who couldn't connect to the server. After that, the user has been able
to connect successfully.
What's wrong? Why is the group accepted only on the ActiveDirectory machin
e and not on the other one
Any Help would be appreciated to resolve this problem.
Thanks in advance
Best Regards
Vincent Daglia
ABISSA Informatique SA
SwitzerlandYou may want to check the client's ability to resolve the groups on the
server.
netdiag.exe can be used to test client connectivity with the DC and DNS
name resolution.
321708 HOW TO: Use the Network Diagnostics Tool (Netdiag.exe) in Windows
2000
http://support.microsoft.com/?id=321708
Run it with the /v (verbose) flag.
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||Allready done
In addition we have applied "Windows Server 2003 - Troubleshooting Kerberos
Delegation" documentation.
With Netdiag.exe I get the following error :
Kerberos test. . . . . . . . . . . : Failed
[FATAL] Kerberos does not have a ticket for host/grenache.abissa.ch
For information SPNs entry on our AD server are :
HOST/grenache.abissa.ch
HOST/grenache
MSSQLSvc/grenache.abissa.ch:1433
MSSQLSvc/grenache:1433
Any other ideas?
Vincent Daglia
ABISSA Informatique SA
Switzerland
[vbcol=seagreen]
You may want to check the client's ability to resolve the groups on the
server.
netdiag.exe can be used to test client connectivity with the DC and DNS
name resolution.
321708 HOW TO: Use the Network Diagnostics Tool (Netdiag.exe) in Windows
2000
http://support.microsoft.com/?id=321708
Run it with the /v (verbose) flag.
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.

Active Directory Domain Local Groups

Hi,
I have the following problem with AD an RS: when creating a group of users
as a "domain local group" in AD, i'm able to give a specific item-level role
in RS to members of this group. But it looks like rights are not effective
for those users. For example if the group is defined as "reader" on a folder,
group members can't see it in RS!
Everything works fine when the created group is a "global group" in AD.
Thanx in advance.
Greg.I still need help.
Thanx in advance.
"Greg - NEOS" wrote:
> Hi,
> I have the following problem with AD an RS: when creating a group of users
> as a "domain local group" in AD, i'm able to give a specific item-level role
> in RS to members of this group. But it looks like rights are not effective
> for those users. For example if the group is defined as "reader" on a folder,
> group members can't see it in RS!
> Everything works fine when the created group is a "global group" in AD.
> Thanx in advance.
> Greg.

Active Directory Conversion

We are updating an NT domain to Active Directory.
All of our security group within RS are based on local (machine groups)
which contain domain groups as members. So we are pretty comfortable with
the conversion path required there.
We understand how we can change the Data Base Agent and Remote Execution
Agents using rsconfig (-c and -e switches).
The ReportServer Service runs as NT Authority\Network Service and as such
needs no change.
Is there anything else we are missing which must be touched to get to AD?
thanks in advance,
dlrDennis,
My company recently migrated all the users from an NT domain to an AD domain
and since we have been unable to setup new email subscriptions through RS.
Our work around has been to login to the old domain and create the
subscriptions. It seems that the account RS uses does not have permissions to
read the TGGAU attribute on the user account that was used to create and to
process the e-mail subscriptions. Until our RS server is migrated over to the
new AD domain I don't know of a solution to this issue. You can find out more
about it below...hope this helps...
http://support.microsoft.com/default.aspx?scid=kb;en-us;842423
Regards,
Ben Sullins
"Dennis Redfield" wrote:
> We are updating an NT domain to Active Directory.
> All of our security group within RS are based on local (machine groups)
> which contain domain groups as members. So we are pretty comfortable with
> the conversion path required there.
> We understand how we can change the Data Base Agent and Remote Execution
> Agents using rsconfig (-c and -e switches).
> The ReportServer Service runs as NT Authority\Network Service and as such
> needs no change.
> Is there anything else we are missing which must be touched to get to AD?
>
> thanks in advance,
> dlr
>
>|||thanx
"Ben Sullins" <BenSullins@.discussions.microsoft.com> wrote in message
news:5471A631-EA2F-4661-843B-2374D548F7A5@.microsoft.com...
> Dennis,
> My company recently migrated all the users from an NT domain to an AD
domain
> and since we have been unable to setup new email subscriptions through RS.
> Our work around has been to login to the old domain and create the
> subscriptions. It seems that the account RS uses does not have permissions
to
> read the TGGAU attribute on the user account that was used to create and
to
> process the e-mail subscriptions. Until our RS server is migrated over to
the
> new AD domain I don't know of a solution to this issue. You can find out
more
> about it below...hope this helps...
> http://support.microsoft.com/default.aspx?scid=kb;en-us;842423
> Regards,
> Ben Sullins
> "Dennis Redfield" wrote:
> > We are updating an NT domain to Active Directory.
> > All of our security group within RS are based on local (machine groups)
> > which contain domain groups as members. So we are pretty comfortable
with
> > the conversion path required there.
> > We understand how we can change the Data Base Agent and Remote Execution
> > Agents using rsconfig (-c and -e switches).
> > The ReportServer Service runs as NT Authority\Network Service and as
such
> > needs no change.
> >
> > Is there anything else we are missing which must be touched to get to
AD?
> >
> >
> > thanks in advance,
> >
> > dlr
> >
> >
> >
> >

Tuesday, March 6, 2012

Acess 2003 connection problem to SQL Server

I have a small group who uses Access 2003 to connect to SQL Server. The
users run XP pro and Access 2003. A common DSN is created on each user’s
box. They are connecting to a box with Windows 2000 Standard Svc Pack 4 &
SQL Server 2000 Standard Svc Pack 3a. They are linking to the SQL Server
tables. We are using windows authentication.
The two users are not able to access SQL Server at the same time. The error
message they are receiving is:
Microsoft Office Access
Could not execute query; could not find liked table.
[Microsoft][ODBC SQL Server Driver][SQL Server] Invalid object name
‘dbo.MAIN. (#208)
Interesting though is that if the user drops the e linked table and try to
relink it the objects that appear are from the Master database.
I verified the Group the users belong to have the correct default database
set.
I am at a loss and any help or hints to get me going in the right direction
would be appreciated.
It will work better for you if you ditched the DSNs and wrote VBA/DAO
code to relink the tables. You can supply ODBC connection string
information directly when the application loads, and delete the
TableDef objects when the application closes. You supply a source
table name, and the name of the link in the FE separately. This way
you pick up any schema changes to the underlying tables, which
invalidates old links. You can get the correct connection string from
http://able-consulting.com/ADO_Conn.htm. I recommend using DAO for
this instead of ADOX because there have been problems in the past with
linked tables coming in read-only.
--Mary
On Thu, 12 Aug 2004 09:21:02 -0700, "T Man"
<TMan@.discussions.microsoft.com> wrote:

>I have a small group who uses Access 2003 to connect to SQL Server. The
>users run XP pro and Access 2003. A common DSN is created on each users
>box. They are connecting to a box with Windows 2000 Standard Svc Pack 4 &
>SQL Server 2000 Standard Svc Pack 3a. They are linking to the SQL Server
>tables. We are using windows authentication.
>The two users are not able to access SQL Server at the same time. The error
>message they are receiving is:
>Microsoft Office Access
>Could not execute query; could not find liked table.
>[Microsoft][ODBC SQL Server Driver][SQL Server] Invalid object name
>dbo.MAIN. (#208)
>
>Interesting though is that if the user drops the e linked table and try to
>relink it the objects that appear are from the Master database.
>I verified the Group the users belong to have the correct default database
>set.
>I am at a loss and any help or hints to get me going in the right direction
>would be appreciated.
|||Mary,
I am confused regarding the stance on the usage of DAO... In an email to
another user it appears you do not favor the use of DAO...
(At this point in time, DAO 3.6 is truly ancient...), however, in this case
it appears preferred.
Is it OK for linking, but not OK to perform updates ? Just want to know the
difference.
Thanks
"Mary Chipman" <mchip@.online.microsoft.com> wrote in message
news:s0oph0tv4tkue147148v4qccketajvdetj@.4ax.com... [vbcol=seagreen]
> It will work better for you if you ditched the DSNs and wrote VBA/DAO
> code to relink the tables. You can supply ODBC connection string
> information directly when the application loads, and delete the
> TableDef objects when the application closes. You supply a source
> table name, and the name of the link in the FE separately. This way
> you pick up any schema changes to the underlying tables, which
> invalidates old links. You can get the correct connection string from
> http://able-consulting.com/ADO_Conn.htm. I recommend using DAO for
> this instead of ADOX because there have been problems in the past with
> linked tables coming in read-only.
> --Mary
> On Thu, 12 Aug 2004 09:21:02 -0700, "T Man"
> <TMan@.discussions.microsoft.com> wrote:
&[vbcol=seagreen]
error[vbcol=seagreen]
to[vbcol=seagreen]
database[vbcol=seagreen]
direction
>

Accumulated value in table detailrow

I have a dataset with a GROUP BY connected to my table.
In the detailrow I want to add a accumulated value calculated from another
field.
Like this:
MonthX ValueY Acc. value
--
Month 1 10 10
Month 2 20 30
Month 3 30 60
Month 4 40 100
Can I do it by referencing the textboxes in the table, or can i change my
transact-SQL in any way?
(SELECT MonthX,SUM(SomeValue)/SUM(AnotherValue) AS ValueY FROM MyTable GROUP
BY MonthX ORDER BY MonthX)
Please help!Take a look at the reporting services RunningValue function.
"Olof" <Olof@.discussions.microsoft.com> wrote in message
news:4FF60820-A413-4CDB-BAB3-991DBDB8759A@.microsoft.com...
>I have a dataset with a GROUP BY connected to my table.
> In the detailrow I want to add a accumulated value calculated from another
> field.
> Like this:
> MonthX ValueY Acc. value
> --
> Month 1 10 10
> Month 2 20 30
> Month 3 30 60
> Month 4 40 100
> Can I do it by referencing the textboxes in the table, or can i change my
> transact-SQL in any way?
> (SELECT MonthX,SUM(SomeValue)/SUM(AnotherValue) AS ValueY FROM MyTable
> GROUP
> BY MonthX ORDER BY MonthX)
> Please help!|||Thank you very much Stephen, that function was exactly what I needed!!
Greetings
Olof
"Stephen Farmer" wrote:
> Take a look at the reporting services RunningValue function.
>
> "Olof" <Olof@.discussions.microsoft.com> wrote in message
> news:4FF60820-A413-4CDB-BAB3-991DBDB8759A@.microsoft.com...
> >I have a dataset with a GROUP BY connected to my table.
> > In the detailrow I want to add a accumulated value calculated from another
> > field.
> > Like this:
> > MonthX ValueY Acc. value
> > --
> > Month 1 10 10
> > Month 2 20 30
> > Month 3 30 60
> > Month 4 40 100
> >
> > Can I do it by referencing the textboxes in the table, or can i change my
> > transact-SQL in any way?
> > (SELECT MonthX,SUM(SomeValue)/SUM(AnotherValue) AS ValueY FROM MyTable
> > GROUP
> > BY MonthX ORDER BY MonthX)
> >
> > Please help!
>
>

Saturday, February 25, 2012

Account used for sql 2005, x64, " lock pages in memory" option

Our sql 2005, x64, box, has 9GB of RAM and the sql server account is the "local system account". I opened the group policy editor to give that account "lock pages in memory" permission but I couldn't find that account in the "Add User or Group" pane of the policy editor. I did find something called "local service group" though it does not appear to exist as a local group or user on the box.

1. Do I need to create a domain user for this purpose?

2. Do the other services (e.g. Analysis Services, Integration Services, etc) also need to run under an account that has "lock pages in memory" privelage?

TIA,

barkingdog

Hey Dog,

I assume you want to do this because you are going to enable AWE?

1. You should not have to add Local System to this Policy because Local System pretty much owns the server, but you can add it by double clicking the policy>add user> and then type in SYSTEM and click OK. Make sure the Locations box is pointing to your local server and not to the domain when you do this.

2. I'm not sure but if they are both running under Local System as well then you should be covered by performing step 1.

|||

Andy,

Thanks, didn't know that stuff.

Also from what I understand (from Slava's blog) there is no need to enable AWE on an x64 machine with 64-bit OS and 64-bit sql 2005. (If you are interested I can probably find the URL to Slava's blog

Barkingdog

|||

Hey dog,

Yeah I do seem to remember that discussion but for some reason I remain skeptical

The reason I say that is I have an x64 server with 16GB of RAM and just for kicks I enabled AWE at 6144MB of RAM and after a month of running the server, SQL Server has never consumed more than 6GB of RAM, hhhmmm..

I'll have to do some more testing to see what the scoop is.

accidentally deleted BUILTIN\Administrators group in Security tab

How can I recreate the BUILTIN\Administrators group that I had deleted
accidentally? My Slqserver 2K is in mixed mode.
Thanks
BillU don't have to as long as sql service and sql agent accounts have appropriate rights however you can do this fform EM --> logins and just add the user Builtin\Administrators

accidentally deleted BUILTIN\Administrators group in Security tab

How can I recreate the BUILTIN\Administrators group that I had deleted
accidentally? My Slqserver 2K is in mixed mode.
Thanks
BillU don't have to as long as sql service and sql agent accounts have appropria
te rights however you can do this fform EM --> logins and just add the user
Builtin\Administrators

Friday, February 24, 2012

Accessing Windows Users assigned to a database role

Is there a way to find a list of Windows User accounts that are directly or indirectly (through Windows Group membership) assigned to a database role?
I could put work in to CLR programming or using a Linked Server to Active Directory, but if there is a sys.* view available that can provide me this information directly it would be much easier.
I'll be looking into this further myself anyway and posting an answer if I can find one, but if anyone has suggestions... well, thanks!

Hi,

guess not, but if you have one ready, feel free to post it to me, I will bring it online on my soon launched site www.sqlserver2005.de

HTH, jens Suessmeyer.

Sunday, February 19, 2012

accessing the database remotely from non-microsoft platform

I have a query of the kind brains of this group.

Is it possible to access a microsoft sqlserver database (for select, insert,
update, delete, and for miscellaneous administrative actions such as table
and index creation and deletion) remotely from a compiled C program (and/or,
from Perl) running on a NON microsoft platform, such as Sun's Solaris and/or
Linux?

What toolset(s) could be used (on the UNIX/Linux end) for such a purpose?
Would it require a corresponding special toolset to be installed on the
Windows server end as well? (I'd prefer not to have to do that if
possible.)

If you are not now rolling on the floor laughing at the "heresy" of such a
notion, thanks in advance.

Dan
drlevy@.glowing.com (replace 'glowing' with 'lucent')Some suggestions here:

http://www.sommarskog.se/mssqlperl/unix.html

Simon

Monday, February 13, 2012

Accessing SQL Server

Hi Group,

I have my IIS webserver outside the fire wall and my SQL Server is behind the firewall . Can IIS Still access the SQL Server for ASP pages, is it for this situation do i need to open the port no 1433 in the firewall for SQL Server, if so is there any security threat?
Thank You for your Time
Krishna<sarcasm mode="on">
Security threat? This is Microsoft, you don't need to worry about security!
<sarcasm mode="off">

Sorry about that.

Yes, if you have a firewall and your IIS server is outside the firewall, then you will need to open up port 1433 to allow traffic from your web server back to your SQL server. You should be able to do this in such a way that the 1433 traffic MUST originate from the IP address of the web server.

Regards,

Hugh Scott

Notes:
1. Sorry again for the sarcasm, I couldn't overlook the opportunity.
2. You should be VERY cautious with your ASP pages. It would be far more secure to avoid any ADO references in the ASP pages. Instead, consider creating DLLs that embed the ADO and expose properties and methods that you can access from ASP.
3. Be sure to avoid putting connection information in your ASP. At a minimum, try putting the connection info in the global.asa file or in include files that are in a directory with tighter security.
4. Finally, be sure than you "cleanse" user input of any characters that might be used in a SQL injection attack ("%" "," "'" ";"). there are other characters, but these are the bigger ones.

Originally posted by mellamarthy
Hi Group,

I have my IIS webserver outside the fire wall and my SQL Server is behind the firewall . Can IIS Still access the SQL Server for ASP pages, is it for this situation do i need to open the port no 1433 in the firewall for SQL Server, if so is there any security threat?
Thank You for your Time
Krishna

Accessing reports from a ASP.NET 2.0 web site

Though I would beleive it to not be an issue I thought I would bounce this
off the group.
We are looking at deploying a web site that will be created under 2.0
Framework. Resources such as SQL Server Reporting Services and SMS are still
under the 1.1 Framework. I would think that this wouldn't be an issue since
the connections established between these resrouces will be outside the
bounds of the different frameworks.
Is there a problem that I'm no seeing with this deployment picture?
Ken...Let me make sure this is clear.
The relationship that I am facing would have a 2.0 Framework web server
sitting on one web server, 1.1 framework on the SMS and SQL Server Reporting
Services server.
"Ken Carter" wrote:
> Though I would beleive it to not be an issue I thought I would bounce this
> off the group.
> We are looking at deploying a web site that will be created under 2.0
> Framework. Resources such as SQL Server Reporting Services and SMS are still
> under the 1.1 Framework. I would think that this wouldn't be an issue since
> the connections established between these resrouces will be outside the
> bounds of the different frameworks.
> Is there a problem that I'm no seeing with this deployment picture?
> Ken...|||On Mon, 5 Dec 2005 12:37:02 -0800, "Ken Carter"
<KenCarter@.discussions.microsoft.com> wrote:
>Though I would beleive it to not be an issue I thought I would bounce this
>off the group.
>We are looking at deploying a web site that will be created under 2.0
>Framework. Resources such as SQL Server Reporting Services and SMS are still
>under the 1.1 Framework. I would think that this wouldn't be an issue since
>the connections established between these resrouces will be outside the
>bounds of the different frameworks.
>Is there a problem that I'm no seeing with this deployment picture?
I'm sure its workable. RS exposes a web service and ASP.NET2 certainly
has ways of consuming a web service although I'm not sure if the
ASP.NET viewer control can talk to the old RS.
If its a public web site then you better hope that your visitors are
using Internet Explorer. RS is almost useless in FireFox. I don't know
about other non IE browsers. At least that's my experience, even with
2005. I'm curious to hear if anyone is having better luck than me.|||This is inside our network and yes, all IE browsers. I didn't think it would
be a problem but who ever knows what's going to bite ya.
Thanks for the response.
"Ross" wrote:
> On Mon, 5 Dec 2005 12:37:02 -0800, "Ken Carter"
> <KenCarter@.discussions.microsoft.com> wrote:
> >Though I would beleive it to not be an issue I thought I would bounce this
> >off the group.
> >
> >We are looking at deploying a web site that will be created under 2.0
> >Framework. Resources such as SQL Server Reporting Services and SMS are still
> >under the 1.1 Framework. I would think that this wouldn't be an issue since
> >the connections established between these resrouces will be outside the
> >bounds of the different frameworks.
> >
> >Is there a problem that I'm no seeing with this deployment picture?
> I'm sure its workable. RS exposes a web service and ASP.NET2 certainly
> has ways of consuming a web service although I'm not sure if the
> ASP.NET viewer control can talk to the old RS.
> If its a public web site then you better hope that your visitors are
> using Internet Explorer. RS is almost useless in FireFox. I don't know
> about other non IE browsers. At least that's my experience, even with
> 2005. I'm curious to hear if anyone is having better luck than me.
>
>