$Log$
+ Revision 608.21 2003/08/13 18:08:24 ajc
+ * Removed the last vestiges of the now-obsolete global networking password
+
Revision 608.20 2003/08/13 14:36:04 ajc
* "make install" now installs the contents of docs/ as well as README.txt
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
-
* Global system configuration.
*
* Developers: please do NOT remove the fields labelled "not in use". We
- * can't simply remove them from the struct, because that would render the
- * configs on existing systems corrupt. However, if you need the same number
- * of bytes for a *new* field, feel free to use them.
+ * can't simply remove them from the struct, because this gets written to
+ * disk, and if you change it then you'll break all existing systems.
+ * However, if you'd like to reclaim some of that space for another use, feel
+ * free to do so, as long as the sizes are kept identical.
*/
struct config {
char c_nodename[16]; /* Unqualified "short" nodename */
char c_niu_2[15]; /* (not in use) */
int c_setup_level; /* what rev level we've setup to */
int c_maxsessions; /* maximum concurrent sessions */
- char c_net_password[20]; /* system net password (obsolete) */
+ char c_niu_3[20]; /* (not in use) */
int c_port_number; /* Cit listener port (usually 504) */
int c_ipgm_secret; /* Internal program authentication */
struct ExpirePolicy c_ep; /* System default msg expire policy */
cprintf("%s\n", config.c_bbs_city);
cprintf("%s\n", config.c_sysadm);
cprintf("%d\n", config.c_maxsessions);
- cprintf("%s\n", config.c_net_password);
+ cprintf("xxx\n"); /* placeholder -- field no longer in use */
cprintf("%d\n", config.c_userpurge);
cprintf("%d\n", config.c_roompurge);
cprintf("%s\n", config.c_logpages);
config.c_maxsessions = 1;
break;
case 15:
- safestrncpy(config.c_net_password, buf,
- sizeof config.c_net_password);
+ /* placeholder -- field no longer in use */
break;
case 16:
config.c_userpurge = atoi(buf);
strprompt("Minimum number of worker threads", &sc[21][0], 3);
strprompt("Maximum number of worker threads", &sc[22][0], 3);
- /* no longer applicable ... deprecated
- strprompt("Server-to-server networking password", &sc[15][0], 19);
- */
-
- strprompt("How often to run network jobs (in seconds)", &sc[28][0], 5);
strprompt("POP3 server port (-1 to disable)", &sc[23][0], 5);
strprompt("IMAP server port (-1 to disable)", &sc[27][0], 5);
strprompt("SMTP server port (-1 to disable)", &sc[24][0], 5);
strprompt("Keep messages for how many days?", buf, 10);
expirepolicy->expire_value = atol(buf);
}
+
+ strprompt("How often to run network jobs (in seconds)", &sc[28][0], 5);
strprompt("Hour to run purges (0-23)", &sc[31][0], 2);
+
/* Save it */
scr_printf("Save this configuration? ");
if (yesno()) {
cprintf("%s\n", config.c_sysadm);
cprintf("%d\n", config.c_setup_level);
cprintf("%d\n", config.c_maxsessions);
- cprintf("%s\n", config.c_net_password);
cprintf("%d\n", config.c_port_number);
cprintf("%d\n", config.c_ep.expire_mode);
cprintf("%d\n", config.c_ep.expire_value);
lprintf(9, "c_sysadm = %s\n", config.c_sysadm);
client_gets(buf); config.c_setup_level = atoi(buf);
client_gets(buf); config.c_maxsessions = atoi(buf);
- client_gets(config.c_net_password);
client_gets(buf); config.c_port_number = atoi(buf);
client_gets(buf); config.c_ep.expire_mode = atoi(buf);
client_gets(buf); config.c_ep.expire_value = atoi(buf);
}
is_running = 1;
- strcpy(artv_tempfilename1, tmpnam(NULL));
strcpy(artv_tempfilename2, tmpnam(NULL));
extract(cmd, cmdbuf, 0);
strcpy(config.c_moreprompt, "<more>");
if (strlen(config.c_twitroom) == 0)
strcpy(config.c_twitroom, "Trashcan");
- if (strlen(config.c_net_password) == 0)
- strcpy(config.c_net_password, "netpassword");
if (strlen(config.c_baseroom) == 0)
strcpy(config.c_baseroom, "Lobby");
if (strlen(config.c_aideroom) == 0)
opposed to the floor picture's use in a floor listing).
- NETP (authenticate as network session with system NET Password)
+ NETP (authenticate as network session with connection NET Password)
This command is used by client software to identify itself as a transport
session for IGnet/Open BBS to BBS networking. It should be called with
-two arguments: the node name of the calling system, and the system net
-password for the server. If the authentication succeeds, NETP will return
-OK, otherwise, it returns ERROR.
+two arguments: the node name of the calling system, and the "shared secret"
+password for that connection. If the authentication succeeds, NETP will
+return OK, otherwise, it returns ERROR.
NUOP (Network Upload OPen file)
13. Geographic location of this system
14. Name of the system administrator
15. Number of maximum concurrent sessions allowed on the server
- 16. Password for server-to-server networking
+ 16. (placeholder -- this field is no longer in use)
17. Default purge time (in days) for users
18. Default purge time (in days) for rooms
19. Name of room to log express messages to (or a zero-length name for none)