1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

krb5_wrap: Document smb_krb5_get_principal_from_service_hostname()

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2016-08-29 17:22:20 +02:00 committed by Andrew Bartlett
parent 2454374309
commit 52c0133b50

View File

@ -2683,6 +2683,23 @@ static char *smb_krb5_get_realm_from_hostname(TALLOC_CTX *mem_ctx,
return realm;
}
/**
* @brief Get the principal as a string from the service hostname.
*
* @param[in] mem_ctx The talloc context
*
* @param[in] service The service name
*
* @param[in] remote_name The remote name
*
* @param[in] default_realm The default_realm if we cannot get it from the
* hostname or netbios name.
*
* @return A talloc'ed principal string or NULL if an error occured.
*
* The caller needs to free the principal with talloc_free() if it isn't needed
* anymore.
*/
char *smb_krb5_get_principal_from_service_hostname(TALLOC_CTX *mem_ctx,
const char *service,
const char *remote_name,