s3-libgpo: enable LDAP sign in ads_get_gpo_list().
authorGünther Deschner <gd@samba.org>
Wed, 2 Sep 2009 19:21:26 +0000 (21:21 +0200)
committerGünther Deschner <gd@samba.org>
Thu, 20 May 2010 16:46:07 +0000 (18:46 +0200)
Guenther

libgpo/gpo_ldap.c

index 2976826f1ac37967807c7124515275b8a0e25138..fe14c5e49a39876cd8697368f534ea81a661f689 100644 (file)
@@ -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 */