Code Review
/
pti
/
rtp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
pam-config: add pam_deny module for password
[pti/rtp.git]
/
meta-stx
/
recipes-core
/
stx-config-files
/
config-files_1.0.0.bb
diff --git
a/meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb
b/meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb
index
e8f0b93
..
82d1092
100644
(file)
--- a/
meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb
+++ b/
meta-stx/recipes-core/stx-config-files/config-files_1.0.0.bb
@@
-580,6
+580,9
@@
pkg_postinst_ontarget_pam-config() {
cp -f ${datadir}/starlingx/stx.system-auth ${sysconfdir}/pam.d/system-auth
cp -f ${datadir}/starlingx/sshd.pam ${sysconfdir}/pam.d/sshd
cp -f ${datadir}/starlingx/stx.system-auth ${sysconfdir}/pam.d/system-auth
cp -f ${datadir}/starlingx/sshd.pam ${sysconfdir}/pam.d/sshd
+
+ sed -i -e '/password .*pam_ldap.so/,/session .*revoke/ s/^$/password required pam_deny.so\n/g' \
+ ${sysconfdir}/pam.d/system-auth
}
pkg_postinst_ontarget_rabbitmq-server-config() {
}
pkg_postinst_ontarget_rabbitmq-server-config() {