/* Author: Ram Samudrala (me@ram.org)
 * Version: O1.0
 * Detail: <http://www.ram.org/computing/login/login.html>
 * November 22, 1996.
 *
 * See the URL above for general help.
 */

#ifndef __LOGIN_DEFINES__
#define __LOGIN_DEFINES__

/******************************************************************/
/* Defines you probably should change */

#define GROUP_FILENAME "/home/ram/tmp/.htgroup"
#define PROFILE_FILENAME "/home/ram/tmp/login.info"
#define PASSWORD_FILENAME "/home/ram/tmp/.htpasswd"

/* Location of the modify script*/
#define MODIFY_SCRIPT_LOCATION "/cgi-bin/auth-bin/modify"

/******************************************************************/
/* Defines you may or may not have to change */

/* Number of users that can log in */
#define MAX_USERS 200

/******************************************************************/
/* You shouldn't have to change these generally */

/* Maximum line length allocated to a profile */
#define MAX_PROFILE_LINE_LENGTH 200

/* Controls the number of usernames in the group---1000 can handle 
 * about 150 usernames of maximum length 6. 
 */
#define MAX_GROUP_LINE_LENGTH 1000

/* Maximum length of the password */
#define PASSWORD_LENGTH 60

/* Maximum length of the username */
#define USERNAME_LENGTH 20

/******************************************************************/
/* You really shouldn't be messing with these */

/* This is the character used to delimit entries in the profile.
 * As of version 1.0, you really shouldn't change this unless
 * you understand how the code works.
 */
#define  PROFILE_DELIMITER "|"

/* Length of each line in the htpasswd file */
#define PASSWORD_LINE_LENGTH (PASSWORD_LENGTH+USERNAME_LENGTH+2)

/* The command used to delete a profile */
#define DELETE_PROFILE_COMMAND "delete"

/******************************************************************/

#endif /* __LOGIN_DEFINES__ */

