mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 01:40:27 +00:00
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.
This commit is contained in:
parent
5edde9a760
commit
e2c9290030
@ -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
|
||||
|
@ -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 <alex@barton.de> Tue, 26 Oct 2010 23:34:56 +0200
|
||||
|
||||
ngircd (17~rc2-0ab1) unstable; urgency=low
|
||||
|
||||
* New "upstream" release candidate 2 for ngIRCd Release 17.
|
||||
|
4
contrib/Debian/ngircd.pam
Normal file
4
contrib/Debian/ngircd.pam
Normal file
@ -0,0 +1,4 @@
|
||||
# /etc/pam.d/ngircd
|
||||
|
||||
# allow all connections to ngIRCd
|
||||
auth required pam_permit.so
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user