Re: Encrypting passwords with AS
Re: Encrypting passwords with AS
- Subject: Re: Encrypting passwords with AS
- From: webguide <email@hidden>
- Date: Fri, 07 Feb 2003 07:47:59 +1100
G'day Paul
>
How about posting the shell script you're using? That would make it
>
quite a bit easier to help you with implimenting a 'do shell script'
>
call.
By way of explanation, there are two components to setting up .htaccess
files. There's the .htaccess file itself and then a separate encrypted
.htpasswd file. I'm using a shell script for the password file (and
encryption) but vanilla AS for the access file.
The relevant AS portion is this:
--create the necessary .htaccess information
set writeString to "AuthName " & "\"" & myclient & " private folder\"
AuthType Basic
AuthUserfile /library/webserver/.htpasswd
Options Indexes FollowSymLinks MultiViews
fancyindexing on
require user" & myusername
The problem is that this snippet contains Mac line endings and it requires
Unix line endings. I tried the obvious (saving as *nix and copying it into
the script) but it reverts back to mac endings.
I'm open to any suggestions.
Cheers
kim
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.