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:

WebCatalog + WebMerchant 2.1 for Windows released (1998) [WebDNA] Finding duplicate emails in a large database (2016) ConverChars (1999) [WebDNA] Some code inside a large loops fail ... but why? (2010) Running _every_ page through WebCat-error.html (1997) Re:What file? (1997) [ShowCart] and GET vs. POST (1997) Exclamation point (1997) [WebDNA] can webdna set the email header (w/[sendmail]) that controls where bounced email goes? (2012) AD Error Msg (1997) [shownext max (1997) [Request] - SQL Search (2000) problems with 2 tags shakur (1997) WebCat 4.0 (2000) Attn: Bug in GeneralStore example b15 (1997) Giving out error pages (1997) Pirated WebCat? NOT... (2003) Summing fields in a search/founditems context?? (2000) Help HTML reader (1999) PCS Emailer's role ? (1997)