summaryrefslogtreecommitdiff
path: root/source3/smbd
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
commit6babe8da07b6a803d15deed70dd7e6aaae93ed4a (patch)
tree2e86becedf8668f359668b64421eb251b0eba9bb /source3/smbd
parentefb71742ca8ff9ec3211c5b3cf5d311fdceecd1c (diff)
downloadsamba-6babe8da07b6a803d15deed70dd7e6aaae93ed4a.tar.gz
samba-6babe8da07b6a803d15deed70dd7e6aaae93ed4a.tar.bz2
samba-6babe8da07b6a803d15deed70dd7e6aaae93ed4a.zip
Added 'passwd chat debug' parameter to allow admins to debug their
Samba passwd chat scripts. Jeremy. (This used to be commit 5a995f4f75ffb0d55d6ceaa63a1209d230001991)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/chgpasswd.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c
index 7494d0162d..92bdb1adf0 100644
--- a/source3/smbd/chgpasswd.c
+++ b/source3/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);