]> arthur.barton.de Git - ngircd.git/blobdiff - src/ngircd/conf.c
Use server password when PAM is compiled in but disabled
[ngircd.git] / src / ngircd / conf.c
index 940ab2f9d835c8a0372eaadf9b95e7e6422de35f..7a4cb289aa11e2cfc21630d9ce53b5f5640521f2 100644 (file)
@@ -369,9 +369,8 @@ Conf_Test( void )
                printf("  MotdPhrase = %s\n", array_bytes(&Conf_Motd)
                       ? (const char*) array_start(&Conf_Motd) : "");
        }
-#ifndef PAM
-       printf("  Password = %s\n", Conf_ServerPwd);
-#endif
+       if (!Conf_PAM) 
+               printf("  Password = %s\n", Conf_ServerPwd);
        printf("  PidFile = %s\n", Conf_PidFile);
        printf("  Ports = ");
        ports_puts(&Conf_ListenPorts);
@@ -2247,7 +2246,7 @@ Validate_Config(bool Configtest, bool Rehash)
        }
 
 #ifdef PAM
-       if (Conf_ServerPwd[0])
+       if (Conf_PAM && Conf_ServerPwd[0])
                Config_Error(LOG_ERR,
                             "This server uses PAM, \"Password\" in [Global] section will be ignored!");
 #endif