r5264: Log with loglevel 0 when account-administration scripts fail.
[ira/wip.git] / source3 / utils / net_rpc_samsync.c
index 2db8ff054b0c38b2e3c084e2f16b18d6e937a5a1..cc81719b6ab13a424cacf0f3d13238b7cc59fb99 100644 (file)
@@ -523,7 +523,7 @@ static NTSTATUS fetch_account_info(uint32 rid, SAM_ACCOUNT_INFO *delta)
                        all_string_sub(add_script, "%u", account,
                                       sizeof(account));
                        add_ret = smbrun(add_script,NULL);
-                       DEBUG(1,("fetch_account: Running the command `%s' "
+                       DEBUG(add_ret ? 0 : 1,("fetch_account: Running the command `%s' "
                                 "gave %d\n", add_script, add_ret));
                } else {
                        DEBUG(8,("fetch_account_info: no add user/machine script.  Asking winbindd\n"));