mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 07:20:11 +00:00
Windows: afslogon.dll vs windows 7
In Windows 7 the GINA is no longer used. As a result, when a non-Heimdal realm is used for logon, the LogonDomain field is no longer populated during the NPLogonNotify call. Instead we must obtain the Kerberos realm from the UPN specified in the Username field. Change-Id: I838e0a5b19d560dd2fed6ccccf1e136fe1c4e0c2 Reviewed-on: http://gerrit.openafs.org/1660 Reviewed-by: Jeffrey Altman <jaltman@openafs.org> Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
fda5f9a373
commit
4b3f3169cb
@ -854,9 +854,14 @@ DWORD APIENTRY NPLogonNotify(
|
||||
!UnicodeStringToANSI(IL->LogonDomainName, logonDomain, MAX_DOMAIN_LENGTH))
|
||||
return 0;
|
||||
|
||||
/* Make sure AD-DOMANS sent from login that is sent to us is striped */
|
||||
/* Make sure AD-DOMAINS sent from login that is sent to us is striped */
|
||||
ctemp = strchr(uname, '@');
|
||||
if (ctemp) *ctemp = 0;
|
||||
if (ctemp) {
|
||||
*ctemp = 0;
|
||||
ctemp++;
|
||||
if ( logonDomain[0] == '\0' )
|
||||
StringCchCopy(logonDomain, MAX_DOMAIN_LENGTH, ctemp);
|
||||
}
|
||||
|
||||
/* is the name all lowercase? */
|
||||
for ( ctemp = uname; *ctemp ; ctemp++) {
|
||||
|
Loading…
Reference in New Issue
Block a user