summaryrefslogtreecommitdiff
path: root/examples/LDAP/smbldap-tools/cgi/README
blob: 7a4fc0c02b9a359b8cbc64e7bf856862b7fe5181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description:
	A cgi to allow users to change their passwords via a web browser.

Installation:
	Drop this into a cgi-enabled directory on your webserver.
	Edit it and change the CONFIGURATION section to suit your environment.
	READ THE NOTES SECTION.

Notes:	This script will run as the user who runs your web server. So, to invoke the smbpasswd call, you must implement sudo.
	Example of /etc/sudoers:

	# Host alias specification
	# User alias specification
	User_Alias     PASSWD = apache
	# Cmnd alias specification
	Cmnd_Alias     PASSWD   = /usr/bin/smbpasswd
	# User privilege specification
	root    ALL=(ALL) ALL
	PASSWD  ALL= NOPASSWD: PASSWD

	This concept is probably very insecure and broken. That is why this is a 0.1 release.  :)


Feel free to drop me suggestions.   I am a perl learner so I am always open to suggestions.

Terry Davis
tdavis@approbation.org