]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conf.c
Detect PAM libraries
[ngircd-alex.git] / src / ngircd / conf.c
index 33a607b183c7251e7dc063edac1c2b69bce5913b..f78eaee64d985f01aa294e9cdf7ce6fd56401aa0 100644 (file)
@@ -291,7 +291,9 @@ Conf_Test( void )
        puts( "[GLOBAL]" );
        printf("  Name = %s\n", Conf_ServerName);
        printf("  Info = %s\n", Conf_ServerInfo);
+#ifndef PAM
        printf("  Password = %s\n", Conf_ServerPwd);
+#endif
        printf("  WebircPassword = %s\n", Conf_WebircPwd);
        printf("  AdminInfo1 = %s\n", Conf_ServerAdmin1);
        printf("  AdminInfo2 = %s\n", Conf_ServerAdmin2);
@@ -1401,6 +1403,12 @@ Validate_Config(bool Configtest, bool Rehash)
                             "No administrative information configured but required by RFC!");
        }
 
+#ifdef PAM
+       if (Conf_ServerPwd[0])
+               Config_Error(LOG_ERR,
+                            "This server uses PAM, \"Password\" will be ignored!");
+#endif
+
 #ifdef DEBUG
        servers = servers_once = 0;
        for (i = 0; i < MAX_SERVERS; i++) {