[SCM] Samba Shared Repository - branch v3-3-test updated -
release-3-2-0pre2-3729-gc13874f
jlayton at samba.org
jlayton at samba.org
Sat Aug 16 10:11:33 GMT 2008
The branch, v3-3-test has been updated
via c13874f5792f44d7530b1342f3a86b0d3bab9b2f (commit)
from a2b985751fa6f02ac30c3cef3504a51676a43e92 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit c13874f5792f44d7530b1342f3a86b0d3bab9b2f
Author: Jeff Layton <jlayton at redhat.com>
Date: Sat Aug 16 06:09:29 2008 -0400
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 at redhat.com>
-----------------------------------------------------------------------
Summary of changes:
source/client/mount.cifs.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/client/mount.cifs.c b/source/client/mount.cifs.c
index c7009e3..dd878aa 100644
--- a/source/client/mount.cifs.c
+++ b/source/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) {
--
Samba Shared Repository
More information about the samba-cvs
mailing list