Change-Id: I0e586762ff8f172f6b881e3cee2edd48567031fa
Reviewed-on: http://photon-jenkins.eng.vmware.com/72
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: Mahmoud Bassiouny <mbassiouny@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,11 @@ |
| 0 |
+diff -ur shadow-original/libmisc/chkname.c shadow-4.1.5.1/libmisc/chkname.c |
|
| 1 |
+--- shadow-original/libmisc/chkname.c 2009-07-12 15:24:45.000000000 -0700 |
|
| 2 |
+@@ -58,6 +58,7 @@ |
|
| 3 |
+ |
|
| 4 |
+ while ('\0' != *++name) {
|
|
| 5 |
+ if (!(( ('a' <= *name) && ('z' >= *name) ) ||
|
|
| 6 |
++ ( ('A' <= *name) && ('Z' >= *name) ) ||
|
|
| 7 |
+ ( ('0' <= *name) && ('9' >= *name) ) ||
|
|
| 8 |
+ ('_' == *name) ||
|
|
| 9 |
+ ('-' == *name) ||
|
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Programs for handling passwords in a secure way |
| 2 | 2 |
Name: shadow |
| 3 | 3 |
Version: 4.1.5.1 |
| 4 |
-Release: 4%{?dist}
|
|
| 4 |
+Release: 5%{?dist}
|
|
| 5 | 5 |
URL: http://pkg-shadow.alioth.debian.org/ |
| 6 | 6 |
License: BSD |
| 7 | 7 |
Group: Applications/System |
| ... | ... |
@@ -11,6 +11,7 @@ Source0: http://cdn.debian.net/debian/pool/main/s/%{name}/%{name}_%{version}.ori
|
| 11 | 11 |
%define sha1 shadow=6e4de75de58405d21b0377b926ae770afccd95bc |
| 12 | 12 |
Source1: PAM-Configuration-Files-1.0.tar.gz |
| 13 | 13 |
%define sha1 PAM=018667e773afb7a6fafb03a1967202dbe9b7f232 |
| 14 |
+Patch0: chkname-allowcase.patch |
|
| 14 | 15 |
BuildRequires: cracklib |
| 15 | 16 |
BuildRequires: cracklib-devel |
| 16 | 17 |
Requires: cracklib |
| ... | ... |
@@ -24,6 +25,7 @@ in a secure way. |
| 24 | 24 |
%prep |
| 25 | 25 |
%setup -q -n %{name}-%{version}
|
| 26 | 26 |
%setup -q -T -D -a 1 |
| 27 |
+%patch0 -p1 |
|
| 27 | 28 |
sed -i 's/groups$(EXEEXT) //' src/Makefile.in |
| 28 | 29 |
find man -name Makefile.in -exec sed -i 's/groups\.1 / /' {} \;
|
| 29 | 30 |
sed -i -e 's@#ENCRYPT_METHOD DES@ENCRYPT_METHOD SHA512@' \ |
| ... | ... |
@@ -96,6 +98,8 @@ done |
| 96 | 96 |
%{_mandir}/*/*
|
| 97 | 97 |
%{_sysconfdir}/pam.d/*
|
| 98 | 98 |
%changelog |
| 99 |
+* Mon Oct 26 2015 Sharath George <sharathg@vmware.com> 4.1.5.1-5 |
|
| 100 |
+- Allow mixed case in username. |
|
| 99 | 101 |
* Mon Jun 29 2015 Divya Thaluru <dthaluru@vmware.com> 4.1.5.1-4 |
| 100 | 102 |
- Fixed PAM Configuration file for chpasswd |
| 101 | 103 |
* Tue Jun 16 2015 Alexey Makhalov <amakhalov@vmware.com> 4.1.5.1-3 |