mirror of
https://github.com/samba-team/samba.git
synced 2025-02-24 13:57:43 +03:00
auth/credentials: add cli_credentials_get_username_obtained()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
7f0aff4682
commit
f9afd24c90
@ -176,6 +176,18 @@ _PUBLIC_ uint32_t cli_credentials_get_gensec_features(struct cli_credentials *cr
|
||||
return creds->gensec_features;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Find out how the username was obtained.
|
||||
*
|
||||
* @param cred A credentials context.
|
||||
*
|
||||
* @return The obtained information for the username.
|
||||
*/
|
||||
_PUBLIC_ enum credentials_obtained
|
||||
cli_credentials_get_username_obtained(struct cli_credentials *cred)
|
||||
{
|
||||
return cred->username_obtained;
|
||||
}
|
||||
|
||||
/**
|
||||
* Obtain the username for this credentials context.
|
||||
|
@ -106,6 +106,7 @@ NTSTATUS cli_credentials_get_ntlm_response(struct cli_credentials *cred, TALLOC_
|
||||
DATA_BLOB *_lm_session_key, DATA_BLOB *_session_key);
|
||||
const char *cli_credentials_get_realm(struct cli_credentials *cred);
|
||||
const char *cli_credentials_get_username(struct cli_credentials *cred);
|
||||
enum credentials_obtained cli_credentials_get_username_obtained(struct cli_credentials *cred);
|
||||
const char *cli_credentials_get_username_and_obtained(struct cli_credentials *cred,
|
||||
enum credentials_obtained *obtained);
|
||||
int cli_credentials_get_krb5_context(struct cli_credentials *cred,
|
||||
|
Loading…
x
Reference in New Issue
Block a user