From 3af8eafae68b7260941b59346720730410f97944 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Tue, 16 Jun 2009 23:40:38 +0000 Subject: [PATCH] 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. --- src/kauth/user_nt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) { -- 2.39.5