[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:

Requiring that certain fields be completed (1997) IIS4/IIS3 and WebCatalog registry settings (1998) bypassing typo's (1998) [WebDNA] Webdna 6.2 on OSX 10.10 (2017) New Mac Emailer... (1997) [WebDNA] Friday's.. WIP thread (2009) dos command not working the same as does at prompt? (1998) [WebDNA] Apple Server (2013) RE: [WebDNA] Rack Mount Server(s) Available (2009) Tracking (2004) WebCat2 - [include] tags (1997) New Calendar Snippet (1998) WebCatalog Affiliates Program Announced -- Share the (2000) Fwd: Handling Charges (1999) quantity minimum problem (1997) [WebDNA] Emailer breaking format (2015) strange result? (2003) Help name our technology! (1997) Help! WebCat install problems... (2000) WebCat2 several catalogs? (1997)