Changeset 745 for trunk/server/source3/libnet/libnet_samsync_passdb.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
source3/libnet/libnet_samsync_passdb.c (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/libnet/libnet_samsync_passdb.c
r414 r745 25 25 26 26 #include "includes.h" 27 #include "libnet/libnet.h" 27 #include "system/passwd.h" 28 #include "libnet/libnet_samsync.h" 29 #include "../libcli/security/security.h" 30 #include "passdb.h" 28 31 29 32 /* Convert a struct samu_DELTA to a struct samu. */ … … 179 182 pdb_sethexhours(newstr, r->logon_hours.bits); 180 183 if (!strequal(oldstr, newstr)) 181 pdb_set_hours(account, r->logon_hours.bits, PDB_CHANGED); 184 pdb_set_hours(account, r->logon_hours.bits, 185 pdb_get_hours_len(account), PDB_CHANGED); 182 186 } 183 187 … … 300 304 GROUP_MAP map; 301 305 struct group *grp; 302 DOM_SIDuser_sid;303 DOM_SIDgroup_sid;306 user_sid; 307 group_sid; 304 308 struct passwd *passwd = NULL; 305 309 fstring sid_string; … … 319 323 } 320 324 321 sid_copy(&user_sid, get_global_sam_sid()); 322 sid_append_rid(&user_sid, r->rid); 325 sid_compose(&user_sid, get_global_sam_sid(), r->rid); 323 326 324 327 DEBUG(3, ("Attempting to find SID %s for user %s in the passdb\n", … … 387 390 fstring comment; 388 391 struct group *grp = NULL; 389 DOM_SIDgroup_sid;392 group_sid; 390 393 fstring sid_string; 391 394 GROUP_MAP map; … … 396 399 397 400 /* add the group to the mapping table */ 398 sid_copy(&group_sid, get_global_sam_sid()); 399 sid_append_rid(&group_sid, rid); 401 sid_compose(&group_sid, get_global_sam_sid(), rid); 400 402 sid_to_fstring(sid_string, &group_sid); 401 403 … … 452 454 char **nt_members = NULL; 453 455 char **unix_members; 454 DOM_SIDgroup_sid;456 group_sid; 455 457 GROUP_MAP map; 456 458 struct group *grp; … … 460 462 } 461 463 462 sid_copy(&group_sid, get_global_sam_sid()); 463 sid_append_rid(&group_sid, rid); 464 sid_compose(&group_sid, get_global_sam_sid(), rid); 464 465 465 466 if (!get_domain_group_from_sid(group_sid, &map)) { … … 486 487 for (i=0; i < r->num_rids; i++) { 487 488 struct samu *member = NULL; 488 DOM_SIDmember_sid;489 member_sid; 489 490 490 491 if ( !(member = samu_new(mem_ctx)) ) { … … 492 493 } 493 494 494 sid_copy(&member_sid, get_global_sam_sid()); 495 sid_append_rid(&member_sid, r->rids[i]); 495 sid_compose(&member_sid, get_global_sam_sid(), r->rids[i]); 496 496 497 497 if (!pdb_getsampwsid(member, &member_sid)) { … … 574 574 uint32_t rid, 575 575 struct netr_DELTA_ALIAS *r, 576 const DOM_SID*dom_sid)576 const *dom_sid) 577 577 { 578 578 fstring name; 579 579 fstring comment; 580 580 struct group *grp = NULL; 581 DOM_SIDalias_sid;581 alias_sid; 582 582 fstring sid_string; 583 583 GROUP_MAP map; … … 588 588 589 589 /* Find out whether the group is already mapped */ 590 sid_copy(&alias_sid, dom_sid); 591 sid_append_rid(&alias_sid, rid); 590 sid_compose(&alias_sid, dom_sid, rid); 592 591 sid_to_fstring(sid_string, &alias_sid); 593 592 … … 614 613 map.sid = alias_sid; 615 614 616 if ( sid_equal(dom_sid, &global_sid_Builtin))615 if (sid_equal(dom_sid, &global_sid_Builtin)) 617 616 map.sid_name_use = SID_NAME_WKN_GRP; 618 617 else … … 636 635 uint32_t rid, 637 636 struct netr_DELTA_ALIAS_MEMBER *r, 638 const DOM_SID*dom_sid)637 const *dom_sid) 639 638 { 640 639 return NT_STATUS_OK;
Note:
See TracChangeset
for help on using the changeset viewer.
