2 * Copyright 2000, International Business Machines Corporation and others.
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
11 * Interface to the authentication-related procedures for the
12 * AFS user account facility.
17 #define _USS_KAUTH_H_ 1
19 * --------------------- Required definitions ---------------------
24 * --------------------- Exported definitions ---------------------
29 * ------------------------ Exported functions -----------------------
31 extern afs_int32
uss_kauth_InitAccountCreator(void);
34 * Initialize the variable uss_AccountCreator().
40 * 0 if everything went well,
41 * 1 if couldn't get user name from getpwuid().
44 extern afs_int32
uss_kauth_AddUser(char *, char *);
47 * Register the given user with the Authentication Server.
50 * char *a_user : Name of the user to register.
51 * char *a_passwd : User's (cleartext) password.
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.
59 extern afs_int32
uss_kauth_DelUser(char *);
62 * Delete the given user from the Authentication Database.
65 * char *a_user : Name of the user to delete.
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.
73 extern afs_int32
uss_kauth_CheckUserName(void);
76 * Make sure the parsed user name is a legal one.
82 * 0 if everything went well,
83 * 1 if the user name is not legal.
86 extern afs_int32
uss_kauth_SetFields(char *username
, char *expirestring
,
87 char *reuse
, char *failures
,
90 #endif /* _USS_KAUTH_H_ */