]> arthur.barton.de Git - ngircd-alex.git/blob - doc/PAM.txt
64bbc7b6abb9adb66eeb0a3c80e957341d470194
[ngircd-alex.git] / doc / PAM.txt
1
2                      ngIRCd - Next Generation IRC Server
3
4                         (c)2001-2010 Alexander Barton,
5                     alex@barton.de, http://www.barton.de/
6
7                ngIRCd is free software and published under the
8                    terms of the GNU General Public License.
9
10                                  -- PAM.txt --
11
12
13 ngIRCd can optionally be compiled to use PAM, the Pluggable Authentication
14 Modules library, for user authentication. When compiled with PAM support,
15 ngIRCd will authenticate all users connecting to the daemon using the
16 configured PAM modules in an asynchronous child process.
17
18 To enable PAM, you have to pass the command line parameter "--with-pam" to
19 the "configure" script. Please see the PAM documentation ("man 7 pam") for
20 details and information about configuring PAM and its individual modules.
21
22 A very simple -- and quite useless ;-) -- example would be:
23
24         /etc/pam.d/ngircd:
25           auth  required  pam_debug.so
26
27 Here the "pam_debug" module will be called each time a client connects to
28 the ngIRCd and has sent its PASS, NICK, and USER commands.
29
30 Please note ONE VERY IMPORTANT THING:
31
32 All the PAM modules are executed with the privileges of the user ngIRCd
33 is running as. Therefore a lot of PAM modules aren't working as expected,
34 because they need root privileges ("pam_unix", for example)!
35 Only PAM modules not(!) requiring root privileges (such as "pam_pgsql",
36 "pam_mysql", "pam_opendirectory" ...) can be used in conjunction with ngIRCd.