Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > User.IsInRole -> I do not want current user but all users

Reply
Thread Tools

User.IsInRole -> I do not want current user but all users

 
 
Peter Bons
Guest
Posts: n/a
 
      03-31-2006
Hi,

I have a question, I know that I can determine whether an user belongs to a
certain AD group.
But what if I want to check for a serie of users?

I could use the DirectoryServices classes but that's not that simple to
code.
Would it not be possible to create a new User object representing a user so
I can user the IsInRole method?
If so, how? Or is there another easy way to check if a user belongs to a
certain AD group?

FYI: using .Net 1.1/VS2003 + impersonation/windows authentication

Thanx,
Peter


 
Reply With Quote
 
 
 
 
Patrick.O.Ige
Guest
Posts: n/a
 
      03-31-2006
Peter but you can just use IsinRole for that
Check out my blog on this at:-
http://spaces.msn.com/naijacoder/
Patrick

"Peter Bons" <> wrote in message
news:Osr$...
> Hi,
>
> I have a question, I know that I can determine whether an user belongs to
> a certain AD group.
> But what if I want to check for a serie of users?
>
> I could use the DirectoryServices classes but that's not that simple to
> code.
> Would it not be possible to create a new User object representing a user
> so I can user the IsInRole method?
> If so, how? Or is there another easy way to check if a user belongs to a
> certain AD group?
>
> FYI: using .Net 1.1/VS2003 + impersonation/windows authentication
>
> Thanx,
> Peter
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Problem - I want to print Current Output of Pdf file and shouldprint once.I get print dialog box but it is not working Lew Java 0 05-30-2007 01:31 PM
Problem - I want to print Current Output of Pdf file and should print once.I get print dialog box but it is not working keto Java 0 05-30-2007 11:27 AM
trying to spawn a process (say an exe file) with different user crendentials than that of the current user but getting 1314 error ranju C++ 1 05-18-2007 02:35 AM
I want to create a link "e-mail this page to a friend" on clicking this link i want to send the URL of that current page to a friend pavi Javascript 0 01-13-2006 12:10 PM
Hi I have one web application and i want to get the number of users who are currently accessing the application. Also I want to get the user details of each user, which is stored in a database. How can I do this? Pls help. Getting No: and anu Java 11 05-12-2005 03:25 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57