warn when starting without keys
[openafs.git] / src / bozo / bosserver.c
index 3a7a6a0..5346df0 100644 (file)
@@ -1116,6 +1116,12 @@ main(int argc, char **argv, char **envp)
     /* opened the cell databse */
     bozo_confdir = tdir;
 
+    if (afsconf_CountKeys(bozo_confdir) == 0) {
+       bozo_Log("WARNING: No encryption keys found! "
+                "All authenticated accesses will fail. "
+                "Run akeyconvert or asetkey to import encryption keys.\n");
+    }
+
     code = bnode_Init();
     if (code) {
        printf("bosserver: could not init bnode package, code %d\n", code);