diff options
author | Gordon Ross <gwr@nexenta.com> | 2013-01-17 20:13:00 -0500 |
---|---|---|
committer | Gordon Ross <gwr@nexenta.com> | 2014-11-12 14:27:49 -0500 |
commit | fd75ca8de430ee0ba5ce650efee0ac0b85ed43e9 (patch) | |
tree | a3cba46abbb7ef2a33b2c7305ecc4b1f370ba8c9 /usr/src/lib/libsmbfs/smb/ctx.c | |
parent | cb66c7814563eb32e20c1be88ae738ad8d63079d (diff) | |
download | illumos-joyent-fd75ca8de430ee0ba5ce650efee0ac0b85ed43e9.tar.gz |
5307 AD join with lmauth_level=2 fails
Reviewed by: Boris Protopopov <boris.protopopov@nexenta.com>
Reviewed by: Alek Pinchuk <pinchuk.alek@gmail.com>
Reviewed by: Albert Lee <trisk@nexenta.com>
Reviewed by: Thomas Keiser <thomas.keiser@nexenta.com>
Approved by: Dan McDonald <danmcd@omniti.com>
Diffstat (limited to 'usr/src/lib/libsmbfs/smb/ctx.c')
-rw-r--r-- | usr/src/lib/libsmbfs/smb/ctx.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/src/lib/libsmbfs/smb/ctx.c b/usr/src/lib/libsmbfs/smb/ctx.c index 5681aa7226..81e4241aa5 100644 --- a/usr/src/lib/libsmbfs/smb/ctx.c +++ b/usr/src/lib/libsmbfs/smb/ctx.c @@ -33,8 +33,8 @@ */ /* - * Copyright 2011 Nexenta Systems, Inc. All rights reserved. * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright 2013 Nexenta Systems, Inc. All rights reserved. */ #include <sys/param.h> @@ -75,6 +75,9 @@ #define TRUE 1 #endif +#define SMB_AT_DEFAULT (SMB_AT_KRB5 | SMB_AT_NTLM2) +#define SMB_AT_MINAUTH (SMB_AT_KRB5 | SMB_AT_NTLM2 | SMB_AT_NTLM1) + struct nv { char *name; int value; @@ -260,7 +263,7 @@ smb_ctx_init(struct smb_ctx *ctx) ctx->ct_vopt = SMBVOPT_EXT_SEC; ctx->ct_owner = SMBM_ANY_OWNER; ctx->ct_authflags = SMB_AT_DEFAULT; - ctx->ct_minauth = SMB_AT_DEFAULT; + ctx->ct_minauth = SMB_AT_MINAUTH; /* * Default domain, user, ... |