]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-windows-rpc-warning-20051214
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 14 Dec 2005 05:33:46 +0000 (05:33 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 14 Dec 2005 05:33:46 +0000 (05:33 +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.

(cherry picked from commit 8204b5968c0181e094f8369b94c5a4cf1a9de04a)

src/WINNT/afsd/afsd_init.c

index 5f3c85625b6f7b9a62fcd31c5e1146e6473f1f56..821d0bbec984132677b7675076e6f35b7e59731b 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;
     }