473,503 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Windows NT Integrated Security

I have an ADP application that uses Windows NT Integrated Security.
Is there a way that I can programmatically check to see if a user is a
member of a certain group?

or...if Not

Is there a way in the same application to see if the group that the
user is a member of is a member of a certain Role in the database?

Thanks for your time.
Nov 12 '05 #1
2 1943
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Read the BOL article on "sp_helpuser." It will return all info about
a user:

exec sp_helpuser 'dave'

Where 'dave' is the NT or SQL sign-on name.
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQEFsyYechKqOuFEgEQKT/ACgzQosVsZKSCJLTulV+aQUS6eU5UoAoIJL
0v7sBdsvLJfHi+n4NHp5doI8
=K70g
-----END PGP SIGNATURE-----
Dave wrote:
I have an ADP application that uses Windows NT Integrated Security.
Is there a way that I can programmatically check to see if a user is a
member of a certain group?

or...if Not

Is there a way in the same application to see if the group that the
user is a member of is a member of a certain Role in the database?


Nov 12 '05 #2
Thanks for your reply. I tried your suggestion, but it doesn't quite
satisfy my problem. My users are defined in a Windows User Group. It
won't tell me if a user is a member of an authorized group.

My dilemma is that I need to be able to allow Users to delete their own
records and not others, but someone that's a member of the CFAdmin can
override and delete the record.

I'll use VB to check if the record is theirs so that they can delete it.
That's no problem. It's just the check to find out if another person is
part of the CFAdmin Group.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1991
by: Jeremy | last post by:
In my ASP.NET web applications I would like to use "integrated security=SSPI" instead of supplying a SQL Server account credentials. From what I understand there are security policy settings...
1
2779
by: Greg Busby | last post by:
I have a client who wants to use Windows Integrated Security for authentication and authorization to use this application. They also want this application to run as soon as Windows comes up. So, I...
2
2564
by: epaetz | last post by:
I'm getting Not associated with a trusted SQL Server connection errors on a .Net windows service I wrote, when it's running on my application server. It's not a problem with mixed mode...
2
2610
by: Joseph Geretz | last post by:
I'm having a credentialing problem in my web application. Actually, I don't think this is an IIS security issue, since I'm able to access the page I'm requesting. However, the executing page itself...
4
6790
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok....
5
1875
by: sid | last post by:
I am trying to connect to SQL serevr using 'Windows only Authentication'. Below is my code. Dim strConn As String = _ "data source=localhost; " & _ "initial catalog=northwind; " & _ "integrated...
1
1455
by: Razvan | last post by:
This problem occurs in ASP.Net application, only on Windows 2000. Everything works fine on Windows Server 2003. Here is the scenario: I configured the application to use impersonation and...
7
3012
by: Alice Wong | last post by:
I am setting up my Web ASP.net application to connect to Sql server using windows authentication. I set up IIS to have integrated windows authenication and sql to allow Windows authentication....
2
24866
by: Dariusz Tomon | last post by:
I got an ASPNET C# project from client. When I'm trying to open it in Visual Studio I get error message: "Unable to start debugging on the web server. Debugging failed because integrated Windows...
1
1284
by: Jacob | last post by:
I have some .NET web services deployed in IIS and having the Directory security set to integrated windows security. I would like to call these services form other web based applications written in...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
6979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4998
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.