mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
mount.cifs: don't prompt for password on krb5 mounts
krb5 mounts require that the user already have a valid krb5 ticket. Since we can't currently use the password entered, don't prompt for it. Also, switch to using strncmp instead of strcmp here. Signed-off-by: Jeff Layton <jlayton@redhat.com> (This used to be commit c75791c34abebe23c6f6a5534b0358514ec4eabc)
This commit is contained in:
parent
129e71a97a
commit
3be3dac17d
@ -473,7 +473,8 @@ static int parse_options(char ** optionsp, int * filesys_flags)
|
||||
}
|
||||
} else if (strncmp(data, "sec", 3) == 0) {
|
||||
if (value) {
|
||||
if (!strcmp(value, "none"))
|
||||
if (!strncmp(value, "none", 4) ||
|
||||
!strncmp(value, "krb5", 4))
|
||||
got_password = 1;
|
||||
}
|
||||
} else if (strncmp(data, "ip", 2) == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user