Deprecated: Function set_magic_quotes_runtime() is deprecated in /usr/local/apache/sites/mcse.ms/htdocs/362/includes/class_core.php on line 1505 Call Stack: 0.0026 466740 1. {main}() /usr/local/apache/sites/mcse.ms/htdocs/362/archive/index.php:0 0.0043 539364 2. require_once('/usr/local/apache/sites/mcse.ms/htdocs/362/archive/global.php') /usr/local/apache/sites/mcse.ms/htdocs/362/archive/index.php:25 0.0045 540652 3. require_once('/usr/local/apache/sites/mcse.ms/htdocs/362/includes/init.php') /usr/local/apache/sites/mcse.ms/htdocs/362/archive/global.php:20 0.0056 614964 4. vB_Registry->vB_Registry() /usr/local/apache/sites/mcse.ms/htdocs/362/includes/init.php:43 0.0057 615620 5. vB_Input_Cleaner->vB_Input_Cleaner() /usr/local/apache/sites/mcse.ms/htdocs/362/includes/class_core.php:2337
Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /archive/global.php on line 26

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3113

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /includes/functions.php on line 3265
SQL Server role members [Archive] - MCSE

PDA

View Full Version : SQL Server role members


Jakob Bengtsson
04-11-04, 09:50 PM
something
Hi,

I've created roles in a database. Each role has members consisting of various NT security groups.

When I try to determine if someone is a member of a role, it seems that only explicit members are returned as valid.

I'm using the IS_MEMBER scalar function, but the result is not as I had hoped.

Example:
In RoleA I have NTGroupA. If I log on to the database as a member of NTGroupA and execute IS_MEMBER('RoleA') it returns zero, when in fact I am a member of the role implicitly.

Is there some way of resolving this? Any help would be appreciated.

Regards,
Jakob

Jasper Smith
04-11-04, 09:50 PM
something
There's probably a simpler way I'm blanking on but you can get the
permission path for a user using xp_logininfo e.g.

use master
go

create procedure sp_isinrole
(
@role sysname,
@result bit OUTPUT -- 1 = yes,0 = no
)
as
set nocount on
declare @group sysname
declare @u sysname ; set @u = SUSER_SNAME()
create table #info
(
account sysname,
type sysname,
privilege sysname,
mappedlogin sysname,
path sysname
)
insert #info
exec master..xp_logininfo @u
select @group = path from #info

if exists (
select 1 from sysmembers where memberuid =
(select uid from sysusers s
join master.dbo.sysxlogins x on s.sid=x.sid
where x.name = @group)
and groupuid = (select uid from sysusers where name = @role))
set @result = 1
else
set @result = 0

drop table #info
return
go
grant exec on sp_isinrole to public

-- test logged as member of nt group and in relavent database
use <dbname>
go
declare @result bit
exec sp_isinrole 'db_datareader',@result OUTPUT
select @result

Unfortunately the insert exec negates the use of a UDF (without using a
loopback linked server)

--
HTH

Jasper Smith (SQL Server MVP)

I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org


"Jakob Bengtsson" <j.bengtsson@email.dk> wrote in message
news:D57B05BD-E9D0-43F4-9FCA-DD220C55714D@microsoft.com...
> Hi,
>
> I've created roles in a database. Each role has members consisting of
various NT security groups.
>
> When I try to determine if someone is a member of a role, it seems that
only explicit members are returned as valid.
>
> I'm using the IS_MEMBER scalar function, but the result is not as I had
hoped.
>
> Example:
> In RoleA I have NTGroupA. If I log on to the database as a member of
NTGroupA and execute IS_MEMBER('RoleA') it returns zero, when in fact I am a
member of the role implicitly.
>
> Is there some way of resolving this? Any help would be appreciated.
>
> Regards,
> Jakob

Jakob Bengtsson
04-11-04, 09:51 PM
something
Hi Jasper,

Thanks for replying.

When I try your solution I get a result of zero each time, so it doesn't seem to work for me.

I have tried testing it with all roles in the database, also roles for which my membership can be discovered using the IS_MEMBER function -- all return zero.

But, thanks for helping out.

Jakob

Baisong Wei[MSFT]
04-11-04, 09:51 PM
something
Hi Jakob,

From you information, you have an NT group and this group is a login of the
SQL Server and is belong to a role of one database. Is_member () do not
reflect this information.

I want to know if you have the latest Service Pack for both you windows and
SQL Server. How many roles have you already have in your database? Another
thing is, if you reboot you computer, could it work?

