A
Andy D
Hi all,
I am having a little difficulty with the System.DirectoryServices namespace
and Windows Principals in a C# project I am working on.
What I would like to do is this:-
1. Get the current principal or Credential (or whatever is needed).
2. Get the fully qualified Active directory path (i.e.
CN=ANDY,DC=MYDOMAIN,DN=DEV) so that I can create a DirectoryEntry object.
3. Enum the groups from the DirectoryEntry object created.
So far all I got was the domain name (in the old WindowsNT format - i.e.
MYDOMAIN) and the user name (i.e. ANDY). I can also get the Windows
Principal to get that as MYDOMAIN\ANDY but I cant seem to create a
DirectoryEntry object from that name.
Can anyone point me in the right direction?
Thanks in advance,
Andy D
I am having a little difficulty with the System.DirectoryServices namespace
and Windows Principals in a C# project I am working on.
What I would like to do is this:-
1. Get the current principal or Credential (or whatever is needed).
2. Get the fully qualified Active directory path (i.e.
CN=ANDY,DC=MYDOMAIN,DN=DEV) so that I can create a DirectoryEntry object.
3. Enum the groups from the DirectoryEntry object created.
So far all I got was the domain name (in the old WindowsNT format - i.e.
MYDOMAIN) and the user name (i.e. ANDY). I can also get the Windows
Principal to get that as MYDOMAIN\ANDY but I cant seem to create a
DirectoryEntry object from that name.
Can anyone point me in the right direction?
Thanks in advance,
Andy D