[WebDNA] Apache .htpasswd

This WebDNA talk-list message is from

2014


It keeps the original formatting.
numero = 111238
interpreted = N
texte = I am wondering if it is possible to create an .htpasswd file using webdna. 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=F&file=htpasswd][founditems][email_address]:[encrypt method=Base64][this_password][/encrypt] [/founditems][/writefile] Apache server complains about the file and I can see the Base64 encryption is not correct (thought I would give it a shot!!). The shell script: [WriteFile secure=F&file=htpasswd][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 place. I would like to be able to do this without the shell script. Is it possible? -- Gary Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Apache .htpasswd (Tom Duke 2014)
  2. Re: [WebDNA] Apache .htpasswd (Donovan Brooke 2014)
  3. Re: [WebDNA] Apache .htpasswd (Dan Strong 2014)
  4. [WebDNA] Apache .htpasswd ("IBS Ltd." 2014)
I am wondering if it is possible to create an .htpasswd file using webdna. 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=F&file=htpasswd][founditems][email_address]:[encrypt method=Base64][this_password][/encrypt] [/founditems][/writefile] Apache server complains about the file and I can see the Base64 encryption is not correct (thought I would give it a shot!!). The shell script: [WriteFile secure=F&file=htpasswd][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 place. I would like to be able to do this without the shell script. Is it possible? -- Gary "IBS Ltd."

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

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...

Related Readings:

Emailer (WebCat2) (1997) Mozilla/4. and Browser Info.txt (1997) totals (1997) 1st Comparison inside [fileinfo] broken. = bug? (2004) [ot] New List. Was: Webcat no longer supported? (2006) WTB WEBDNA Version 4.5 for OS X (2003) Alternating colors (1997) Merging databases (1997) FlushDatabase Suggestion (1998) form data submission gets truncated (1997) (2001) Problems passing [SKU] with $Replace in 2.0 (1997) Problem (1997) [WebDNA] Problems ... (2013) carriage returns in data (1997) WebCatalog Upgrade Pricing? (1997) Problem (1997) WebCat2 as a chat server? (1997) Formulas.db + Users.db (1997) Before I Can Begin . . . (1998)