Author: gd Date: 2005-02-02 20:11:37 +0000 (Wed, 02 Feb 2005) New Revision: 5180
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=5180 Log: Call the "add machine script" to create all kinds of trust accounts (this restores old behaviour). Fixes #2291. Guenther Modified: branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c trunk/source/rpc_server/srv_samr_nt.c Changeset: Modified: branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c =================================================================== --- branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c 2005-02-02 18:01:11 UTC (rev 5179) +++ branches/SAMBA_3_0/source/rpc_server/srv_samr_nt.c 2005-02-02 20:11:37 UTC (rev 5180) @@ -2259,7 +2259,7 @@ 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()); } Modified: trunk/source/rpc_server/srv_samr_nt.c =================================================================== --- trunk/source/rpc_server/srv_samr_nt.c 2005-02-02 18:01:11 UTC (rev 5179) +++ trunk/source/rpc_server/srv_samr_nt.c 2005-02-02 20:11:37 UTC (rev 5180) @@ -2382,7 +2382,7 @@ 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()); }