summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/libads/ads_struct.c14
2 files changed, 15 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 5775ebfa2a..bd188b1bf1 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -1713,6 +1713,7 @@ char *ads_build_domain(const char *dn);
ADS_STRUCT *ads_init(const char *realm,
const char *workgroup,
const char *ldap_server);
+bool ads_set_sasl_wrap_flags(ADS_STRUCT *ads, int flags);
void ads_destroy(ADS_STRUCT **ads);
const char *ads_get_ldap_server_name(ADS_STRUCT *ads);
diff --git a/source3/libads/ads_struct.c b/source3/libads/ads_struct.c
index aef35ad822..e01a36cbae 100644
--- a/source3/libads/ads_struct.c
+++ b/source3/libads/ads_struct.c
@@ -151,6 +151,20 @@ ADS_STRUCT *ads_init(const char *realm,
return ads;
}
+/****************************************************************
+****************************************************************/
+
+bool ads_set_sasl_wrap_flags(ADS_STRUCT *ads, int flags)
+{
+ if (!ads) {
+ return false;
+ }
+
+ ads->auth.flags = flags;
+
+ return true;
+}
+
/*
free the memory used by the ADS structure initialized with 'ads_init(...)'
*/