From 9c170fce2632e76bda6bb9a644777c978785cff1 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 11 May 2007 12:52:48 +0000 Subject: r22797: We are only interested in the DACL of the security descriptor, so search with the SD_FLAGS control. Guenther (This used to be commit 648df57e53ddabe74052e816b8eba95180736208) --- source3/libads/ldap_utils.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source3/libads/ldap_utils.c') diff --git a/source3/libads/ldap_utils.c b/source3/libads/ldap_utils.c index 383b652f97..6417e92e92 100644 --- a/source3/libads/ldap_utils.c +++ b/source3/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 @@ -185,6 +186,21 @@ static ADS_STATUS ads_do_search_retry_internal(ADS_STRUCT *ads, const char *bind "(objectclass=*)", &args, attrs[0], strings, num_strings); +} + + 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, -- cgit