Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/libnet/libnet_samsync_passdb.c

    r414 r745  
    2525
    2626#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"
    2831
    2932/* Convert a struct samu_DELTA to a struct samu. */
     
    179182                pdb_sethexhours(newstr, r->logon_hours.bits);
    180183                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);
    182186        }
    183187
     
    300304        GROUP_MAP map;
    301305        struct group *grp;
    302         DOM_SID user_sid;
    303         DOM_SID group_sid;
     306        user_sid;
     307        group_sid;
    304308        struct passwd *passwd = NULL;
    305309        fstring sid_string;
     
    319323        }
    320324
    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);
    323326
    324327        DEBUG(3, ("Attempting to find SID %s for user %s in the passdb\n",
     
    387390        fstring comment;
    388391        struct group *grp = NULL;
    389         DOM_SID group_sid;
     392        group_sid;
    390393        fstring sid_string;
    391394        GROUP_MAP map;
     
    396399
    397400        /* 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);
    400402        sid_to_fstring(sid_string, &group_sid);
    401403
     
    452454        char **nt_members = NULL;
    453455        char **unix_members;
    454         DOM_SID group_sid;
     456        group_sid;
    455457        GROUP_MAP map;
    456458        struct group *grp;
     
    460462        }
    461463
    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);
    464465
    465466        if (!get_domain_group_from_sid(group_sid, &map)) {
     
    486487        for (i=0; i < r->num_rids; i++) {
    487488                struct samu *member = NULL;
    488                 DOM_SID member_sid;
     489                member_sid;
    489490
    490491                if ( !(member = samu_new(mem_ctx)) ) {
     
    492493                }
    493494
    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]);
    496496
    497497                if (!pdb_getsampwsid(member, &member_sid)) {
     
    574574                                 uint32_t rid,
    575575                                 struct netr_DELTA_ALIAS *r,
    576                                  const DOM_SID *dom_sid)
     576                                 const *dom_sid)
    577577{
    578578        fstring name;
    579579        fstring comment;
    580580        struct group *grp = NULL;
    581         DOM_SID alias_sid;
     581        alias_sid;
    582582        fstring sid_string;
    583583        GROUP_MAP map;
     
    588588
    589589        /* 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);
    592591        sid_to_fstring(sid_string, &alias_sid);
    593592
     
    614613        map.sid = alias_sid;
    615614
    616         if (sid_equal(dom_sid, &global_sid_Builtin))
     615        if (sid_equal(dom_sid, &global_sid_Builtin))
    617616                map.sid_name_use = SID_NAME_WKN_GRP;
    618617        else
     
    636635                                uint32_t rid,
    637636                                struct netr_DELTA_ALIAS_MEMBER *r,
    638                                 const DOM_SID *dom_sid)
     637                                const *dom_sid)
    639638{
    640639        return NT_STATUS_OK;
Note: See TracChangeset for help on using the changeset viewer.