Changeset 735 for branches/samba-3.5.x/source3
- Timestamp:
- Nov 12, 2012, 5:25:07 PM (13 years ago)
- Location:
- branches/samba-3.5.x/source3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/VERSION
r734 r735 26 26 SAMBA_VERSION_MAJOR=3 27 27 SAMBA_VERSION_MINOR=5 28 SAMBA_VERSION_RELEASE=1 428 SAMBA_VERSION_RELEASE=15 29 29 30 30 ######################################################## -
branches/samba-3.5.x/source3/rpc_server/srv_lsa_nt.c
r414 r735 1692 1692 struct lsa_info *info; 1693 1693 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)); 1694 1698 struct security_descriptor *psd; 1695 1699 size_t sd_size; … … 1719 1723 status = make_lsa_object_sd(p->mem_ctx, &psd, &sd_size, 1720 1724 &lsa_account_mapping, 1721 r->in.sid, LSA_POLICY_ALL_ACCESS);1725 r->in.sid, owner_access); 1722 1726 if (!NT_STATUS_IS_OK(status)) { 1723 1727 return status; … … 1765 1769 uint32_t des_access = r->in.access_mask; 1766 1770 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)); 1767 1775 NTSTATUS status; 1768 1776 … … 1789 1797 status = make_lsa_object_sd(p->mem_ctx, &psd, &sd_size, 1790 1798 &lsa_account_mapping, 1791 r->in.sid, LSA_ACCOUNT_ALL_ACCESS);1799 r->in.sid, owner_access); 1792 1800 if (!NT_STATUS_IS_OK(status)) { 1793 1801 return status; … … 2175 2183 } 2176 2184 2177 /* get the generic lsa account SD for this SIDuntil we store it */2185 /* get the generic lsa account SD until we store it */ 2178 2186 status = make_lsa_object_sd(p->mem_ctx, &psd, &sd_size, 2179 2187 &lsa_account_mapping, 2180 r->in.sid, LSA_ACCOUNT_ALL_ACCESS);2188 NULL, 0); 2181 2189 if (!NT_STATUS_IS_OK(status)) { 2182 2190 return status; … … 2246 2254 } 2247 2255 2248 /* get the generic lsa account SD for this SIDuntil we store it */2256 /* get the generic lsa account SD until we store it */ 2249 2257 status = make_lsa_object_sd(p->mem_ctx, &psd, &sd_size, 2250 2258 &lsa_account_mapping, 2251 r->in.sid, LSA_ACCOUNT_ALL_ACCESS);2259 NULL, 0); 2252 2260 if (!NT_STATUS_IS_OK(status)) { 2253 2261 return status;
Note:
See TracChangeset
for help on using the changeset viewer.