diff options
author | Günther Deschner <gd@samba.org> | 2009-09-02 21:16:45 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2010-05-20 18:45:59 +0200 |
commit | e4bdb7e00e3acdb4e18dafdbe44cd4826acaaeab (patch) | |
tree | 06eba77066a872e922895e0a935eff066236279e /source3 | |
parent | 33a156f0c13476f431584492977b0d4c28e4e4fb (diff) | |
download | samba-e4bdb7e00e3acdb4e18dafdbe44cd4826acaaeab.tar.gz samba-e4bdb7e00e3acdb4e18dafdbe44cd4826acaaeab.tar.bz2 samba-e4bdb7e00e3acdb4e18dafdbe44cd4826acaaeab.zip |
s3-libads: add ads_set_sasl_wrap_flags().
Guenther
Diffstat (limited to 'source3')
-rw-r--r-- | source3/include/proto.h | 1 | ||||
-rw-r--r-- | source3/libads/ads_struct.c | 14 |
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(...)' */ |