]> andersk Git - moira.git/blame - clients/userreg/userreg.h
Kludge for use with SMS>
[moira.git] / clients / userreg / userreg.h
CommitLineData
989a2c2c 1/*
2 * $Source$
3 * $Author$
4 * $Locker$
5 * $Header$
6 */
7
8#include <stdio.h>
9#include <ctype.h>
10#include "files.h"
11
48a6cc01 12/*
13 * This is a kludge for compatibility with the old Athenareg stuff
14 */
15
16struct user {
17 char u_first[100];
18 char u_mid_init[100];
19 char u_last[100];
20 char u_login[100];
21 char u_password[100];
22 char u_mit_id[100];
23 char u_home_dir[100];
24 int u_status;
25};
26
27struct alias {
28 int foo;
29};
30
31#define SUCCESS 0
32#define FAILURE 1
33#define NOT_FOUND 2
34#define FIRST_NAME_SIZE 16
35#define LAST_NAME_SIZE 16
36#define MID_INIT_SIZE 16
37#define LOGIN_SIZE 9
38#define PASSWORD_SIZE 9
989a2c2c 39
40/* Input timeouts. The most important timeouts are those for the username
41 and the new password which should not be any longer than necessary. The
42 firstname timeout causes userreg to restart itself periodically since
43 userreg is waiting for a firstname when it is not being used. All the
44 other timeouts are just there so that userreg will not stay in a half-used
45 state -- possibly confusing an unwary registree.
46 */
47#define FIRSTNAME_TIMEOUT 600 /* 30 minutes */
48#define MI_TIMEOUT 90
49#define LASTNAME_TIMEOUT 90
50#define MITID_TIMEOUT 90
51#define USERNAME_TIMEOUT 90 /* This should not be too long */
52#define OLD_PASSWORD_TIMEOUT 90
53#define NEW_PASSWORD_TIMEOUT 90 /* Neither should this */
54#define REENTER_PASSWORD_TIMEOUT 90
55#define YN_TIMEOUT 90
56#define TIMER_TIMEOUT 90 /* default timeout for timer_on() */
57
58#define NO 0
59#define YES 1
60
61/* Externs from display.c */
62extern setup_display ();
63extern reset_display ();
64extern restore_display ();
65extern redisp ();
66extern input ();
67extern input_no_echo ();
68extern display_text_line ();
69extern display_text ();
70
71/* Global variables */
72extern struct user user,
73 db_user;
74char typed_mit_id[100];
This page took 0.103272 seconds and 5 git commands to generate.