Ignore:
Timestamp:
Nov 12, 2012, 5:25:07 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: update branche to 3.5.15

Location:
branches/samba-3.5.x/source3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/VERSION

    r734 r735  
    2626SAMBA_VERSION_MAJOR=3
    2727SAMBA_VERSION_MINOR=5
    28 SAMBA_VERSION_RELEASE=14
     28SAMBA_VERSION_RELEASE=15
    2929
    3030########################################################
  • branches/samba-3.5.x/source3/rpc_server/srv_lsa_nt.c

    r414 r735  
    16921692        struct lsa_info *info;
    16931693        uint32_t acc_granted;
     1694        uint32_t owner_access = (LSA_ACCOUNT_ALL_ACCESS &
     1695                        ~(LSA_ACCOUNT_ADJUST_PRIVILEGES|
     1696                        LSA_ACCOUNT_ADJUST_SYSTEM_ACCESS|
     1697                        STD_RIGHT_DELETE_ACCESS));
    16941698        struct security_descriptor *psd;
    16951699        size_t sd_size;
     
    17191723        status = make_lsa_object_sd(p->mem_ctx, &psd, &sd_size,
    17201724                                    &lsa_account_mapping,
    1721                                     r->in.sid, LSA_POLICY_ALL_ACCESS);
     1725                                    r->in.sid, owner_access);
    17221726        if (!NT_STATUS_IS_OK(status)) {
    17231727                return status;
     
    17651769        uint32_t des_access = r->in.access_mask;
    17661770        uint32_t acc_granted;
     1771        uint32_t owner_access = (LSA_ACCOUNT_ALL_ACCESS &
     1772                        ~(LSA_ACCOUNT_ADJUST_PRIVILEGES|
     1773                        LSA_ACCOUNT_ADJUST_SYSTEM_ACCESS|
     1774                        STD_RIGHT_DELETE_ACCESS));
    17671775        NTSTATUS status;
    17681776
     
    17891797        status = make_lsa_object_sd(p->mem_ctx, &psd, &sd_size,
    17901798                                &lsa_account_mapping,
    1791                                 r->in.sid, LSA_ACCOUNT_ALL_ACCESS);
     1799                                r->in.sid, owner_access);
    17921800        if (!NT_STATUS_IS_OK(status)) {
    17931801                return status;
     
    21752183        }
    21762184
    2177         /* get the generic lsa account SD for this SID until we store it */
     2185        /* get the generic lsa account SD until we store it */
    21782186        status = make_lsa_object_sd(p->mem_ctx, &psd, &sd_size,
    21792187                                &lsa_account_mapping,
    2180                                 r->in.sid, LSA_ACCOUNT_ALL_ACCESS);
     2188                                NULL, 0);
    21812189        if (!NT_STATUS_IS_OK(status)) {
    21822190                return status;
     
    22462254        }
    22472255
    2248         /* get the generic lsa account SD for this SID until we store it */
     2256        /* get the generic lsa account SD until we store it */
    22492257        status = make_lsa_object_sd(p->mem_ctx, &psd, &sd_size,
    22502258                                &lsa_account_mapping,
    2251                                 r->in.sid, LSA_ACCOUNT_ALL_ACCESS);
     2259                                NULL, 0);
    22522260        if (!NT_STATUS_IS_OK(status)) {
    22532261                return status;
Note: See TracChangeset for help on using the changeset viewer.