3 Acts as auth program for the "external" authentication module
4 http://code.google.com/p/mod-auth-external/
6 It makes sure that the given user name exists at the system
7 (with a UID > 1000) and that the password corresponds to
8 a specific one given in this file.
12 PASSWORD = 'hygCithOrs5'
15 # ------------------------------------------------------------
21 # Get provided username and password
22 username = os.environ.get('USER')
23 password = os.environ.get('PASS')
26 # We want to have a existing user ...
28 user_info = pwd.getpwnam(username)
33 if user_info.pw_uid < 1000:
34 # the system user has to have a UID above 1000
38 # ... and the password has to be as given above
39 if password != PASSWORD: