diff options
author | Jeremy Allison <jra@samba.org> | 1998-04-20 23:07:28 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-04-20 23:07:28 +0000 |
commit | 5a995f4f75ffb0d55d6ceaa63a1209d230001991 (patch) | |
tree | 947bf8dbf64ffb905c21ee5d3dc2b515e8a0d491 /source/smbd/chgpasswd.c | |
parent | 608e98546392fd0aac9b33f4feac43615dbb4405 (diff) | |
download | samba-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.c | 10 |
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); |