Commit 62ccd444 authored by Tristan A Spakes's avatar Tristan A Spakes

ver. 1.3.4 Changed the way acquiring the unregistered smart card is done, need to test again

parent dfc38728
Pipeline #26104 passed with stages
in 1 minute and 3 seconds
...@@ -21,7 +21,7 @@ function tempMFARegistration() { ...@@ -21,7 +21,7 @@ function tempMFARegistration() {
alert('Please insert an unregistered smart card before proceeding. Ensure it is the only smart card plugged in.') alert('Please insert an unregistered smart card before proceeding. Ensure it is the only smart card plugged in.')
checkSmartCard() checkSmartCard()
//Grab the unregistered smart card mapping to be added //Grab the unregistered smart card mapping to be added
var entry = execSync(`echo ${uid}\" | cat ${path} - | tr '\n' ' ' | bash`, (error, stdout, stderr) => {}) var entry = execSync(`echo "$(pkcs15-tool -r 1 --rfc4716 2>/dev/null | openssl x509 -noout -fingerprint -sha1 -inform pem | grep -Po '(?<==).*(?=$)') -> ${uid}"`, (error, stdout, stderr) => {})
alert('Please remove the unregistered smart card and then insert a registered smart card. Ensure it is the only smart card plugged in.') alert('Please remove the unregistered smart card and then insert a registered smart card. Ensure it is the only smart card plugged in.')
checkSmartCard() checkSmartCard()
execSync(`pkexec echo ${entry} >> /etc/pam_pkcs11/digest_mapping`, () => {}) execSync(`pkexec echo ${entry} >> /etc/pam_pkcs11/digest_mapping`, () => {})
......
#!/bin/bash
echo "$(pkcs15-tool -r 1 --rfc4716 2>/dev/null | openssl x509 -noout -fingerprint -sha1 -inform pem | grep -Po '(?<==).*(?=$)') ->
...@@ -6,7 +6,7 @@ if [[ ${CI_COMMIT_REF_NAME} == 'master' ]]; then ...@@ -6,7 +6,7 @@ if [[ ${CI_COMMIT_REF_NAME} == 'master' ]]; then
else else
BRANCH="-${CI_COMMIT_REF_NAME}" BRANCH="-${CI_COMMIT_REF_NAME}"
fi fi
VERSION_NUMBER='1.3.3' VERSION_NUMBER='1.3.4'
wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -ivh epel-release-latest-7.noarch.rpm sudo rpm -ivh epel-release-latest-7.noarch.rpm
sudo yum -y install nodejs npm ruby-devel gcc make rpm-build rubygems sudo yum -y install nodejs npm ruby-devel gcc make rpm-build rubygems
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment