summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2005-02-02 20:11:37 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:32 -0500
commit4523bd1446dc411a29b82bdd13e564979b0d5d18 (patch)
tree3825cc280af1fd78c8d94441083f529bee6b83d4
parent4beae9996a136127350d1d7539e314f085d1a00c (diff)
downloadsamba-4523bd1446dc411a29b82bdd13e564979b0d5d18.tar.gz
samba-4523bd1446dc411a29b82bdd13e564979b0d5d18.tar.bz2
samba-4523bd1446dc411a29b82bdd13e564979b0d5d18.zip
r5180: Call the "add machine script" to create all kinds of trust accounts
(this restores old behaviour). Fixes #2291. Guenther (This used to be commit 5ca0d1b87cd20f538a13321eb11ef97d00bf5133)
-rw-r--r--source3/rpc_server/srv_samr_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c
index e963fbaa0a..b58111c1b7 100644
--- a/source3/rpc_server/srv_samr_nt.c
+++ b/source3/rpc_server/srv_samr_nt.c
@@ -2259,7 +2259,7 @@ NTSTATUS _samr_create_user(pipes_struct *p, SAMR_Q_CREATE_USER *q_u, SAMR_R_CREA
pw = Get_Pwnam(account);
/* determine which user right we need to check based on the acb_info */
- if ( acb_info == ACB_WSTRUST ) {
+ if ( acb_info & (ACB_WSTRUST|ACB_SVRTRUST|ACB_DOMTRUST)) {
se_priv_copy( &se_rights, &se_machine_account );
pstrcpy(add_script, lp_addmachine_script());
}