Re: getusernameex and namesamcompatible



Yes (If GetUserNameEx will succeed)

--
Volodymyr
"lasso" <lasso@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:7D4D6A85-CCDF-47D7-B1FF-B092FC4D94A6@xxxxxxxxxxxxxxxx
hello,

if my program is running as user jdoe on the active directory domain
mydomain.com with the netbiosname mynetname and i running the following
lines
of pseudo-c++:

string username
GetUserNameEx (NameSamCompatible, username, username.length)

will username always be "mynetname\jdoe"? even if the account is
impersonated or actually running the program, if it's a native 2003 ad or
mixed mode, if he has logged in as "mydomain.com\jdoe" or
"mynetname\jdoe",
if he is authenticated with kerberos or ntlm or what have you, if it's a
child domain or not, etc etc?

regards,

lars


.



Relevant Pages

  • Re: Login Problem
    ... could belong to an Active Directory domain at work?? ... I made a change using the "Network Identification Wizard" (at this ... require a username and password, I don't have any idea what it ... access to the network or try to boot in a Safe Mode. ...
    (microsoft.public.win2000.security)
  • Re: Getting the UPN of the currently logged on user
    ... though you can get the various name types with GetUserNameEx. ... Joe Richards Microsoft MVP Windows Server Directory Services ... > username in the table. ... > the pre Win2k account name) ...
    (microsoft.public.platformsdk.security)
  • Set default username at Logon screen
    ... I'm running an XP pro environment within an active directory domain. ... multiple users sharing the same computer but I need to have one ... account/username to always displayed as the default username on bootup at the ...
    (microsoft.public.windowsxp.security_admin)
  • Re: OWA Question
    ... part of the username for logging in? ... one Active Directory domain. ... Go to the server configuration, mailbox servers, look down ...
    (microsoft.public.exchange.admin)

Loading