From: Günther Deschner Date: Wed, 2 Sep 2009 19:21:26 +0000 (+0200) Subject: s3-libgpo: enable LDAP sign in ads_get_gpo_list(). X-Git-Url: http://git.samba.org/samba.git/?p=kai%2Fsamba.git;a=commitdiff_plain;h=3c1e87a29a776f5add9e7606dca3b909f5ea7445 s3-libgpo: enable LDAP sign in ads_get_gpo_list(). Guenther --- 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 */