Changeset 738 for branches/samba-3.5.x/source3/lib
- Timestamp:
- Nov 12, 2012, 7:10:02 PM (13 years ago)
- Location:
- branches/samba-3.5.x/source3/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/lib/ldb/common/ldb_parse.c
r414 r738 93 93 } 94 94 95 static bool need_encode(unsigned char cval) 96 { 97 if (cval < 0x20 || cval > 0x7E || strchr(" *()\\&|!\"", cval)) { 98 return true; 99 } 100 return false; 101 } 95 102 96 103 /* … … 106 113 107 114 for (i=0;i<val.length;i++) { 108 if ( !isprint(buf[i]) || strchr(" *()\\&|!\"",buf[i])) {115 if (need_encode(buf[i])) { 109 116 len += 2; 110 117 } … … 115 122 len = 0; 116 123 for (i=0;i<val.length;i++) { 117 if ( !isprint(buf[i]) || strchr(" *()\\&|!\"",buf[i])) {124 if (need_encode(buf[i])) { 118 125 snprintf(ret+len, 4, "\\%02X", buf[i]); 119 126 len += 3; -
branches/samba-3.5.x/source3/lib/sysquotas_xfs.c
r414 r738 36 36 #ifdef HAVE_LINUX_DQBLK_XFS_H 37 37 #include <linux/dqblk_xfs.h> 38 #ifndef XFS_QUOTA_UDQ_ACCT 39 #define XFS_QUOTA_UDQ_ACCT FS_QUOTA_UDQ_ACCT 40 #endif 41 #ifndef XFS_QUOTA_UDQ_ENFD 42 #define XFS_QUOTA_UDQ_ENFD FS_QUOTA_UDQ_ENFD 43 #endif 44 #ifndef XFS_QUOTA_GDQ_ACCT 45 #define XFS_QUOTA_GDQ_ACCT FS_QUOTA_GDQ_ACCT 46 #endif 47 #ifndef XFS_QUOTA_GDQ_ENFD 48 #define XFS_QUOTA_GDQ_ENFD FS_QUOTA_GDQ_ENFD 49 #endif 38 50 #endif 39 51 #define HAVE_GROUP_QUOTA -
branches/samba-3.5.x/source3/lib/util_sid.c
r583 r738 685 685 DOM_SID **user_sids, 686 686 size_t *num_user_sids, 687 bool include_user_group_rid, 688 bool skip_ressource_groups) 687 bool include_user_group_rid) 689 688 { 690 689 NTSTATUS status; … … 739 738 } 740 739 741 /* Copy 'other' sids. We need to do sid filtering here to 742 prevent possible elevation of privileges. See: 743 744 http://www.microsoft.com/windows2000/techinfo/administration/security/sidfilter.asp 745 */ 740 /* SID filtering should only be handled by the domain controller on a 741 trust by trust basis, and is counter-indicated for forests. Since 742 native AD return all Domain Local groups as other SIDs, then this 743 must not filter them when parsing INFO3 responses such that the 744 list is identical to the tokenGroups LDAP query. 745 */ 746 746 747 747 for (i = 0; i < info3->sidcount; i++) { 748 749 if (skip_ressource_groups &&750 (info3->sids[i].attributes & SE_GROUP_RESOURCE)) {751 continue;752 }753 754 748 status = add_sid_to_array(mem_ctx, info3->sids[i].sid, 755 749 &sid_array, &num_sids);
Note:
See TracChangeset
for help on using the changeset viewer.