You could download the latest Service Pack from
http://support.microsoft.com/default.aspx?scid=fh;en-us;sp

Looking forward to your reply.

Thanks.

Best regards

Baisong Wei
Microsoft Online Support
----------------------------------------------------
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only. Thanks.

Jakob Bengtsson
04-15-04, 06:16 AM
something
Hi Baisong,

Thanks for replying.

You understand the problem correctly.

I'm running the developer edition of SQL Server with SP3 on my Windows 2003 development machine. No service packs are installed for Win2003 but I stay current with the Automatic Updates feature.

I have rebooted the machine, but this does not help.

In this database I have four roles, apart from the built-in roles.

Best regards,
Jakob

Baisong Wei[MSFT]
04-16-04, 03:53 AM
something
Hi Jakob,

Thanks for the update. Well, I take a test on my machine and did not
re-produce the problem. Could you follow my steps and try again, I log in
my computer as system administrator:
1) I create some windows account, my machine name is BAIWEI:
BAIWEI\test1
BAIWEI\test2
BAIWEI\test3
2) I create a windows group BAIWEI\testgroup, and add the above three
account in this windows group
3) In the SQL Enterprise Manager, I only add this windows group
BAIWEI\testgroup as a SQL Server login
4) Then, in SQL Enterprise Manager, in the pubs database, I add this SQL
login BAIWEI\testgroup as the database user.
5) Then in the pubs database, I created a database role 'groupmember' and
only add this database user 'BAIWEI\testgroup' in this role, all the other
settings are default.
6) I log off and again log in my computer with account 'test1'.
7) In the Query Analyzer, I run the following T-SQL:
select is_member('groupmember')
I got 1.

As IS_MEMBER() Indicates whether the current user is a member of the
specified Microsoft Windows NT group or Microsoft SQL Server role. I run
select is_member('BAIWEI\testgroup')
I got 1too.

Could you take the exact above steps and check if you got the same results?
Looking forward to your reply.

Best regards

Baisong Wei
Microsoft Online Support
----------------------------------------------------
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only. Thanks.

Jakob Bengtsson
04-16-04, 03:53 AM
something
Hi Baisong,

Thanks for your continued help.

I have tried the steps outlined by you.

My result differs, however. The name of my computer is Apollo34

IS_MEMBER('groupmember') returns 0

IS_MEMBER('Apollo34\testgroup') returns 1

Best regards,
Jakob Bengtsson


"Baisong Wei[MSFT]" <v-baiwei@online.microsoft.com> wrote in message
news:1AcEpa3IEHA.2432@cpmsftngxa06.phx.gbl...
> Hi Jakob,
>
> Thanks for the update. Well, I take a test on my machine and did not
> re-produce the problem. Could you follow my steps and try again, I log in
> my computer as system administrator:
> 1) I create some windows account, my machine name is BAIWEI:
> BAIWEI\test1
> BAIWEI\test2
> BAIWEI\test3
> 2) I create a windows group BAIWEI\testgroup, and add the above three
> account in this windows group
> 3) In the SQL Enterprise Manager, I only add this windows group
> BAIWEI\testgroup as a SQL Server login
> 4) Then, in SQL Enterprise Manager, in the pubs database, I add this SQL
> login BAIWEI\testgroup as the database user.
> 5) Then in the pubs database, I created a database role 'groupmember' and
> only add this database user 'BAIWEI\testgroup' in this role, all the other
> settings are default.
> 6) I log off and again log in my computer with account 'test1'.
> 7) In the Query Analyzer, I run the following T-SQL:
> select is_member('groupmember')
> I got 1.
>
> As IS_MEMBER() Indicates whether the current user is a member of the
> specified Microsoft Windows NT group or Microsoft SQL Server role. I run
> select is_member('BAIWEI\testgroup')
> I got 1too.
>
> Could you take the exact above steps and check if you got the same
results?
> Looking forward to your reply.
>
> Best regards
>
> Baisong Wei
> Microsoft Online Support
> ----------------------------------------------------
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
> Please reply to newsgroups only. Thanks.
>
>

Baisong Wei[MSFT]
04-16-04, 06:02 PM
something
Hi Jakob,

Thanks for you update. One thing I should confirm is that, the user you
login into your system and run the is_member() should NOT be the system
administrator of the SQL Server, that is, it should not belong to the
sysadmin server role.

Also, could you please provide the following information:
use master
go
select * from syslogins
select * from sysxlogins
use pubs
go
select * from sysmembers
select * from sysusers
exec sp_helprolemember
exec sp_helpuser

Looking forward to your reply. Thanks.


Best regards

