From e2c92900300604c000af86008dad086527a04345 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Wed, 27 Oct 2010 00:43:02 +0200 Subject: [PATCH] Debian: Install default /etc/pam.d/ngircd allowing all logins This is required for backwards compatibility when installing the -full or -full-dbg package variant: PAM is enabled now but no configuration present, so all login attempts would be denied ... Creating /etc/pam.d/ngircd including "auth required pam_permit.so" restores the old behaviour of allowing all connections. --- contrib/Debian/Makefile.am | 4 ++-- contrib/Debian/changelog | 7 +++++++ contrib/Debian/ngircd.pam | 4 ++++ contrib/Debian/rules | 4 ++++ 4 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 contrib/Debian/ngircd.pam diff --git a/contrib/Debian/Makefile.am b/contrib/Debian/Makefile.am index b20da998..dd7c7534 100644 --- a/contrib/Debian/Makefile.am +++ b/contrib/Debian/Makefile.am @@ -1,6 +1,6 @@ # # ngIRCd -- The Next Generation IRC Daemon -# Copyright (c)2001-2009 Alexander Barton (alex@barton.de) +# Copyright (c)2001-2010 Alexander Barton (alex@barton.de) # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -10,7 +10,7 @@ # EXTRA_DIST = rules changelog compat control copyright \ - ngircd.init ngircd.default ngircd.postinst + ngircd.init ngircd.default ngircd.pam ngircd.postinst maintainer-clean-local: rm -f Makefile Makefile.in diff --git a/contrib/Debian/changelog b/contrib/Debian/changelog index f81854c2..395c17a1 100644 --- a/contrib/Debian/changelog +++ b/contrib/Debian/changelog @@ -1,3 +1,10 @@ +ngircd (17~rc2-0ab2) unstable; urgency=low + + * Install /etc/pam.d/ngircd including "auth required pam_permit.so" when + installing -full or -full-dbg variant to keep backwards compatibility. + + -- Alexander Barton Tue, 26 Oct 2010 23:34:56 +0200 + ngircd (17~rc2-0ab1) unstable; urgency=low * New "upstream" release candidate 2 for ngIRCd Release 17. diff --git a/contrib/Debian/ngircd.pam b/contrib/Debian/ngircd.pam new file mode 100644 index 00000000..4468e56d --- /dev/null +++ b/contrib/Debian/ngircd.pam @@ -0,0 +1,4 @@ +# /etc/pam.d/ngircd + +# allow all connections to ngIRCd +auth required pam_permit.so diff --git a/contrib/Debian/rules b/contrib/Debian/rules index 25f48287..868a0425 100755 --- a/contrib/Debian/rules +++ b/contrib/Debian/rules @@ -163,6 +163,8 @@ install-ngircd-full: build-ngircd-full sed -e "s/;PidFile = \/var\/run\/ngircd\/ngircd.pid/PidFile = \/var\/run\/ircd\/ngircd.pid/g" \ >$(CURDIR)/debian/ngircd-full/etc/ngircd/ngircd.conf touch $(CURDIR)/debian/ngircd-full/etc/ngircd/ngircd.motd + mkdir -p $(CURDIR)/debian/ngircd-full/etc/pam.d + cp $(CURDIR)/debian/ngircd.pam $(CURDIR)/debian/ngircd-full/etc/pam.d/ngircd install-ngircd-full-dbg: build-ngircd-full-dbg dh_testdir @@ -183,6 +185,8 @@ install-ngircd-full-dbg: build-ngircd-full-dbg sed -e "s/;PidFile = \/var\/run\/ngircd\/ngircd.pid/PidFile = \/var\/run\/ircd\/ngircd.pid/g" \ >$(CURDIR)/debian/ngircd-full-dbg/etc/ngircd/ngircd.conf touch $(CURDIR)/debian/ngircd-full-dbg/etc/ngircd/ngircd.motd + mkdir -p $(CURDIR)/debian/ngircd-full-dbg/etc/pam.d + cp $(CURDIR)/debian/ngircd.pam $(CURDIR)/debian/ngircd-full-dbg/etc/pam.d/ngircd # Build architecture-independent files here. binary-indep: