1
0
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:
Günther Deschner 2009-09-02 21:16:45 +02:00
parent 33a156f0c1
commit e4bdb7e00e
2 changed files with 15 additions and 0 deletions

View File

@ -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);

View File

@ -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(...)'
*/