[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qmail-ldap
Subject:    Re: Virtual Domains
From:       Turbo Fredriksson <turbo () bayour ! com>
Date:       2000-11-23 9:08:03
[Download RAW message or body]

Quoting Colin Horsington <ColinH@flow.com.au>:

> LDAP and vitual domain Questions. How should the LDAP directory be
> structured for multiple virtual domains?

[/me i getting tired of answering this same question over and over and over and ...]

Read the manual:

        LDAP_MAILALTERNATE (default: "mailAlternateAddress")
         Secondary (alias) mailaddresses for the same user
         Example: jd@foo.bar
         Note: multifield

> How does the pop3_auth pass the information to the LDAP lookup. Typically to
> log in to a vitual domain as a
> particular user the combination will be user @ domain. Does the domain part
> get passed through to the LDAP look up?

This however is trickier (this is the question that made me answer your mail
in the first place, since it isn't covered in the manual).

My solution that I came up with, which I'm NOT happy with, but I could see
no other alternative. It's not nice, but...

uid=<username.domainname>,ou=Users,o=....

That is, exchange the '@' in the email for a dot. So my (work) email is

        turbo@air2.net

but my user id is 'turbo.air2.net'... Since we have shell access to some
users (amongst others, me :) and PAM (actually it seems like it's the
virtual console/login that are the problem) can't handle the '@' character,
we can't use that, hence the dot instead...

My original idea was that for POP toasters only, login with the '@' in place,
but I couldn't get that to work either. Can't remember why, and it might have
been fixed in the last 6 months, but I'm running live now, so don't care that
much any more...

No users have complained about the strange login name...


uid=turbo.air2.net,ou=Users,o=....
mail=turbo@air2.net
mailalternateaddress=turbo@modular-telecom.se
mailalternateaddress=security@air2.net
mailalternateaddress=....
[etc]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic