r5180: Call the "add machine script" to create all kinds of trust accounts
authorGünther Deschner <gd@samba.org>
Wed, 2 Feb 2005 20:11:37 +0000 (20:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:55:32 +0000 (10:55 -0500)
(this restores old behaviour). Fixes #2291.

Guenther
(This used to be commit 5ca0d1b87cd20f538a13321eb11ef97d00bf5133)

source3/rpc_server/srv_samr_nt.c

index e963fbaa0aec6279d90728f29d9b865de9cdbd0b..b58111c1b7ae25bd9cc2053bd3f979171010f21f 100644 (file)
@@ -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());
        }