Authentication modes are given as strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@434 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -282,14 +282,13 @@ main(int argc, char **argv, char **envp)
|
|||||||
switch (ch) {
|
switch (ch) {
|
||||||
case 'a':
|
case 'a':
|
||||||
{
|
{
|
||||||
int tmp;
|
if(strcmp(optarg, "none") == 0)
|
||||||
if(isdigit(optarg[0])){
|
auth_level = 0;
|
||||||
tmp = atoi(optarg);
|
else if(strcmp(optarg, "safe") == 0)
|
||||||
if(tmp >= 0 && tmp <= 2){
|
auth_level = 1;
|
||||||
auth_level = tmp;
|
else if(strcmp(optarg, "user") == 0)
|
||||||
break;
|
auth_level = 2;
|
||||||
}
|
else
|
||||||
}
|
|
||||||
warnx("bad value for -a");
|
warnx("bad value for -a");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user