DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Accessing security information through COM

  1. #1
    Gary Herman Guest

    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

  2. #2
    Arvind Shyamsundar Guest

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center