* [PATCH 0/1] Fix passwordless logins with pam enabled
@ 2014-03-21 16:31 Paul Eggleton
2014-03-21 16:31 ` [PATCH 1/1] classes/image: disable pam nullok_secure with debug-tweaks Paul Eggleton
0 siblings, 1 reply; 2+ messages in thread
From: Paul Eggleton @ 2014-03-21 16:31 UTC (permalink / raw)
To: openembedded-core
The following change since commit eb53ae4a5702dbd65b6e340bbd3ae4566157c081:
gnome-doc-utils: removed gconf inheritance (2014-03-21 12:05:33 +0000)
is available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib paule/pam-nullok
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/pam-nullok
Paul Eggleton (1):
classes/image: disable pam nullok_secure with debug-tweaks
meta/classes/image.bbclass | 4 ++++
1 file changed, 4 insertions(+)
--
1.8.5.3
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] classes/image: disable pam nullok_secure with debug-tweaks
2014-03-21 16:31 [PATCH 0/1] Fix passwordless logins with pam enabled Paul Eggleton
@ 2014-03-21 16:31 ` Paul Eggleton
0 siblings, 0 replies; 2+ messages in thread
From: Paul Eggleton @ 2014-03-21 16:31 UTC (permalink / raw)
To: openembedded-core
If you want passwordless logins to work with pam enabled, then you can't
have "nullok_secure" enabled on pam_unix entries. Add some
postprocessing to change these to "nullok" when debug-tweaks is in
IMAGE_FEATURES, in order to make passwordless logins with PAM work
again.
Fixes [YOCTO #5973].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
meta/classes/image.bbclass | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 9a04288..3436624 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -298,6 +298,10 @@ ssh_allow_empty_password () {
printf '\nDROPBEAR_EXTRA_ARGS="-B"\n' >> ${IMAGE_ROOTFS}${sysconfdir}/default/dropbear
fi
fi
+
+ if [ -d ${IMAGE_ROOTFS}${sysconfdir}/pam.d ] ; then
+ sed -i 's/nullok_secure/nullok/' ${IMAGE_ROOTFS}${sysconfdir}/pam.d/*
+ fi
}
# Enable postinst logging if debug-tweaks is enabled
--
1.8.5.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-21 16:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-21 16:31 [PATCH 0/1] Fix passwordless logins with pam enabled Paul Eggleton
2014-03-21 16:31 ` [PATCH 1/1] classes/image: disable pam nullok_secure with debug-tweaks Paul Eggleton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox