mirror of
https://github.com/samba-team/samba.git
synced 2025-08-04 08:22:08 +03:00
chgpasswd.c: Added comments to #ifdefs
ipc.c: Caused samba password changing not to be done if UNIX password changing requested and not successful. util.c: Added string_to_sid() and sid_to_string() functions. lib/rpc/client/cli_samr.c: lib/rpc/include/rpc_misc.h: lib/rpc/parse/parse_lsa.c: lib/rpc/parse/parse_misc.c: lib/rpc/parse/parse_net.c: lib/rpc/parse/parse_samr.c: lib/rpc/server/srv_lsa.c: lib/rpc/server/srv_lsa_hnd.c: lib/rpc/server/srv_netlog.c: lib/rpc/server/srv_samr.c: lib/rpc/server/srv_util.c: Changes so that instead of passing SIDs around as char *, they are converted to DOM_SID at the earliest opportunity, and passed around as that. Also added dynamic memory allocation of group sids. Preparing to auto-generate machine sid. Jeremy.
This commit is contained in:
@ -560,7 +560,9 @@ static int make_dom_sid2s(char *sids_str, DOM_SID2 *sids, int max_sids)
|
||||
|
||||
for (count = 0, ptr = sids_str; next_token(&ptr, s2, NULL) && count < max_sids; count++)
|
||||
{
|
||||
make_dom_sid2(&sids[count], s2);
|
||||
DOM_SID tmpsid;
|
||||
string_to_sid(&tmpsid, s2);
|
||||
make_dom_sid2(&sids[count], &tmpsid);
|
||||
}
|
||||
|
||||
return count;
|
||||
@ -908,7 +910,7 @@ void make_net_user_info3(NET_USER_INFO_3 *usr,
|
||||
char *logon_srv,
|
||||
char *logon_dom,
|
||||
|
||||
char *dom_sid,
|
||||
DOM_SID *dom_sid,
|
||||
char *other_sids)
|
||||
{
|
||||
/* only cope with one "other" sid, right now. */
|
||||
|
Reference in New Issue
Block a user