diff options
-rw-r--r-- | usr/src/lib/smbsrv/libsmb/common/smb_pwdutil.c | 12 |
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; } |