From 2a98aa4e77cbe2aec4a5de53b3d8f625fccdd919 Mon Sep 17 00:00:00 2001 From: HARA Hiroshi Date: Tue, 18 Dec 2007 11:19:30 +0900 Subject: Validation of root password with cracklib Current anaconda validates only length of root password. but passwd command validates more things for password like the following... ------------------------------------------- Changing password for user root. New UNIX password: BAD PASSWORD: it is based on a dictionary word Retype new UNIX password: ------------------------------------------- so I added the validation of root password to anaconda using cracklib same as passwd. --- scripts/upd-instroot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/upd-instroot b/scripts/upd-instroot index 610fd5efe..fa39ca3de 100755 --- a/scripts/upd-instroot +++ b/scripts/upd-instroot @@ -272,7 +272,8 @@ PACKAGES="glibc-common setup python newt slang libselinux libdhcp libnl libdhcp6client libdhcp4client newt-python device-mapper device-mapper-libs dmraid keyutils-libs libsemanage-python python-pyblock mkinitrd libbdevid libbdevid-python nss nspr pcre - cryptsetup-luks libgcrypt libgpg-error udev udev-static dbus dbus-python hal" + cryptsetup-luks libgcrypt libgpg-error udev udev-static dbus dbus-python hal + cracklib-python" if [ $ARCH = i386 ]; then PACKAGES="$PACKAGES glibc.i386 openssl.i386" @@ -535,6 +536,7 @@ usr/lib/python?.?/site-packages/repomd usr/lib/python?.?/site-packages/pirut usr/lib/python?.?/site-packages/pykickstart usr/lib/python?.?/site-packages/rhpxl +usr/lib/python?.?/site-packages/cracklibmodule.so usr/lib/rpm/macros usr/lib/rpm/rpmpopt usr/lib/rpm/rpmrc -- cgit