diff options
author | Günther Deschner <gd@samba.org> | 2007-05-11 12:52:48 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:21:57 -0500 |
commit | 648df57e53ddabe74052e816b8eba95180736208 (patch) | |
tree | 32df6685a166027557f8acc790b9a1c93aa0e737 /source/libads/ldap_utils.c | |
parent | b376a39fbf42a6a541fd311418c4a980b9fd4b9e (diff) | |
download | samba-648df57e53ddabe74052e816b8eba95180736208.tar.gz |
r22797: We are only interested in the DACL of the security descriptor, so search with
the SD_FLAGS control.
Guenther
Diffstat (limited to 'source/libads/ldap_utils.c')
-rw-r--r-- | source/libads/ldap_utils.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source/libads/ldap_utils.c b/source/libads/ldap_utils.c index 383b652f97a..6417e92e926 100644 --- a/source/libads/ldap_utils.c +++ b/source/libads/ldap_utils.c @@ -4,6 +4,7 @@ Some Helpful wrappers on LDAP Copyright (C) Andrew Tridgell 2001 + Copyright (C) Guenther Deschner 2006,2007 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -187,6 +188,21 @@ static ADS_STATUS ads_do_search_retry_internal(ADS_STRUCT *ads, const char *bind } + ADS_STATUS ads_search_retry_dn_sd_flags(ADS_STRUCT *ads, LDAPMessage **res, + uint32 sd_flags, + const char *dn, + const char **attrs) +{ + ads_control args; + + args.control = ADS_SD_FLAGS_OID; + args.val = sd_flags; + args.critical = True; + + return ads_do_search_retry_args(ads, dn, LDAP_SCOPE_BASE, + "(objectclass=*)", attrs, &args, res); +} + ADS_STATUS ads_search_retry_sid(ADS_STRUCT *ads, LDAPMessage **res, const DOM_SID *sid, const char **attrs) |