diff options
author | Luke Leighton <lkcl@samba.org> | 1998-10-22 18:15:23 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-10-22 18:15:23 +0000 |
commit | cbd0b2ccf9519bcada58567b88987e134563058d (patch) | |
tree | 4db13a458318e01a578013508ce61387690f735f /source3/rpc_server/srv_samr.c | |
parent | 034a12fdcb6f707b382d9da481bc012a3c49da76 (diff) | |
download | samba-cbd0b2ccf9519bcada58567b88987e134563058d.tar.gz samba-cbd0b2ccf9519bcada58567b88987e134563058d.tar.bz2 samba-cbd0b2ccf9519bcada58567b88987e134563058d.zip |
bug fix in lsa_trans_names.
well-known aliases S-1-5-20 is actually S-1-5-0x20 but sid_to_string does
decimal not hexadecimal oops.
(This used to be commit 4d830e243650729344a2d1b238075e787802ff8b)
Diffstat (limited to 'source3/rpc_server/srv_samr.c')
-rw-r--r-- | source3/rpc_server/srv_samr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_samr.c b/source3/rpc_server/srv_samr.c index e9204e065f..3a656b5a3b 100644 --- a/source3/rpc_server/srv_samr.c +++ b/source3/rpc_server/srv_samr.c @@ -306,7 +306,7 @@ static void samr_reply_unknown_3(SAMR_Q_UNKNOWN_3 *q_u, string_to_sid(&everyone_sid, "S-1-1"); - /* maybe need another 1 or 2 (S-1-5-20-0x220 and S-1-5-20-0x224) */ + /* maybe need another 1 or 2 (S-1-5-0x20-0x220 and S-1-5-20-0x224) */ /* these two are DOMAIN_ADMIN and DOMAIN_ACCT_OP group RIDs */ make_dom_sid3(&(sid[0]), 0x035b, 0x0002, &everyone_sid); make_dom_sid3(&(sid[1]), 0x0044, 0x0002, &user_sid); @@ -456,7 +456,7 @@ static void samr_reply_enum_dom_aliases(SAMR_Q_ENUM_DOM_ALIASES *q_u, { SAMR_R_ENUM_DOM_ALIASES r_e; SAM_USER_INFO_21 pass[MAX_SAM_ENTRIES]; - int num_entries; + int num_entries = 0; DOM_SID sid; fstring sid_str; fstring sam_sid_str; @@ -476,7 +476,7 @@ static void samr_reply_enum_dom_aliases(SAMR_Q_ENUM_DOM_ALIASES *q_u, DEBUG(5,("samr_reply_enum_dom_aliases: sid %s\n", sid_str)); /* well-known aliases */ - if (strequal(sid_str, "S-1-5-20")) + if (strequal(sid_str, "S-1-5-32")) { char *name; while (num_entries < MAX_SAM_ENTRIES && ((name = builtin_alias_rids[num_entries].name) != NULL)) |