tests: Check symlinks are readable as reparse points
[samba4-gss.git] / source3 / libads / kerberos_proto.h
blobd3eea0f1544f1ae52b7b5e68fbf631e071aaba36
1 /*
2 * Unix SMB/CIFS implementation.
3 * kerberos utility library
5 * Copyright (C) Andrew Tridgell 2001
6 * Copyright (C) Remus Koos (remuskoos@yahoo.com) 2001
7 * Copyright (C) Luke Howard 2002-2003
8 * Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2003
9 * Copyright (C) Guenther Deschner 2003-2008
10 * Copyright (C) Andrew Bartlett <abartlet@samba.org> 2004-2005
11 * Copyright (C) Jeremy Allison 2004,2007
12 * Copyright (C) Stefan Metzmacher 2004-2005
13 * Copyright (C) Nalin Dahyabhai <nalin@redhat.com> 2004
14 * Copyright (C) Gerald Carter 2006
16 * This program is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation; either version 3 of the License, or
19 * (at your option) any later version.
21 * This program is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with this program. If not, see <http://www.gnu.org/licenses/>.
30 #ifndef _LIBADS_KERBEROS_PROTO_H_
31 #define _LIBADS_KERBEROS_PROTO_H_
33 #include "system/kerberos.h"
35 struct PAC_DATA_CTR;
37 #define DEFAULT_KRB5_PORT 88
39 #include "libads/ads_status.h"
41 /* The following definitions come from libads/kerberos.c */
43 int kerberos_kinit_password_ext(const char *given_principal,
44 const char *password,
45 int time_offset,
46 time_t *expire_time,
47 time_t *renew_till_time,
48 const char *cache_name,
49 bool request_pac,
50 bool add_netbios_addr,
51 time_t renewable_time,
52 TALLOC_CTX *mem_ctx,
53 char **_canon_principal,
54 char **_canon_realm,
55 NTSTATUS *ntstatus);
56 int ads_kdestroy(const char *cc_name);
58 int kerberos_kinit_password(const char *principal,
59 const char *password,
60 int time_offset,
61 const char *cache_name);
62 bool create_local_private_krb5_conf_for_domain(const char *realm,
63 const char *domain,
64 const char *sitename,
65 const struct sockaddr_storage *pss);
67 /* The following definitions come from libads/authdata.c */
69 NTSTATUS kerberos_return_pac(TALLOC_CTX *mem_ctx,
70 const char *name,
71 const char *pass,
72 time_t time_offset,
73 time_t *expire_time,
74 time_t *renew_till_time,
75 const char *cache_name,
76 bool request_pac,
77 bool add_netbios_addr,
78 time_t renewable_time,
79 const char *impersonate_princ_s,
80 const char *local_service,
81 char **_canon_principal,
82 char **_canon_realm,
83 struct PAC_DATA_CTR **pac_data_ctr);
85 /* The following definitions come from libads/krb5_setpw.c */
87 ADS_STATUS ads_krb5_set_password(const char *princ,
88 const char *newpw,
89 const char *ccname);
90 ADS_STATUS kerberos_set_password(const char *auth_principal,
91 const char *auth_password,
92 const char *target_principal,
93 const char *new_password);
95 #ifdef HAVE_KRB5
96 int create_kerberos_key_from_string(krb5_context context,
97 krb5_principal host_princ,
98 krb5_principal salt_princ,
99 krb5_data *password,
100 krb5_keyblock *key,
101 krb5_enctype enctype,
102 bool no_salt);
103 #endif
105 #endif /* _LIBADS_KERBEROS_PROTO_H_ */