| |
---|
| | |
---|
| | # 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": |
---|
| |
---|
| | |