summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-02-07 18:20:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:35 -0500
commit5f54cc9bd3fa76e62926de0670f832f7b0e3739d (patch)
tree916e513b439140dbe88735721d60730bae3ce942 /source3/rpc_server
parent3842d6c205b8ec8606d4086a59f9fe7a5d5b6435 (diff)
downloadsamba-5f54cc9bd3fa76e62926de0670f832f7b0e3739d.tar.gz
samba-5f54cc9bd3fa76e62926de0670f832f7b0e3739d.tar.bz2
samba-5f54cc9bd3fa76e62926de0670f832f7b0e3739d.zip
r5264: Log with loglevel 0 when account-administration scripts fail.
Guenther (This used to be commit 3d391ef149639750db376b05528a27422f8a3321)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_samr_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index 4e7d239b2c..9c8a35045f 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -2305,7 +2305,7 @@ NTSTATUS _samr_create_user(pipes_struct *p, SAMR_Q_CREATE_USER *q_u, SAMR_R_CREA
all_string_sub(add_script, "%u", account, sizeof(add_script));
add_ret = smbrun(add_script,NULL);
- DEBUG(3,("_samr_create_user: Running the command `%s' gave %d\n", add_script, add_ret));
+ DEBUG(add_ret ? 0 : 3,("_samr_create_user: Running the command `%s' gave %d\n", add_script, add_ret));
}
else /* no add user script -- ask winbindd to do it */
{
@@ -3813,7 +3813,7 @@ static int smb_delete_user(const char *unix_user)
return -1;
all_string_sub(del_script, "%u", unix_user, sizeof(del_script));
ret = smbrun(del_script,NULL);
- DEBUG(3,("smb_delete_user: Running the command `%s' gave %d\n",del_script,ret));
+ DEBUG(ret ? 0 : 3,("smb_delete_user: Running the command `%s' gave %d\n",del_script,ret));
return ret;
}