Coda Distributed File System
auser.h
Go to the documentation of this file.
1/* BLURB gpl
2
3 Coda File System
4 Release 6
5
6 Copyright (c) 1987-2003 Carnegie Mellon University
7 Additional copyrights listed below
8
9This code is distributed "AS IS" without warranty of any kind under
10the terms of the GNU General Public Licence Version 2, as shown in the
11file LICENSE. The technical and financial contributors to Coda are
12listed in the file CREDITS.
13
14 Additional copyrights
15 none currently
16
17#*/
18
19/*
20 * definitions used by client processes (such as clog, testlog, au)
21 * to do authentication
22 */
23
24#ifndef _AUSER_INCLUDED
25#define _AUSER_INCLUDED 1
26
27void U_HostToNetClearToken(ClearToken *cToken);
28void U_NetToHostClearToken(ClearToken *cToken);
29
30int U_Authenticate(struct RPC2_addrinfo *srvs, const char *uName,
31 const int uNamelen, ClearToken *cToken,
32 EncryptedSecretToken sToken, const int verbose,
33 const int interactive);
34
35/* Talks to the central authentication server and changes the password for
36 * uName to newPasswd if myName is the same as uName or a system
37 * administrator. MyPasswd is used to validate myName. */
38int U_ChangePassword(struct RPC2_addrinfo *srvs, const char *uName,
39 const char *newPasswd, const char *myName,
40 const int myNamelen, const char *myPasswd,
41 const int myPasswdlen);
42
43void U_InitRPC();
44char *U_AuthErrorMsg(int rc);
45
46/* Resolve hostname, or realm to a list of servers to contact */
47struct RPC2_addrinfo *U_GetAuthServers(const char *realm, const char *host);
48
49/* Binds to Auth Server on behalf of uName using uPasswd as password.
50 Sets RPCid to the value of the connection id. */
51int U_BindToServer(struct RPC2_addrinfo *srvs, const char *uName,
52 const int uNamelen, const char *uPasswd,
53 const int uPasswdlen, RPC2_Handle *RPCid,
54 const int interactive);
55
56char *U_Error(int rc);
57
58#endif /* _AUSER_INCLUDED */
void U_InitRPC()
Definition: auser.c:167
int U_Authenticate(struct RPC2_addrinfo *srvs, const char *uName, const int uNamelen, ClearToken *cToken, EncryptedSecretToken sToken, const int verbose, const int interactive)
char * U_AuthErrorMsg(int rc)
Definition: auser.c:189
char * U_Error(int rc)
Definition: auser.c:309
struct RPC2_addrinfo * U_GetAuthServers(const char *realm, const char *host)
Definition: auser.c:263
int U_BindToServer(struct RPC2_addrinfo *srvs, const char *uName, const int uNamelen, const char *uPasswd, const int uPasswdlen, RPC2_Handle *RPCid, const int interactive)
Definition: auser.c:283
void U_HostToNetClearToken(ClearToken *cToken)
Definition: auser.c:84
void U_NetToHostClearToken(ClearToken *cToken)
Definition: auser.c:92
int U_ChangePassword(struct RPC2_addrinfo *srvs, const char *uName, const char *newPasswd, const char *myName, const int myNamelen, const char *myPasswd, const int myPasswdlen)
Definition: auser.c:146
int verbose
Definition: mkcodabf.c:30
int interactive
Definition: repair.h:39
RPC2_Integer RPC2_Handle
Definition: rpc2.h:345
long rc
Definition: sftp6.c:107
Definition: rpc2_addrinfo.h:28