* security.cc (lookup_name): Search on local machine first if
myself->domain is not empty.
This commit is contained in:
parent
6e76b010c3
commit
a246b47b67
|
@ -1,3 +1,8 @@
|
|||
Wed Jul 26 17:43:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* security.cc (lookup_name): Search on local machine first if
|
||||
myself->domain is not empty.
|
||||
|
||||
2000-07-26 DJ Delorie <dj@cygnus.com>
|
||||
|
||||
* fhandler_console.cc (fhandler_console::read): Explicitly set cursor
|
||||
|
|
|
@ -344,6 +344,23 @@ lookup_name (const char *name, const char *logsrv, PSID ret_sid)
|
|||
if (! name)
|
||||
return FALSE;
|
||||
|
||||
if (*myself->domain)
|
||||
{
|
||||
strcat (strcat (strcpy (domuser, myself->domain), "\\"), name);
|
||||
if (LookupAccountName (NULL, domuser,
|
||||
sid, (sidlen = MAX_SID_LEN, &sidlen),
|
||||
dom, (domlen = MAX_COMPUTERNAME_LENGTH, &domlen),
|
||||
&acc_type)
|
||||
&& legal_sid_type (acc_type))
|
||||
goto got_it;
|
||||
if (logsrv && *logsrv
|
||||
&& LookupAccountName (logsrv, domuser,
|
||||
sid, (sidlen = MAX_SID_LEN, &sidlen),
|
||||
dom, (domlen = MAX_COMPUTERNAME_LENGTH,&domlen),
|
||||
&acc_type)
|
||||
&& legal_sid_type (acc_type))
|
||||
goto got_it;
|
||||
}
|
||||
if (logsrv && *logsrv)
|
||||
{
|
||||
if (LookupAccountName (logsrv, name,
|
||||
|
|
Loading…
Reference in New Issue