Ask a Question related to ASP.NET Security, Design and Development.
-
Jan Nielsen #1
Checking group membership
In ASP.Net I'm trying to check for some users membership of a group.
The user is not nessicerily the user requesting the page, and I do not have
the users password.
So far I've created the following piece code:
DirectoryEntry group = new DirectoryEntry(FormatAdsiSyntax(strGroup) +
",group", "domain\\user", "password");
Object q = group.Invoke("IsMember", new object[]
{FormatAdsiSyntax(strUserID)});
if (q.Equals(false))
{
// ......
}
The function FormatAdsiSyntax simply returns a string like:
WinNT://domain/objectname
The user and password supplied is an account operator in the domain.
On my Windows XP workstation this piece of code works all right, even though
it's pretty slow.
But on a Windows 2000 Server an exception occours in the "Invoke" code line,
saying "The network path was not found".
Shouldn't this work on Win2K also ?
Can I somehow make this group membership check in another and faster way ?
(We'll not be upgrading to a 2003 Server AD until the beginning of next
year).
Thanks in advance,
Jan Nielsen
Jan Nielsen Guest
-
ASP.NET - Basic/SSL - Changes in user group membership delayed
Background: An ASP.NET application, using Basic/SSL authentication with users residing in an Active Directory in the same domain as the web server,... -
Free Gym Membership
<HTML> <HEAD> <META NAME="GENERATOR" Content="Microsoft DHTML Editing Control"> <TITLE></TITLE> </HEAD> <BODY> <P> Free membership to all</P>... -
Getting Group Membership
Hi, I'm trying to do something that I think should be pretty easy, take the user who is authenticated with the application (intranet application/... -
LDAP group membership query
I am trying to query an NDS tree using the Win32::OLE and Win32::OLE::Enum modules. I was able to traverse the tree and gather all the group... -
Membership of group
Hi All, I know that exist "innetgr" function in C, to test the membership of an user to a netgroup. I would like to know if a similar...



Reply With Quote

