From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,7746d52da68b7f18,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 2001-12-06 18:50:09 PST Return-Path: Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cola.stump.algebra.com!robomod!not-for-mail X-COLA-Policy: http://stump.algebra.com/~cola X-COLA-Info-1: Send submissions to cola@stump.algebra.com X-COLA-Info-2: Send complaints to cola-admin@stump.algebra.com X-Comment: moderators do not necessarily agree or disagree with this article. X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) Date: Thu, 6 Dec 2001 20:48:06 CST X-Authentication-Warning: ns.the-ecorp.com: Host staf-pc [10.67.50.137] claimed to be localhost.stafnet.be From: staf wagemakers Subject: cgipaf 1.0rc4 Message-ID: <20011205200309.A3002@f2s.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.22i Newsgroups: comp.os.linux.announce X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUAPBAt5iFvAtx2nXvNAQFARgIAtfLGPqSYNLA0dzBgtMlNGp7bf/2i+j5z Oj8mjC8fnphuzY1y89RLbHZTm5FVP9Hy3W+q1YnQshdX1vdcD9Lh9w== =b304 Xref: archiver1.google.com comp.os.linux.announce:1523 "cgipaf" allows users to change their un*x Password, Autoreply and mail Forwarding by a web interface. cgipaf is available at http://www.stafwag.f2s.com/cgipaf REQUIREMENTS + a Un*x server (only tested with Debian gnu/Linux woody & potato and solaris 8) + a mailserver that uses procmail + webserver + gcc, ndbm or gdbm OVERVIEW cgipaf is a combination of three cgi programs: passwd.cgi: allow users to update their password viewmailcfg.cgi: allow users to view their current mail configuration. mailcfg.cgi: update the mail configuration All programs use PAM for user authentication, systems without PAM are only supported if they use the standard password file location (/etc/passwd /etc/shadow) and the standard crypt function to encrypt the passwords. If a password is changed it is possible to run a script to update SAMBA passwords, NIS configuration, etc. The mail configuration is done by procmail, mailcfg.cgi creates a .procmailrc in the user's home directory. If autoreply is enabled the autoreply message is stored in ~/vacations.txt. When a user enables mail forwarding the user can choose to keep the messages. For user authentication viewmailcfg.cgi creates a cookie, this cookie is stored in the accessdb. mailcfg.cgi reads the cookie out the accessdb and compares it with the cookie send by the users browser. Users with too many invalid logins can be locked. The minimum and maximum uid can be set in the configuration file, so you can specify a range of uid's that are allowed to use cgipaf. You can specify html files with a few PHP extensions for the login screen and error messages. It's possible to use a redirect for the error messages, instead of plain html files. WHAT IS NEW + new pam_service directive, you can change the pam service name. + added test for gdbm/ndbm.h header file + fixed: mailcfg.cgi failed, if it couldn't determine the domain name. + new forwarding method to avoid mail looping + fixed: it wasn't possible to use special characters ( $ space ) as the loginname / password. + fixed: run_success, run_locked didn't always work + fixed: typo the sample samba passwd script the configuration file & documentation the second %{password} have to terminated with a "\n". + fixed: mailcfg.cgi failed, if another cookie exists + fixed: mailcfg.cgi crashed if the syslog directive wasn't set + fixed: setgid() failed because it was performed after setuid() cheers, -- Staf Wagemakers email : stafwag@f2s.com homepage : http://www.stafwag.f2s.com ########################################################################## # Send submissions for comp.os.linux.announce to: cola@stump.algebra.com # # PLEASE remember a short description of the software and the LOCATION. # # This group is archived at http://stump.algebra.com/~cola/ # ##########################################################################