Advertisement
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: |
def createpassword(config, options, username):
out = file( config["logs_dir"] + "/httpd.log", "a+" )
passwd = config["apache_dir"] + "/bin/htpasswd"
passwd_dir = config["passwd_dir"] + "/.htpasswd"
args = [passwd, "-c", passwd_dir, username]
proc = Popen(args,env=os.environ, stdin=PIPE, stdout=PIPE, stderr=STDOUT )
log( "create passwd args:", args )
return proc
|
|
Loading Advertisement... |