Re: [WebDNA] Apache .htpasswd

This WebDNA talk-list message is from

2014


It keeps the original formatting.
numero = 111240
interpreted = N
texte = This is a multi-part message in MIME format. ------=_SW_1198253628_1395258173_mpa= Content-Type: text/plain; charset=us-ascii; format=flowed [snip] > > > 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] "[encrypt method=APOP]" is WebDNA's md5 generator. It's been on our list to someday make an alias for "APOP" called "md5", which is a much better descriptor of the functionality. method=APOP works in the newer builds, as I believe we fixed a bug in this some time ago. > > 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. > The returns in [shell] are a bug in the current releases of the WebDNA. You can get rid of the ending white space using a number of other WebDNA tags.. [getchars trim=end..] or [middle endbefore=%0A etc.. Sincerely, Donovan ------=_SW_1198253628_1395258173_mpa= Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable [snip]

This is what I tried - and doesn't w= ork :)

Searching a database of users and then writing the file:
[WriteFile secure=3dF&file=3dhtpasswd][founditems][email_address]:[enc= rypt
method=3dBase64][this_password][/encrypt]
[/founditems][/writefil= e]

"[encrypt method=3dAPOP]" is WebDNA's md5 genera= tor. It's been on our list to someday make an alias for "APOP"
called "m= d5", which is a much better descriptor of the functionality.

method= =3dAPOP works in the newer builds, as I believe we fixed a bug in this some = time ago.
 
=
Apache server complains about the file and I can s= ee the Base64 encryption
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 carr= iage returns each time - not
sure how to stop it from doing that. The she= ll script does work though.

 
The returns i= n [shell] are a bug in the current releases of the WebDNA. You can get ridof the ending white space using a number of other WebDNA tags.. [getchars = trim=3dend..] or [middle endbefore=3d%0A  etc..


Sincerely,Donovan


------=_SW_1198253628_1395258173_mpa=-- 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)
This is a multi-part message in MIME format. ------=_SW_1198253628_1395258173_mpa= Content-Type: text/plain; charset=us-ascii; format=flowed [snip] > > > 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] "[encrypt method=APOP]" is WebDNA's md5 generator. It's been on our list to someday make an alias for "APOP" called "md5", which is a much better descriptor of the functionality. method=APOP works in the newer builds, as I believe we fixed a bug in this some time ago. > > 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. > The returns in [shell] are a bug in the current releases of the WebDNA. You can get rid of the ending white space using a number of other WebDNA tags.. [getchars trim=end..] or [middle endbefore=%0A etc.. Sincerely, Donovan ------=_SW_1198253628_1395258173_mpa= Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable [snip]

This is what I tried - and doesn't w= ork :)

Searching a database of users and then writing the file:
[WriteFile secure=3dF&file=3dhtpasswd][founditems][email_address]:[enc= rypt
method=3dBase64][this_password][/encrypt]
[/founditems][/writefil= e]

"[encrypt method=3dAPOP]" is WebDNA's md5 genera= tor. It's been on our list to someday make an alias for "APOP"
called "m= d5", which is a much better descriptor of the functionality.

method= =3dAPOP works in the newer builds, as I believe we fixed a bug in this some = time ago.
 
=
Apache server complains about the file and I can s= ee the Base64 encryption
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 carr= iage returns each time - not
sure how to stop it from doing that. The she= ll script does work though.

 
The returns i= n [shell] are a bug in the current releases of the WebDNA. You can get ridof the ending white space using a number of other WebDNA tags.. [getchars = trim=3dend..] or [middle endbefore=3d%0A  etc..


Sincerely,Donovan


------=_SW_1198253628_1395258173_mpa=-- Donovan Brooke

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:

Embedded [Search] Context Snippets (Very Useful) (1998) Permissions (2000) [WebDNA] [BULK] [middle] behavior (2020) Database Upload (2000) RE: Webcat 2.0.1b1 bug with IE 3.01/4.0p1 (1997) HELP WITH DATES (1997) Text data with spaces in them... (1997) remove.htm from result (2005) WebDNA 4.5 & iTools 7 (2003) What file? (1997) international time (1997) carriage returns in data (1997) Security (1998) Updating fields from different platforms (1998) Strange intermittent WebDNA problems Workaround (2008) WebCat2b15MacPlugin - [protect] (1997) WebCat2 - [format thousands] (1997) WCS Newbie question (1997) The Solution to RE: Unexceling (was I need a smart quote...) (1999) Re:Virtual hosting and webcatNT (1997)