1
0

PAM.txt 1.5 KB

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