Solved

Easiest way to get all NT groups given an NT user name?

Posted on 2009-07-02
2
247 Views
Last Modified: 2013-12-17
What's the most straight-forward way to implement a method that obtains a collection of NT groups that a user belongs to based on a user login (ie MyDomain\pmanning18) ?

Is there a simple way to do this, preferably without having to make a call to unmanaged code or making any LDAP calls?

The platform this code is targetting is a .NET 2.0 platform (and no, 3.5 is not an option)
0
Comment
Question by:priehl
2 Comments
 
LVL 5

Accepted Solution

by:
prashantagarw10 earned 500 total points
ID: 24770578
try looking for membership provider. This is a provider which wraps around LDAP calls so you dont have to wrtie them yourself and will give you a powerful way to write the code with all information you need.

Cheers!
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Where did System.Data.Objects go? 2 27
C# Gridview 1 32
Release Dynamically Allocated Memory in C# 3 25
location of a form 2 14
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Security measures require Windows be logged in using Standard User login (not Administrator).  Yet, sometimes an application has to be run “As Administrator” from a Standard User login.  This paper describes how to create a shortcut icon to launch a…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

773 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