diff options
author | Jeff Layton <jlayton@redhat.com> | 2008-08-16 06:09:29 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2008-08-21 19:38:35 -0400 |
commit | 3be3dac17d7e333c3e3760ae9b0b2a5441206046 (patch) | |
tree | ac5514d5064e0159883ce93eb26daeb195e1f95a /source3 | |
parent | 129e71a97a991f9cd79c9eca65b21e4789d5f303 (diff) | |
download | samba-3be3dac17d7e333c3e3760ae9b0b2a5441206046.tar.gz samba-3be3dac17d7e333c3e3760ae9b0b2a5441206046.tar.bz2 samba-3be3dac17d7e333c3e3760ae9b0b2a5441206046.zip |
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)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/client/mount.cifs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/client/mount.cifs.c b/source3/client/mount.cifs.c index c7009e306c..dd878aa07b 100644 --- a/source3/client/mount.cifs.c +++ b/source3/client/mount.cifs.c @@ -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) { |