summaryrefslogtreecommitdiff
path: root/nss_tacplus.c
diff options
context:
space:
mode:
Diffstat (limited to 'nss_tacplus.c')
-rw-r--r--nss_tacplus.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nss_tacplus.c b/nss_tacplus.c
index 4d48c97..b82613e 100644
--- a/nss_tacplus.c
+++ b/nss_tacplus.c
@@ -506,7 +506,8 @@ lookup_tacacs_user(struct pwbuf *pb)
user = strtok(list, ",");
list = NULL;
while (user && !strcmp(user, pb->name)) {
- syslog(LOG_DEBUG, "%s: check user=(%s)", nssname, user);
+ if(debug)
+ syslog(LOG_DEBUG, "%s: check user=(%s)", nssname, user);
if ((islocal = lookup_local(user, 0))) {
if (debug)
syslog(LOG_DEBUG, "%s: exclude_users match (%s),"