summaryrefslogtreecommitdiffstats
path: root/source/smbd/chgpasswd.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-04-20 23:07:28 +0000
committerJeremy Allison <jra@samba.org>1998-04-20 23:07:28 +0000
commit5a995f4f75ffb0d55d6ceaa63a1209d230001991 (patch)
tree947bf8dbf64ffb905c21ee5d3dc2b515e8a0d491 /source/smbd/chgpasswd.c
parent608e98546392fd0aac9b33f4feac43615dbb4405 (diff)
downloadsamba-5a995f4f75ffb0d55d6ceaa63a1209d230001991.tar.gz
samba-5a995f4f75ffb0d55d6ceaa63a1209d230001991.tar.xz
samba-5a995f4f75ffb0d55d6ceaa63a1209d230001991.zip
Added 'passwd chat debug' parameter to allow admins to debug their
Samba passwd chat scripts. Jeremy.
Diffstat (limited to 'source/smbd/chgpasswd.c')
-rw-r--r--source/smbd/chgpasswd.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c
index 7494d0162da..92bdb1adf0f 100644
--- a/source/smbd/chgpasswd.c
+++ b/source/smbd/chgpasswd.c
@@ -264,9 +264,8 @@ static int talktochild(int master, char *chatsequence)
if (!strequal(chatbuf,"."))
ok = expect(master,chatbuf,buf);
-#if DEBUG_PASSWORD
- DEBUG(100,("chatbuf=[%s] responsebuf=[%s]\n",chatbuf,buf));
-#endif
+ if(lp_passwd_chat_debug())
+ DEBUG(100,("talktochild: chatbuf=[%s] responsebuf=[%s]\n",chatbuf,buf));
if (!ok) {
DEBUG(3,("response %d incorrect\n",count));
@@ -278,9 +277,8 @@ static int talktochild(int master, char *chatsequence)
if (!strequal(chatbuf,"."))
writestring(master,chatbuf);
-#if DEBUG_PASSWORD
- DEBUG(100,("sendbuf=[%s]\n",chatbuf));
-#endif
+ if(lp_passwd_chat_debug())
+ DEBUG(100,("talktochild: sendbuf=[%s]\n",chatbuf));
}
if (count<1) return(False);