From 20f75e26ead003bde0445d14d0db0b2c906672bd Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Thu, 2 Mar 2006 03:41:39 +0000 Subject: [PATCH] INFO command now reveals whether new user create can work --- citadel/citserver.c | 8 ++++++++ citadel/techdoc/protocol.txt | 32 +++++++++++++++++--------------- 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/citadel/citserver.c b/citadel/citserver.c index 89c9538b2..a4f488fc4 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -252,11 +252,19 @@ void cmd_info(void) { cprintf("1\n"); /* 1 = we support the extended paging options */ cprintf("%s\n", CC->cs_nonce); cprintf("1\n"); /* 1 = yes, this system supports the QNOP command */ + #ifdef HAVE_LDAP cprintf("1\n"); /* 1 = yes, this server is LDAP-enabled */ #else cprintf("0\n"); /* 1 = no, this server is not LDAP-enabled */ #endif + +#ifdef ENABLE_AUTOLOGIN + cprintf("1\n"); /* "create new user" never works with autologin */ +#else + cprintf("%d\n", config.c_disable_newu); /* otherwise, site defined */ +#endif + cprintf("000\n"); } diff --git a/citadel/techdoc/protocol.txt b/citadel/techdoc/protocol.txt index b9b2b20c8..f6d51de12 100644 --- a/citadel/techdoc/protocol.txt +++ b/citadel/techdoc/protocol.txt @@ -610,26 +610,28 @@ anywhere from a null listing to an infinite number of lines, to allow later backward compatibility. The current implementation defines the following parts of the listing: - Line 1 - Your unique session ID on the server - Line 2 - The node name of the Citadel server - Line 3 - Human-readable node name of the Citadel server - Line 4 - The fully-qualified domain name (FQDN) of the server - Line 5 - The name of the server software, i.e. "Citadel 4.00" - Line 6 - (The revision level of the server code) * 100 - Line 7 - The geographical location of the site (city and state if in the US) - Line 8 - The name of the system administrator - Line 9 - A number identifying the server type (see below) - Line 10 - The text of the system's paginator prompt - Line 11 - Floor Flag. 1 if the system supports floors, 0 otherwise. - Line 12 - Paging level. 0 if the system only supports inline paging, + Line 0 - Your unique session ID on the server + Line 1 - The node name of the Citadel server + Line 2 - Human-readable node name of the Citadel server + Line 3 - The fully-qualified domain name (FQDN) of the server + Line 4 - The name of the server software, i.e. "Citadel 4.00" + Line 5 - (The revision level of the server code) * 100 + Line 6 - The geographical location of the site (city and state if in the US) + Line 7 - The name of the system administrator + Line 8 - A number identifying the server type (see below) + Line 9 - The text of the system's paginator prompt + Line 10 - Floor Flag. 1 if the system supports floors, 0 otherwise. + Line 11 - Paging level. 0 if the system only supports inline paging, 1 if the system supports "extended" paging (check-only and multiline modes). See the SEXP command for further information. - Line 13 - The "nonce" for this session, for support of APOP-style + Line 12 - The "nonce" for this session, for support of APOP-style authentication. If this field is present, clients may authenticate in this manner. - Line 14 - Set to nonzero if this server supports the QNOP command. - Line 15 - Set to nonzero if this server is capable of connecting to a + Line 13 - Set to nonzero if this server supports the QNOP command. + Line 14 - Set to nonzero if this server is capable of connecting to a directory service using LDAP. + Line 15 - Set to nonzero if this server does *not* allow self-service + creation of new user accounts. *** NOTE! *** The "server type" code is intended to promote global compatibility in a scenario in which developers have added proprietary -- 2.39.2