mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
s3-libads: add ads_set_sasl_wrap_flags().
Guenther
This commit is contained in:
parent
33a156f0c1
commit
e4bdb7e00e
@ -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);
|
||||
|
@ -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(...)'
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user