]> andersk Git - moira.git/blob - incremental/winad/kpasswd.h
cfd51088a0bf16741900e3b6bd91afa1cd599954
[moira.git] / incremental / winad / kpasswd.h
1 /*--
2
3 THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
4 ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
5 TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
6 PARTICULAR PURPOSE.
7
8 Copyright (C) 1999  Microsoft Corporation.  All rights reserved.
9
10 Module Name:
11
12     kpasswd.h
13
14 Abstract:
15
16     Definitions for the Kerberos change password functions
17
18 --*/
19
20 /* changepw.h */
21 krb5_error_code krb5_set_password
22         KRB5_PROTOTYPE((krb5_context, krb5_ccache, char *, char *, char *, int *));
23
24 /*krb5_error_code 
25 (krb5_context, const krb5_data *, struct sockaddr **, int *);
26 */
27
28 /* password change constants */
29
30 typedef struct _krb5_setpw {
31         krb5_magic      magic;
32         krb5_data       newpasswd;
33         krb5_principal  targprinc;
34 } krb5_setpw;
35
36 #ifndef KRB5_KPASSWD_SUCCESS
37 #define KRB5_KPASSWD_SUCCESS            0
38 #define KRB5_KPASSWD_MALFORMED          1
39 #define KRB5_KPASSWD_HARDERROR          2
40 #define KRB5_KPASSWD_AUTHERROR          3
41 #define KRB5_KPASSWD_SOFTERROR          4
42 #endif
43 #define KRB5_KPASSWD_ACCESSDENIED       5
44 #define KRB5_KPASSWD_BAD_VERSION        6
45 #define KRB5_KPASSWD_INITIAL_FLAG_NEEDED 7
46
47 #define KRB5_KPASSWD_VERS_CHANGEPW      1
48 #define KRB5_KPASSWD_VERS_SETPW         0xff80
49
50 #ifndef DEFAULT_KPASSWD_PORT
51 #define DEFAULT_KPASSWD_PORT    464
52 #endif
This page took 0.029571 seconds and 3 git commands to generate.