diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-01-04 11:39:38 +1100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-01-05 17:17:28 +0100 |
commit | 860ad734ba77238d187520f72afcbdc1c73d94ef (patch) | |
tree | cafcfffa96b0ee92a2be550a803e224f1f04dfa9 /source3/libads/kerberos_proto.h | |
parent | 25d7675d695fc1325b954cd90e339b1879776e2b (diff) | |
download | samba-860ad734ba77238d187520f72afcbdc1c73d94ef.tar.gz samba-860ad734ba77238d187520f72afcbdc1c73d94ef.tar.bz2 samba-860ad734ba77238d187520f72afcbdc1c73d94ef.zip |
s3-libads Factor out a new routine kerberos_get_principal_from_service_hostname()
This is now used in the GSE GSSAPI client, so that when we connect to
a target server at the CIFS level, we use the same name to connect
at the DCE/RPC level.
Andrew Bartlett
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/libads/kerberos_proto.h')
-rw-r--r-- | source3/libads/kerberos_proto.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/libads/kerberos_proto.h b/source3/libads/kerberos_proto.h index ff1082a59b..094f38dca2 100644 --- a/source3/libads/kerberos_proto.h +++ b/source3/libads/kerberos_proto.h @@ -62,8 +62,11 @@ int ads_kdestroy(const char *cc_name); char* kerberos_standard_des_salt( void ); bool kerberos_secrets_store_des_salt( const char* salt ); char* kerberos_secrets_fetch_des_salt( void ); -char *kerberos_get_default_realm_from_ccache( void ); -char *kerberos_get_realm_from_hostname(const char *hostname); +char *kerberos_get_default_realm_from_ccache(TALLOC_CTX *mem_ctx); +char *kerberos_get_realm_from_hostname(TALLOC_CTX *mem_ctx, const char *hostname); +char *kerberos_get_principal_from_service_hostname(TALLOC_CTX *mem_ctx, + const char *service, + const char *remote_name); bool kerberos_secrets_store_salting_principal(const char *service, int enctype, |