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 | 9c170fce2632e76bda6bb9a644777c978785cff1 (patch) | |
tree | eb3fe76940b7867e6f13fd2f919ef55e16bddac3 /source3/libads/ldap_utils.c | |
parent | 95bc08e9545850ba57cdcf79bf9f62872b2946c0 (diff) | |
download | samba-9c170fce2632e76bda6bb9a644777c978785cff1.tar.gz samba-9c170fce2632e76bda6bb9a644777c978785cff1.tar.bz2 samba-9c170fce2632e76bda6bb9a644777c978785cff1.zip |
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)
Diffstat (limited to 'source3/libads/ldap_utils.c')
-rw-r--r-- | source3/libads/ldap_utils.c | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ -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) |