]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows-rpc-warning-20051214
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 14 Dec 2005 05:32:55 +0000 (05:32 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 14 Dec 2005 05:32:55 +0000 (05:32 +0000)
If osi_InitDebug() fails due to RPC_S_NO_PROTSEQS, log to the afsd_init.log
file a warning indicating that the registry should be examined for a
misconfiguration of Windows.

src/WINNT/afsd/afsd_init.c

index 56523dde407012b2b7d6ccbee8b9aa85b924cf6c..7fee9f530b34e402796dfca5a7ebd3eb835e145f 100644 (file)
@@ -573,9 +573,12 @@ int afsd_InitCM(char **reasonP)
     code = osi_InitDebug(&debugID);
     afsi_log("osi_InitDebug code %d", code);
 
-    // osi_LockTypeSetDefault("stat"); /* comment this out for speed *
+    // osi_LockTypeSetDefault("stat"); /* comment this out for speed */
     if (code != 0) {
-        *reasonP = "unknown error";
+        if (code == RPC_S_NO_PROTSEQS)
+            *reasonP = "No RPC Protocol Sequences registered.  Check HKLM\\SOFTWARE\\Microsoft\\RPC\\ClientProtocols";
+        else
+            *reasonP = "unknown error";
         return -1;
     }