2 A cgi to allow users to change their passwords via a web browser.
5 Drop this into a cgi-enabled directory on your webserver.
6 Edit it and change the CONFIGURATION section to suit your environment.
7 READ THE NOTES SECTION.
9 Notes: This script will run as the user who runs your web server. So, to invoke the smbpasswd call, you must implement sudo.
10 Example of /etc/sudoers:
12 # Host alias specification
13 # User alias specification
14 User_Alias PASSWD = apache
15 # Cmnd alias specification
16 Cmnd_Alias PASSWD = /usr/bin/smbpasswd
17 # User privilege specification
19 PASSWD ALL= NOPASSWD: PASSWD
21 This concept is probably very insecure and broken. That is why this is a 0.1 release. :)
24 Feel free to drop me suggestions. I am a perl learner so I am always open to suggestions.
27 tdavis@approbation.org