Am Mittwoch, 24. Januar 2001 00:16 schrieben Sie:
> ----- Original Message -----
> From: "Michael Wyraz" <[EMAIL PROTECTED]>
>
> > On Tue, 23 Jan 2001 12:02:43 -0500, Serge Knystautas wrote:
> > maybe there should be a possibility to make both. aliases and long names.
>
> if you have (like we do)
>
> > some hundred domains, it's almost impossible to mak an alias for each
> > user
> >
> :-/
>
> Sorry, I meant aliases for the domain names. So microsoft.com is aliased
> to ...ms and apache.org is aliased to .apache. Then [EMAIL PROTECTED]
> becomes mile.ms (etc..).
>
> The delimiter character seems to be something we have to resolve. I think
> a single dot would work (that's what we use), but it's harder to prevent
> username collisions then.
i think using a single dot will cause some problems. it will be impossible to
decide wheather [EMAIL PROTECTED] or [EMAIL PROTECTED] is meant with
"user.name.domain.com"
>
> > i thougth the whole day about that problem. my conclusion is, that we
> > don't need to make a
> > user rep. for each domain if the domain could be part of the username.
> > more for that written below...
>
> Sounds good, although I think it would be nice if we could.
>
> > here my thougths for that (and some questions for implementing):
> >
> > 1. UsersRepository
> > a username consists of "[EMAIL PROTECTED]". there are special VHost User
> > Repositories (how can be set which UserRepository classes are known by
> > james? i found no config option for that?). or the existing UserRep's are
> >changed
> > (can UserRepositories, Mailets and Matchers access the configuration?).
> > I Think it's better to modify the existing for file rep. and make a new
> > for database rep.
> > This change includes:
> > * a new Configuration Parameter "EnableVirtualHosting"
> > * a parameter for specifying valid seperator chars/strings between the
> > username and the host part
> > * the new ep. implements a new column containing the domain part of the
> > username.
> > *if virtual hosting is enabled the method "public boolean test(String
> > name, Object attributes)" of the UsersRepository
> > matches all variants of username+valid seperator+host
>
> I don't think you want to change UsersRepository... you just want to change
> the way the local account(s) user repository works. What about the idea of
> a "roll-up" repository... a user repository that wraps multiple other user
> repositories? I'm just making this up as I go.
this would be a good idea for file repositories. a database repository could
implement this much more easy (using 3 columns - login, password, domain).
> > but there's another thing that would be usefull in this case:
> > Domains (aka ServerNames) are currently configured in the xml config.
> > for virtual domains it would be much better if there were a (maybe
> > aditional) DomainsRepository
> > which could be implemented with town. So there's no need to restart for
> > adding a domain and it's users.
>
> I'm not sure exactly how this would work. Could you explain some more?
>
currently all domains handled by james are configured in the xml-config. if i
want to add a new domain, i have to change the config and to restart the
server. i thing a mailet (e.g. IsReceipientLocal) askes the config for a list
of valid domains.
my intention was to add a database repository that contains the list of valid
domains. if a class requests this list, it is loaded from the database. so
you could simply add a domain by inserting a new row in the database.
michael.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives: <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]