From: Daira Hopwood Date: Thu, 5 Sep 2013 16:39:34 +0000 (+0100) Subject: Tue Jan 24 20:31:26 GMT 2012 Brian Warner X-Git-Url: https://git.rkrishnan.org/?a=commitdiff_plain;h=648663e30b5a14139e32454358380b57416c9cc6;p=tahoe-lafs%2Ftahoe-lafs.git Tue Jan 24 20:31:26 GMT 2012 Brian Warner * Updated accounts.url directive per warner's suggestions --- diff --git a/docs/frontends/FTP-and-SFTP.rst b/docs/frontends/FTP-and-SFTP.rst index ed52e745..18917a2d 100644 --- a/docs/frontends/FTP-and-SFTP.rst +++ b/docs/frontends/FTP-and-SFTP.rst @@ -76,15 +76,28 @@ the next sections. accounts.url Directive ====================== -The accounts.url directive should point to a secure, preferably -localhost-only service. This makes it harder for attackers to brute force -the password or use DNS poisoning to cause the Tahoe-LAFS gateway to talk -with the wrong server, thereby revealing the username and passwords. - -Tahoe-LAFS will send the credentials, email address and password to the -URI specified in the accounts.url directive. If the credentials are correct, -the server will return a rootcap string. Otherwise, it returns the string -"0" which means bad username and/or password. +The accounts.url directive allows access requests to be controlled by an +HTTP-based login service, useful for centralized deployments. This was +used by AllMyData to provide web-based file access, where the service +used a simple PHP script and database lookups to map an account email +address and password into a tahoe rootcap. The service will receive a +multipart/form-data POST, just like one created with a
and +fields, with three parameters: + +* action: "authenticate" (this is a static string, for backwards + compatibility with the old AllMyData authentication service) +* email: USERNAME (Tahoe has no notion of email addresses, but the + authentication service uses them as account names, so the interface + presents this argument as "email" rather than "username"). +* passwd: PASSWORD + +And should return a single string that either contains a Tahoe rootcap +(URI:DIR2:...), or "0" to indicate a login failure. + +Tahoe-LAFS recommends the service be secure, preferably localhost-only. This +makes it harder for attackers to brute force the password or use DNS +poisoning to cause the Tahoe-LAFS gateway to talk with the wrong server, +thereby revealing the usernames and passwords. Configuring FTP Access ======================