summaryrefslogtreecommitdiffstats
path: root/libgpo
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-09-02 21:21:26 +0200
committerGünther Deschner <gd@samba.org>2010-05-20 18:46:07 +0200
commit3c1e87a29a776f5add9e7606dca3b909f5ea7445 (patch)
tree114abba9fe147d77bf0883463cb5054b6a7494a7 /libgpo
parente4bdb7e00e3acdb4e18dafdbe44cd4826acaaeab (diff)
downloadsamba-3c1e87a29a776f5add9e7606dca3b909f5ea7445.tar.gz
samba-3c1e87a29a776f5add9e7606dca3b909f5ea7445.tar.xz
samba-3c1e87a29a776f5add9e7606dca3b909f5ea7445.zip
s3-libgpo: enable LDAP sign in ads_get_gpo_list().
Guenther
Diffstat (limited to 'libgpo')
-rw-r--r--libgpo/gpo_ldap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgpo/gpo_ldap.c b/libgpo/gpo_ldap.c
index 2976826f1ac..fe14c5e49a3 100644
--- a/libgpo/gpo_ldap.c
+++ b/libgpo/gpo_ldap.c
@@ -726,6 +726,10 @@ ADS_STATUS ads_get_gpo_list(ADS_STRUCT *ads,
return ADS_ERROR_NT(NT_STATUS_INVALID_PARAMETER);
}
+ if (!ads_set_sasl_wrap_flags(ads, ADS_AUTH_SASL_SIGN)) {
+ return ADS_ERROR(LDAP_INVALID_CREDENTIALS);
+ }
+
DEBUG(10,("ads_get_gpo_list: getting GPO list for [%s]\n", dn));
/* (L)ocal */