Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / uss / uss_kauth.h
1 /*
2 * Copyright 2000, International Business Machines Corporation and others.
3 * All Rights Reserved.
4 *
5 * This software has been released under the terms of the IBM Public
6 * License. For details, see the LICENSE file in the top-level source
7 * directory or online at http://www.openafs.org/dl/license10.html
8 */
9
10 /*
11 * Interface to the authentication-related procedures for the
12 * AFS user account facility.
13 *
14 */
15
16 #ifndef _USS_KAUTH_H_
17 #define _USS_KAUTH_H_ 1
18 /*
19 * --------------------- Required definitions ---------------------
20 */
21
22
23 /*
24 * --------------------- Exported definitions ---------------------
25 */
26
27
28 /*
29 * ------------------------ Exported functions -----------------------
30 */
31 extern afs_int32 uss_kauth_InitAccountCreator(void);
32 /*
33 * Summary:
34 * Initialize the variable uss_AccountCreator().
35 *
36 * Args:
37 * None.
38 *
39 * Returns:
40 * 0 if everything went well,
41 * 1 if couldn't get user name from getpwuid().
42 */
43
44 extern afs_int32 uss_kauth_AddUser(char *, char *);
45 /*
46 * Summary:
47 * Register the given user with the Authentication Server.
48 *
49 * Args:
50 * char *a_user : Name of the user to register.
51 * char *a_passwd : User's (cleartext) password.
52 *
53 * Returns:
54 * 0 if everything went well,
55 * 1 if there was a problem encountered in this function, or
56 * Code returned from a lower-level call.
57 */
58
59 extern afs_int32 uss_kauth_DelUser(char *);
60 /*
61 * Summary:
62 * Delete the given user from the Authentication Database.
63 *
64 * Args:
65 * char *a_user : Name of the user to delete.
66 *
67 * Returns:
68 * 0 if everything went well,
69 * 1 if there was a problem encountered in this function, or
70 * Code returned from a lower-level call.
71 */
72
73 extern afs_int32 uss_kauth_CheckUserName(void);
74 /*
75 * Summary:
76 * Make sure the parsed user name is a legal one.
77 *
78 * Args:
79 * None.
80 *
81 * Returns:
82 * 0 if everything went well,
83 * 1 if the user name is not legal.
84 */
85
86 extern afs_int32 uss_kauth_SetFields(char *username, char *expirestring,
87 char *reuse, char *failures,
88 char *lockout);
89
90 #endif /* _USS_KAUTH_H_ */