Baisong Wei
Microsoft Online Support
----------------------------------------------------
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only. Thanks.

Jakob Bengtsson
04-19-04, 03:17 AM
something
Hi Baisong,

The user I log in with is as previously specified by you (test1, test2 or
test3, all members of testgroup role in PUBS), none of which are in the SA
role. I have double-checked just to make sure, and none of the users are in
the SA role.

The results of the SQL statements in your previous post are attached as a
zipped text file (results.zip).

Thanks for your help.
Jakob


begin 666 results.zip
M4$L#!!0````(`*M.DS"QB=O.D X``,9W`0`+````<F5S=6QT<RYT>'3M75VH
M)$<5KF4CA)C :I#X$,+%J.P&=JGI^5\%F5]9W=R-=UV?(LG]V[MW]_[MG7MS
M=U&?5A%!E'U1U >)XF->U!!!5)*0IXA!$!\,YL$($O.@@O@@DO6<T]-WNOIV
M37?-5O?L=!T^NF?Z=%6=GIJJ.E^?JCY]Y[V!6!<K8HYA'0.Q)Q9AVX=O<V)9
M[(I5.EZ%^O8_DTJ8'/MBYU!+]MH6X=<MYZ#'QY[8AFT9?N%^C'P=]FKZ`:3$
M*UP5&W!V$[:]87H\BDKGZ'\:0-D;( F?VX)2-G/X??<N5L22X[6 +6D`.(!6
MMNODN+D!-; EUJ!_+,+>Q7:P`K]Z2]R$FMB&&EB'[[[\"K4-?RQ<I5;BR]?A
MVQ:,(-&>$\C7H"5MTXBMRM%NK,*Y(/T`=&+Y*S0B;87DJZ!Q'U+B.'532>&7
M\!SMH_(]TJF6MT/7$EQ_^-P*7=>U(_IQ3!C9MNW#ZUVB$?1H^E&MN3J2/"0>
M$*<9F6!NS%'6<%';M.3N@&N :X!KP'1\F)9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2RJ@X5.&L>JX%UJDE.H &G/-1$VW1A\\^G.^+'FP-J-$V
MS9WUX5/"49 _Z9J*@< 'Z8.9I)M(GE<N0<\X`U(;G"Y9FS^+7:9G:9)*2X)4
MCI@M,'@6FQ&&*8,TE<O,Y<@@<3L)UU !";+"`S@:B%-PM"@N`_"-AL@;5T 6
MI.^*);$`:3= 'E]VT?%D:%WH/-34IG,U$:Z!B^(<M(FD'(QTP!YVVG',):8H
M.K@&LH+?P_RG1-'>;3FWNM\'SS &_B%L#_S,!_L+I^$O''%PG/]/R\ OT;O&
M;7#/3Q_^MVG*.@]IU^C-E&E2CT,7\EZ&??M(2<%O\SDE<\NL8)-GFK$5L]3C
MH"]I;LP1PQ[\=F3/=IC987MZ-V$4&L3&!U'GV*9E(^RQ-3/F.X!Z22HQ'?0U
MK'K 5%9FZSF*'2AI26R [5I.3&O3MZLO25WO%\RH!1;^_U!+`0(4"Q0````(
M`*M.DS"QB=O.D X``,9W`0`+````````````( ````````!R97-U;'1S+G1X
7=%!+!08``````0`!`#D```"Y#@``````
`
end

Baisong Wei[MSFT]
04-20-04, 03:15 AM
something
Hi Jakob,

Thanks for your information. I check the results from you, it is no problem
from a SQL Server side. What I mean is that it is same as mine. So, the
last thing I need to check is out of the SQL Server. If a windows account
is the windows system administrator, it will belong to a system
administrator login, which is Buildin\Administrators. The
Buildin\Administrators login is also belong to a SQL Server server role
'Sysadmin'. So, could you delete the Buildin\Administrators and try again.
Actually, it is recommended to delete it for security concern. Please refer
to the 'SQL Server Logins, Users, and Roles' part in the following article:
Checklist: Securing Your Database Server
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/ht
ml/CL_SecDBSe.asp

Then try again. Waiting for your results. Thanks.

Best regards

Baisong Wei
Microsoft Online Support
----------------------------------------------------
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only. Thanks.

Jakob Bengtsson
04-20-04, 07:11 AM
something
Hi Baisong,

Thanks for your help. Deleting the Builtin\Administrators helped.

IS_MEMBER() now returns the correct value in all cases I've tested so far.

Thanks again and best regards,
Jakob

vBulletin v3.6.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.