mirror of
https://github.com/samba-team/samba.git
synced 2025-02-03 13:47:25 +03:00
s3-libnetapi: add libnetapi_get_use_kerberos()
Guenther Signed-off-by: Guenther Deschner <gd@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
This commit is contained in:
parent
adcdb696cf
commit
927390bae5
@ -352,6 +352,24 @@ NET_API_STATUS libnetapi_set_use_kerberos(struct libnetapi_ctx *ctx)
|
||||
/****************************************************************
|
||||
****************************************************************/
|
||||
|
||||
NET_API_STATUS libnetapi_get_use_kerberos(struct libnetapi_ctx *ctx,
|
||||
int *use_kerberos)
|
||||
{
|
||||
enum credentials_use_kerberos creds_use_kerberos;
|
||||
|
||||
*use_kerberos = 0;
|
||||
|
||||
creds_use_kerberos = cli_credentials_get_kerberos_state(ctx->creds);
|
||||
if (creds_use_kerberos > CRED_USE_KERBEROS_DESIRED) {
|
||||
*use_kerberos = 1;
|
||||
}
|
||||
|
||||
return NET_API_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
****************************************************************/
|
||||
|
||||
NET_API_STATUS libnetapi_set_use_ccache(struct libnetapi_ctx *ctx)
|
||||
{
|
||||
uint32_t gensec_features;
|
||||
|
@ -1423,6 +1423,12 @@ NET_API_STATUS libnetapi_set_use_kerberos(struct libnetapi_ctx *ctx);
|
||||
/****************************************************************
|
||||
****************************************************************/
|
||||
|
||||
NET_API_STATUS libnetapi_get_use_kerberos(struct libnetapi_ctx *ctx,
|
||||
int *use_kerberos);
|
||||
|
||||
/****************************************************************
|
||||
****************************************************************/
|
||||
|
||||
NET_API_STATUS libnetapi_set_use_ccache(struct libnetapi_ctx *ctx);
|
||||
|
||||
/****************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user