Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Accessing security information through COM

Does anyone know how to access security information with a COM object. I
am trying to identify what groups an authenticated user is in while logged
into the intranet at my office. I was wondering if anyone knows of a COM
object or method to to do this... if possible I would also like to ascertain
their username?

Thanks
[347 byte] By [Gary Herman] at [2007-11-9 23:50:19]
# 1 Re: Accessing security information through COM
Hi,
Based on the HTTP Server Variables, one can obtain the NT domain\username
(I assume you're using NTLM challenge/response for the intranet authentication.)
By passing this to a custom COM object which in turn uses the Win32 API functions
(look in MSDN library under Platform SDK: Access Control) you can obtain
the NT group (at least the primary group) to which the user belongs.

Regards,

Arvind S.
Brainbench MVP for Internet Security.

"Gary Herman" <gavrielh@hotmail.com> wrote:
>
>Does anyone know how to access security information with a COM object.
I
>am trying to identify what groups an authenticated user is in while logged
>into the intranet at my office. I was wondering if anyone knows of a COM
>object or method to to do this... if possible I would also like to ascertain
>their username?
>
>Thanks
Arvind Shyamsundar at 2007-11-12 0:14:33 >