Re: Retrieving Windows LoginId

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"bharath_r" <bharath.0523@xxxxxxxxx> wrote in message
news:0b222dc4-b3d4-48f7-aede-6bd0d4509737@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

I would like to know if i can get the windows login id of the user
currently logged in to the computer.
I am developing an MFC activex application. Currently i authenticate
the user by popping an authentication dialog asking for userid and
password. The userid, password is then passed to a ISAPI web which
authenticates the user by matching it with the database entries.
I would like to know if it is possible to use something like Windows
Authentication where the user doesn't have to enter his userid ,
password. The application takes the loginid (domain\username) of the
currently logged in user?
Any help is highly appretiated.


The most reliable manner in which to do this is to retrieve the security
credentials of the thread that accesses your ActiveX component.

Take a look at the following APIs in the Platform SDK:

GetSecurityInfo
LookupAccountSid

If you need an example, I can post one for you.

-Pete


.



Relevant Pages

  • Retrieving Windows LoginId
    ... I would like to know if i can get the windows login id of the user ... I am developing an MFC activex application. ... The userid, password is then passed to a ISAPI web which ... Authentication where the user doesn't have to enter his userid, ...
    (microsoft.public.vc.mfc)
  • Can I pass ASP Basic Auth Credentials to an APS.NET Forms Authentication site?
    ... I am converting an ASP Website running Windows NT 4.0 to ASP.NET running ... The ASP.NET site N uses Forms Authentication and has the user enter a UserID ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: OWA logon issue - Browser not authentication-capabke...
    ... when i try to logon to exchange server mailbox remotely ... userid and password. ... authentication-capable or authentication failed". ... to ensure that port 443 is open/forwarded inbound to your SBS server's LAN ...
    (microsoft.public.exchange.clients)
  • Re: Weird OWA Problem
    ... Assuming you are using form based authentication, ... for the userid? ... domain\userid or upnid has to be used under form ... I went back into the server and even reset passwords thinking that was the ...
    (microsoft.public.windows.server.sbs)
  • Re: Perl And Apache.
    ... >After UserID/Password authentication on a web page, ... >UserID in an environment variable that a Perl script could use? ... Check the info on environment variables on this page: ...
    (comp.lang.perl.misc)