summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Barden <matt.barden@nexenta.com>2017-10-16 09:42:20 -0400
committerGordon Ross <gwr@nexenta.com>2019-08-10 10:05:48 -0400
commit33fc94dcd110f095f791299c5a5fe822e267972e (patch)
treed06d4f6087a9af1fc3b04c36df3f5ebd7601eb29
parentc7bda7648c4308e1a77e2535de357af9f86236aa (diff)
downloadillumos-joyent-33fc94dcd110f095f791299c5a5fe822e267972e.tar.gz
11026 Windows usernames should be treated as case insensitive
Reviewed by: Gordon Ross <gordon.ross@nexenta.com> Reviewed by: Evan Layton <evan.layton@nexenta.com> Approved by: Garrett D'Amore <garrett@damore.org>
-rw-r--r--usr/src/lib/smbsrv/libsmb/common/smb_pwdutil.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr/src/lib/smbsrv/libsmb/common/smb_pwdutil.c b/usr/src/lib/smbsrv/libsmb/common/smb_pwdutil.c
index 19cb5166a1..9b9e06ccea 100644
--- a/usr/src/lib/smbsrv/libsmb/common/smb_pwdutil.c
+++ b/usr/src/lib/smbsrv/libsmb/common/smb_pwdutil.c
@@ -22,7 +22,7 @@
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
- * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
+ * Copyright 2017 Nexenta Systems, Inc. All rights reserved.
*/
#include <syslog.h>
@@ -108,10 +108,10 @@ static int smb_pwd_update(const char *, const char *, int);
*
* Simplifying assumptions
*
- * o smbpasswd is a service private file and shouldn't be edited manually
- * o accounts are only added/modified via passwd and/or smbadm CLIs
- * o accounts are not removed but disabled using smbadm CLI
- * o editing smbpasswd manually might result in cache inconsistency
+ * o smbpasswd is a service private file and shouldn't be edited manually
+ * o accounts are only added/modified via passwd and/or smbadm CLIs
+ * o accounts are not removed but disabled using smbadm CLI
+ * o editing smbpasswd manually might result in cache inconsistency
*
* Cache is created and populated upon service startup.
* Cache is updated each time users list is requested if there's been
@@ -278,7 +278,7 @@ smb_pwd_getpwnam(const char *name, smb_passwd_t *smbpw)
pwbuf.pw_pwd = smbpw;
while (smb_pwd_fgetent(fp, &pwbuf, SMB_PWD_GETF_ALL) != NULL) {
- if (strcmp(name, smbpw->pw_name) == 0) {
+ if (strcasecmp(name, smbpw->pw_name) == 0) {
found = B_TRUE;
break;
}