From b609b807d24d336dfe8a0939249001dc8874c69a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Joakim=20Fallsj=C3=B6?= Date: Fri, 6 Jun 2003 22:11:25 +0000 Subject: [PATCH] winnt-give-better-debugging-20030606 offer better messages in certain cases --- src/WINNT/afsd/afsd_init.c | 3 +++ src/WINNT/afsd/afslogon.c | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/src/WINNT/afsd/afsd_init.c b/src/WINNT/afsd/afsd_init.c index b2e96f01e..2c91d1d1e 100644 --- a/src/WINNT/afsd/afsd_init.c +++ b/src/WINNT/afsd/afsd_init.c @@ -417,7 +417,10 @@ int afsd_InitCM(char **reasonP) } else { cm_dnsEnabled = 1; /* default on */ + afsi_log("Default to use DNS to find AFS cell servers"); } +#else /* AFS_AFSDB_ENV */ + afsi_log("AFS not built with DNS support to find AFS cell servers"); #endif /* AFS_AFSDB_ENV */ #ifdef AFS_FREELANCE_CLIENT diff --git a/src/WINNT/afsd/afslogon.c b/src/WINNT/afsd/afslogon.c index 369f71a14..a41707c21 100644 --- a/src/WINNT/afsd/afslogon.c +++ b/src/WINNT/afsd/afslogon.c @@ -321,6 +321,7 @@ DWORD APIENTRY NPLogonNotify( LPWSTR *lpLogonScript) { char uname[256]; + char *ctemp; char password[256]; char cell[256]; MSV1_0_INTERACTIVE_LOGON *IL; @@ -348,6 +349,10 @@ DWORD APIENTRY NPLogonNotify( wcstombs(uname, IL->UserName.Buffer, 256); wcstombs(password, IL->Password.Buffer, 256); + /* Make sure AD-DOMANS sent from login that is sent to us is striped */ + ctemp = strchr(uname, '@'); + if (ctemp) *ctemp = 0; + (void) RegOpenKeyEx(HKEY_LOCAL_MACHINE, REG_CLIENT_PARMS_KEY, 0, KEY_QUERY_VALUE, &NPKey); LSPsize=sizeof(TraceOption); @@ -436,6 +441,7 @@ DWORD APIENTRY NPLogonNotify( * mode or the failSilently flag is set, otherwise let the * user know we failed and give them a chance to try again. */ if (retryInterval <= 0) { + reason = "AFS not running"; if (!interactive || failSilently) break; flag = MessageBox(hwndOwner, -- 2.39.5