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:

sort without the or a (1998) Tea Room trouble (1997) I think WebDNA-Talk died ... :( (1997) format problem on NT? (1997) customizing the color of user's pages (1997) Javascript/WebCatalog form population (2001) remove line item (2000) Creating comums (1998) WebCat2.0 [format thousands .0f] no go (1997) Error with [applescript] (1999) RE: combining strings (1997) quit sending me mail!!!!! (1999) Can you identify the [body]? (1999) Serving images from databases (1998) multiple product databases (1997) a little OT (2001) Am I going senile? (Price recalc based on quantity) (1997) WebCatalog for UNIX Released ( was How true is this? ) (1999) Merging databases (1997) upgrading (1997)