Change default auth level to what was formerly known as `user'.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1010 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1996-11-17 05:18:36 +00:00
parent 467c862f2b
commit 2de4d60b80

View File

@@ -183,7 +183,7 @@ static char ttyline[20];
#define AUTH_OTP (1 << 1) /* passwords are one-time */ #define AUTH_OTP (1 << 1) /* passwords are one-time */
#define AUTH_FTP (1 << 2) /* allow anonymous login */ #define AUTH_FTP (1 << 2) /* allow anonymous login */
static int auth_level = AUTH_FTP; static int auth_level = 0; /* Only allow kerberos login by default */
/* /*
* Timeout intervals for retrying connections * Timeout intervals for retrying connections
@@ -256,9 +256,7 @@ parse_auth_level(char *str)
int ret = 0; int ret = 0;
p = strtok(str, ","); p = strtok(str, ",");
while(p){ while(p){
if(strcmp(p, "krb4") == 0 || if(strcmp(p, "user") == 0) ;
strcmp(p, "user") == 0)
;
else if(strcmp(p, "otp") == 0) else if(strcmp(p, "otp") == 0)
ret |= AUTH_PLAIN|AUTH_OTP; ret |= AUTH_PLAIN|AUTH_OTP;
else if(strcmp(p, "ftp") == 0 || else if(strcmp(p, "ftp") == 0 ||