Skip to content
Snippets Groups Projects
Commit 317055cd authored by Christopher J. Morrone's avatar Christopher J. Morrone
Browse files

Fix ifdef

parent 26aac1a4
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include "src/common/log.h" #include "src/common/log.h"
#include "src/slurmd/slurmd/slurmd.h" #include "src/slurmd/slurmd/slurmd.h"
#ifdef conf->use_pam #ifdef HAVE_PAM
#include <security/pam_appl.h> #include <security/pam_appl.h>
#include <security/pam_misc.h> #include <security/pam_misc.h>
...@@ -65,6 +65,8 @@ pam_setup (char *user, char *host) ...@@ -65,6 +65,8 @@ pam_setup (char *user, char *host)
struct pam_conv conv = {misc_conv, NULL}; struct pam_conv conv = {misc_conv, NULL};
int rc = 0; int rc = 0;
if (!conf->use_pam)
return SLURM_SUCCESS;
/* /*
* SLURM uses PAM to obtain resource limits established by the system * SLURM uses PAM to obtain resource limits established by the system
* administrator. PAM's session management library is responsible for * administrator. PAM's session management library is responsible for
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment