mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
d5d0e71279
Add a hook, acl_redact_msg_for_filter(), in the aclread module, that marks inaccessible any message elements used by an LDAP search filter that the user has no right to access. Make the various ldb_match_*() functions check whether message elements are accessible, and refuse to match any that are not. Remaining message elements, not mentioned in the search filter, are checked in aclread_callback(), and any inaccessible elements are removed at this point. Certain attributes, namely objectClass, distinguishedName, name, and objectGUID, are always present, and hence the presence of said attributes is always allowed to be checked in a search filter. This corresponds with the behaviour of Windows. Further, we unconditionally allow the attributes isDeleted and isRecycled in a check for presence or equality. Windows is not known to make this special exception, but it seems mostly harmless, and should mitigate the performance impact on searches made by the show_deleted module. As a result of all these changes, our behaviour regarding confidential attributes happens to match Windows more closely. For the test in confidential_attr.py, we can now model our attribute handling with DC_MODE_RETURN_ALL, which corresponds to the behaviour exhibited by Windows. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15270 Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org> |
||
---|---|---|
.. | ||
bug-14236 | ||
bug-14810 | ||
claims-client-tool | ||
complex_expressions | ||
constructed-claims | ||
dfs_paths | ||
dns | ||
dns_packet | ||
dns-aging | ||
durable-v2-delay | ||
empty-domain-name | ||
encrypted_secrets | ||
getncchanges | ||
initshutdown | ||
kdc-salt | ||
keytab | ||
kinit_trust | ||
krb5-no-preauth | ||
labdc | ||
ldap | ||
ldap_spn | ||
lm-hash-support-gone | ||
lzxpress | ||
modify-order | ||
multichannel | ||
netlogon | ||
nt-hash-support-gone | ||
ntlmv1-restrictions | ||
ntlmv2-restrictions | ||
oneway | ||
priv_attr | ||
protected_users | ||
python-segfaults | ||
quota1 | ||
README | ||
replica_sync | ||
rpc-dfs | ||
rpc-netlogon-zerologon | ||
rw-invalid | ||
s3-logging | ||
s3-lsa-server | ||
samba3.vfs.fruit | ||
samba-4.5-emulation | ||
sid-strings | ||
smb1-tests | ||
smb2.replay | ||
smb2.session | ||
smbcacls | ||
smbclient-smb3 | ||
source3-epmapper | ||
srvsvc | ||
uac_objectclass_restrict | ||
upn_handling | ||
usage | ||
vlv | ||
wkssvc |
# Files in this directory contain lists of regular expressions # matching the names of tests that are temporarily expected to fail. # # "make test" will not report failures for tests listed here and will consider # a successful run for any of these tests an error. # # Empty lines and lines beginning with '#' are ignored. # Please don't add tests to this README!