From: Jeffrey Altman Date: Tue, 16 Jun 2009 23:40:38 +0000 (+0000) Subject: windows-kauth-cell-search-registry-20090616 X-Git-Tag: openafs-devel-1_5_61~213 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=3af8eafae68b7260941b59346720730410f97944;p=packages%2Fo%2Fopenafs.git windows-kauth-cell-search-registry-20090616 LICENSE MIT add registry based cell search to ka_UserAuthenticateGeneral2() which is used by klog() and afslogon.dll when no kerberos support is available. --- diff --git a/src/kauth/user_nt.c b/src/kauth/user_nt.c index da99ac486..62327ece7 100644 --- a/src/kauth/user_nt.c +++ b/src/kauth/user_nt.c @@ -22,6 +22,7 @@ RCSID #include /* sprintf */ #include #include +#include #include #include #include @@ -107,7 +108,9 @@ ka_UserAuthenticateGeneral2(afs_int32 flags, char *name, char *instance, if (lifetime == 0) lifetime = MAXKTCTICKETLIFETIME; - code = cm_SearchCellFile(realm, fullRealm, ka_AddHostProc, NULL); + code = cm_SearchCellRegistry(1, realm, fullRealm, NULL, ka_AddHostProc, NULL); + if (code && code != CM_ERROR_FORCE_DNS_LOOKUP) + code = cm_SearchCellFile(realm, fullRealm, ka_AddHostProc, NULL); #ifdef AFS_AFSDB_ENV if (code) {