I am wondering if it is possible to create an .htpasswd file using webdna.<=br>
I have a shell script I am using now - but it is not ideal.
This is what I tried - and doesn't work :)
Searching a database of users and then writing the file:
[WriteFile secure=3DF&file=3Dhtpasswd][founditems][email_address]:[encr=ypt
method=3DBase64][this_password][/encrypt]
[/founditems][/writefile]
Apache server complains about the file and I can see the Base64 encryption<=br>is not correct (thought I would give it a shot!!).
The shell script:
[WriteFile secure=3DF&file=3Dhtpasswd][founditems][shell]htpasswd -nb[email_address] [this_password][/shell][/founditems][/writefile]
The shell script unfortunately adds two carriage returns each time - not
sure how to stop it from doing that. The shell script does work though.
Once the file is written - I delete the original and move the new one into<=br>place.
I would like to be able to do this without the shell script.
Is it possible?
--
Gary
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us&g=t;.
To unsubscribe, E-mail to: <talk=-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us
|
I am wondering if it is possible to create an .htpasswd file using webdna.<=br>
I have a shell script I am using now - but it is not ideal.
This is what I tried - and doesn't work :)
Searching a database of users and then writing the file:
[WriteFile secure=3DF&file=3Dhtpasswd][founditems][email_address]:[encr=ypt
method=3DBase64][this_password][/encrypt]
[/founditems][/writefile]
Apache server complains about the file and I can see the Base64 encryption<=br>is not correct (thought I would give it a shot!!).
The shell script:
[WriteFile secure=3DF&file=3Dhtpasswd][founditems][shell]htpasswd -nb[email_address] [this_password][/shell][/founditems][/writefile]
The shell script unfortunately adds two carriage returns each time - not
sure how to stop it from doing that. The shell script does work though.
Once the file is written - I delete the original and move the new one into<=br>place.
I would like to be able to do this without the shell script.
Is it possible?
--
Gary
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us&g=t;.
To unsubscribe, E-mail to: <talk=-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...