Blame
Date:
Fri Jan 1 14:38:26 2021 UTC
Message:
2021! :-) Happy new year!
01
2010-07-12
alex
02
2010-07-12
alex
ngIRCd - Next Generation IRC Server
03
2013-09-18
alex
http://ngircd.barton.de/
04
2010-07-12
alex
05
2013-09-18
alex
(c)2001-2013 Alexander Barton and Contributors.
06
2010-07-12
alex
ngIRCd is free software and published under the
07
2010-07-12
alex
terms of the GNU General Public License.
08
2010-07-12
alex
09
2010-07-12
alex
-- PAM.txt --
10
2010-07-12
alex
11
2010-07-12
alex
12
2010-07-12
alex
ngIRCd can optionally be compiled to use PAM, the Pluggable Authentication
13
2010-07-12
alex
Modules library, for user authentication. When compiled with PAM support,
14
2010-07-12
alex
ngIRCd will authenticate all users connecting to the daemon using the
15
2010-07-12
alex
configured PAM modules in an asynchronous child process.
16
2010-07-12
alex
17
2010-07-12
alex
To enable PAM, you have to pass the command line parameter "--with-pam" to
18
2010-07-12
alex
the "configure" script. Please see the PAM documentation ("man 7 pam") for
19
2010-07-12
alex
details and information about configuring PAM and its individual modules.
20
2010-07-12
alex
21
2010-07-12
alex
A very simple -- and quite useless ;-) -- example would be:
22
2010-07-12
alex
23
2010-07-12
alex
/etc/pam.d/ngircd:
24
2010-07-12
alex
auth required pam_debug.so
25
2010-07-12
alex
26
2010-07-12
alex
Here the "pam_debug" module will be called each time a client connects to
27
2010-07-12
alex
the ngIRCd and has sent its PASS, NICK, and USER commands.
28
2010-07-12
alex
29
2016-10-24
alex
The PAM library used by the ngIRCd daemon must be able to access its
30
2016-10-24
alex
configuration file, so don't forget to check permissions and run something
31
2016-10-24
alex
like this: "chmod 644 /etc/pam.d/ngircd".
32
2016-10-24
alex
33
2010-07-12
alex
Please note ONE VERY IMPORTANT THING:
34
2010-07-12
alex
35
2010-07-12
alex
All the PAM modules are executed with the privileges of the user ngIRCd
36
2010-07-12
alex
is running as. Therefore a lot of PAM modules aren't working as expected,
37
2010-07-12
alex
because they need root privileges ("pam_unix", for example)!
38
2010-07-12
alex
Only PAM modules not(!) requiring root privileges (such as "pam_pgsql",
39
2010-07-12
alex
"pam_mysql", "pam_opendirectory" ...) can be used in conjunction with ngIRCd.
40
2013-09-18
alex
41
2013-09-18
alex
More Examples:
42
2013-09-18
alex
43
2013-09-18
alex
* Use an own "password file" for ngIRCd:
44
2013-09-18
alex
45
2013-09-18
alex
Note: you can use the htpasswd(1) utility of Apache to manage password
46
2013-09-18
alex
files used by pam_pwdfile, see "man htpasswd"!
47
2013-09-18
alex
48
2013-09-18
alex
/etc/pam.d/ngircd:
49
2013-09-18
alex
auth required pam_pwdfile.so pwdfile=/etc/ngircd/ngircd.passwd
IRCNow