git.samba.org
/
ira
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mount.cifs: don't prompt for password on krb5 mounts
[ira/wip.git]
/
source3
/
client
/
mount.cifs.c
diff --git
a/source3/client/mount.cifs.c
b/source3/client/mount.cifs.c
index c7009e306c08422245e1a925b68bb0fbeb3f6294..dd878aa07b41448fef6eb032183363976d5c9388 100644
(file)
--- 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) {
}
} 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) {
got_password = 1;
}
} else if (strncmp(data, "ip", 2) == 0) {