Changed fake GID/UID used when including external file entries to 100000.
Created the BOGUSID variable to hold this value explicitly to make it easy
for the user to change it.
1 parent e714fd0 commit 6ac50c86134e3664e6fd8fdaf5da455de116c63a
@root root authored on 5 Apr 2005
Showing 1 changed file
View
7
mkapachepw.py
 
# Program Information
 
PROGNAME = "mkapachepw"
RCSID = "$Id: mkapachepw.py,v 1.112 2005/04/05 21:56:30 root Exp $"
RCSID = "$Id: mkapachepw.py,v 1.113 2005/04/05 23:08:30 root Exp $"
VERSION = RCSID.split()[2]
 
# Copyright Information
 
#----------------------------------------------------------#
# Variables User Might Change #
#----------------------------------------------------------#
 
BOGUSID = 100000 # Fake GID/UID used when external files
GRFILE = "./.htgroups" # Group output file
PWFILE = "./.htpasswords" # Password output file
STARTUID = 100 # User IDs below this ignored
STARTGID = 100 # Group IDS below this ignored
sys.exit(1)
if opt == "-I":
temp = ReadFile(val)
for entry in temp:
groups[entry[0]] = [65535, entry[1], False]
groups[entry[0]] = [BOGUSID, entry[1], False]
if opt == "-i":
temp = ReadFile(val)
for entry in temp:
users[entry[0]] = [65535, entry[1][0], False]
users[entry[0]] = [BOGUSID, entry[1][0], False]
if opt == "-h":
Usage()
sys.exit(0)
if opt == "-v":