]>
Commit | Line | Data |
---|---|---|
cd9e6b16 | 1 | /*-- |
cd9e6b16 | 2 | Module Name: |
3 | ||
4 | kpasswd.h | |
5 | ||
cd9e6b16 | 6 | --*/ |
7 | ||
cd9e6b16 | 8 | |
f78c7eaf | 9 | krb5_error_code krb5_set_password |
10 | KRB5_PROTOTYPE((krb5_context, krb5_ccache, char *, char *, char *, int *)); | |
cd9e6b16 | 11 | |
12 | typedef struct _krb5_setpw { | |
f78c7eaf | 13 | krb5_magic magic; |
14 | krb5_data newpasswd; | |
15 | krb5_principal targprinc; | |
cd9e6b16 | 16 | } krb5_setpw; |
17 | ||
f78c7eaf | 18 | |
19 | #define MAX_SERVER_NAMES 32 | |
20 | #ifndef T_SRV | |
21 | #define T_SRV 33 | |
22 | #endif | |
23 | #define LDAP_SERVICE "_ldap" | |
24 | #define TCP_PROTOCOL "_tcp" | |
25 | ||
26 | #define KDC_RECEIVE_TIMEOUT 10 | |
27 | #define KDC_RECEIVE_ERROR 11 | |
28 | #define KDC_SEND_ERROR 12 | |
29 | #define KDC_GETSOCKNAME_ERROR 13 | |
30 | #define KDC_GETPEERNAME_ERROR 14 | |
31 | ||
cd9e6b16 | 32 | #ifndef KRB5_KPASSWD_SUCCESS |
f78c7eaf | 33 | #define KRB5_KPASSWD_SUCCESS 0 |
34 | #define KRB5_KPASSWD_MALFORMED 1 | |
35 | #define KRB5_KPASSWD_HARDERROR 2 | |
36 | #define KRB5_KPASSWD_AUTHERROR 3 | |
37 | #define KRB5_KPASSWD_SOFTERROR 4 | |
cd9e6b16 | 38 | #endif |
f78c7eaf | 39 | #define KRB5_KPASSWD_ACCESSDENIED 5 |
40 | #define KRB5_KPASSWD_BAD_VERSION 6 | |
41 | #define KRB5_KPASSWD_INITIAL_FLAG_NEEDED 7 | |
cd9e6b16 | 42 | |
f78c7eaf | 43 | #define KRB5_KPASSWD_VERS_CHANGEPW 1 |
44 | #define KRB5_KPASSWD_VERS_SETPW 0xff80 | |
cd9e6b16 | 45 | |
46 | #ifndef DEFAULT_KPASSWD_PORT | |
f78c7eaf | 47 | #define DEFAULT_KPASSWD_PORT 464 |
cd9e6b16 | 48 | #endif |
f78c7eaf | 49 |