We are also using this user_Domain  as a workaround but in case of
Dan question, he only need to know what is the "server name" to which
FTPserver is deployed... I would have it in my config  file and pass
it as an argument to your  custom UserManager.

  If you don't want to depend on  properties, I guess you can also
call InetAddress.getLocalHost()

Cheers,

 David

2011/3/25 Brad McEvoy <mina...@bradmcevoy.com>:
> Hi Daniel,
>
> I don't think there is any equivalent because FTP doesnt have the
> equivalent of the HTTP host header.
>
> But i've had the same with the milton FTP/Webdav connector (see
> http://milton.ettrema.com), and my solution is to allow users to enter a
> user name which includes the domain name in the form user#domain.com.
>
> I'd be interested to see if anyone knows of any better options.
>
> Cheers,
> Brad
>
> On Fri, 25 Mar 2011 14:48 -0400, "Daniel Cane"
> <daniel.c...@modernizingmedicine.com> wrote:
>> Greetings all. I’m developing a custom userManager and have impl all
>> wired
>> up. My question is from inside the authenticate() method I need to know
>> the
>> equivalent of request.getServerName() in order to correctly associate
>> which
>> domain the user is in. We partition our data by servername so that use a
>> user myusername FTPing to foo.myserver.com would be different from
>> myusername FTPing to bar.myserver.com. Basically, I just need the URL
>> prefix. Any thoughts as to how I might be able to get that info?
>>
>>
>>
>> I see that an Ftplet has access to session, but don’t see how to get at
>> this
>> frim the authenticate method location.
>>
>>
>>
>> Thanks in advance!
>>
>>
>>
>> Dan
>>
> --
>  Brad McEvoy
>  b...@bradmcevoy.com
>
>

Reply via email to