diff options
author | Jeremy Allison <jra@samba.org> | 1998-05-14 03:32:21 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-05-14 03:32:21 +0000 |
commit | 05a8202b48291b46befedad345b546d1a54c29c2 (patch) | |
tree | 30684a66b4a648f0d175801aa799056ec18f8758 /source3/rpc_server/srv_samr.c | |
parent | bce6d410130982af6ca58dc9a0d297b5f80e6c6c (diff) | |
download | samba-05a8202b48291b46befedad345b546d1a54c29c2.tar.gz samba-05a8202b48291b46befedad345b546d1a54c29c2.tar.bz2 samba-05a8202b48291b46befedad345b546d1a54c29c2.zip |
Fixed dce/rpc to use global_machine_sid (auto generated in server.c if
not present in smb.conf).
Jeremy.
(This used to be commit e7c1100390b714bf2f489a9032156b0c9272e403)
Diffstat (limited to 'source3/rpc_server/srv_samr.c')
-rw-r--r-- | source3/rpc_server/srv_samr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c index 8070336f87..88217f73aa 100644 --- a/source3/rpc_server/srv_samr.c +++ b/source3/rpc_server/srv_samr.c @@ -30,6 +30,8 @@ extern int DEBUGLEVEL; extern BOOL sam_logon_in_ssb; extern pstring samlogon_user; +extern DOM_SID global_machine_sid; + extern rid_name domain_group_rids[]; extern rid_name domain_alias_rids[]; @@ -231,7 +233,7 @@ static void samr_reply_unknown_3(SAMR_Q_UNKNOWN_3 *q_u, if (status == 0x0) { - fstrcpy(user_sid, lp_domain_sid()); + sid_to_string(user_sid, &global_machine_sid); slprintf(user_rid, sizeof(user_rid) - 1, "-%x", rid); fstrcat(user_sid, user_rid); |