473,656 Members | 2,983 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 programmaticall y 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 1948
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Read the BOL article on "sp_helpuse r." It will return all info about
a user:

exec sp_helpuser 'dave'

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

iQA/AwUBQEFsyYechKq OuFEgEQKT/ACgzQosVsZKSCJL TulV+aQUS6eU5Uo AoIJL
0v7sBdsvLJfHi+n 4NHp5doI8
=K70g
-----END PGP SIGNATURE-----
Dave wrote:
I have an ADP application that uses Windows NT Integrated Security.
Is there a way that I can programmaticall y 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
2009
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 that need to be setup on the web server to allow for me to do this, but I'm not 100% sure what they are. I think I have to allow a remote token (from remote computers) and Kerberos, and in IIS use Integrated Windows Authentication (with basic and...
1
2817
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 think I need to put this application in the Start-up group and have the application handle A&A using the Integrated Security. My question is how do I accomplish using Windows Integrated Security for A&A into a Windows Forms application? The OS is...
2
2574
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 security. I'm set for mixed mode and I've been running the service on the app server for over a month with no problem. My database is running on a second server and both are under the same domain. The problem has occurred twice over the last two months.
2
2619
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 is not able to access a specific network resource and I just can't figure out why. First of all, let me say this worked fine with IIS running on Win2000 Server. This has not worked since I upgraded to Windows Server 2003. My Platform: Windows...
4
6799
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
1883
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 security=true;" Dim conn As New SqlConnection(strConn) Where as If I change the code to use 'Mixedmode
1
1460
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 integrated security to connect to the database. These are the corresponding lines in web.config <identity impersonate="true" userName="our_domain\our_user" password="the_password" />
7
3020
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. And I trun annonymous login. I use this connection to connect. server={0};database={1};Integrated Security=SSPI where {0} servname and {1} database name
2
24875
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 authentication is not enabled. Please see Help for assistance" - What could be the problem? Any suggestion will be appreciate. D.T.
1
1291
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 PHP and Java. Is there a way to pass the credentials as part of the XML used to call the web service? Maybe as part of the XML header similar to: <soap:Header> <AuthHeader xmlns="http://tempuri.org\"> <UserName>domain\userID</UserName>...
0
8296
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8816
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8710
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8497
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7310
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5627
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4299
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2721
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 we have to send another system

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.