Following up on this older thread...  the attached new version of
vlogin should address this functionality (using sendmail-style
virtual user mapping when logging in to SM)

Let me know if there are problems,

Cheers,

   paul


---------------------
You're thinking slightly backwards, it's the other way around. In this
example:
[EMAIL PROTECTED]                john
[EMAIL PROTECTED]                joe
[EMAIL PROTECTED]                john2
[EMAIL PROTECTED]        john2
The user wouldn't log in as john (but can?), he would login as
[EMAIL PROTECTED] The plugin would read virtusertable, find the Email,
see that the account login as john, and use john and his password to
login to SM.

Same goes for [EMAIL PROTECTED] but the plugin would find that the login
is john2.

This plugin would need to run only if it sees an @ in the login. If it
doesn't, it's a normal login attempt.

In the case of both the error and the [EMAIL PROTECTED]
scenarios, the plugin would attempt to login, just as it would normally.
Whatever error would normally happen if [EMAIL PROTECTED] tried
to login from SM itself - a login error. It doesn't matter what's after
the Email address in virtusertable, try to login as the account just
after it. If it's an error, it's an error, as in:
ERROR
Unknown user or password incorrect.
Go to the login page

If it's a catchall account [@domain.com] it would throw a snag in it,
but depending on the plugin's power, would determine if
[EMAIL PROTECTED] isn't in virtusertable as-is, but there is a line in
it that starts with @domain.com, again, use the account after it. That's
the one thing in your scenario list that could complicate things, but
still seems extremely do-able.

In a nutshell -

1. Find the Email
2. Try to login as the account after it no matter what
3. If the address isn't in virtusertable, find the login that starts
with @domain.com and attempt step 2.

If a login errors, it errors. That's an SM thing, not a plugin thing.
The plugin just provides the login/password to SM's verification script,
just like the login page itself does normally.

-----Original Message-----
From: Alex @ Avantel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 13, 2002 1:21 PM
To: p dont think; 'Phil Iovino';
[EMAIL PROTECTED]
Subject: Re: [SM-USERS] Login / virtusertable


I'm not sure it's that simple.  If you use the example that provided in
the
original request;  user logs in as john , what would you like
squrrelmail to
do?  The login would have to become [EMAIL PROTECTED] to permit SM to
distinguish between the two choices.

ALso, virtusertable can point to [EMAIL PROTECTED] . And SM
should
do what?

The file is of the general form;

user@domain        localuser

but can also be

@domain                localuser        #anyuser goes to localuser
@domain2        error: "Error mesage"        #smtp server provides error
message
user@domain3        otheruser@domain4        #message is forwarded by
sendmail

alex

On November 13, 2002 12:30 pm, p dont think wrote:
> I might be able to take a quick stab at it if you can give me a sample

> of such a file (I don't use Sendmail).
>
> > -----Original Message-----
> > From: Phil Iovino [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, November 13, 2002 6:40 AM
> > To: 'p dont think'; [EMAIL PROTECTED]
> > Subject: RE: [SM-USERS] Login / virtusertable
> >
> > Anyone up for writing a plugin? I would think it'd be pretty simple.
>
> It
>
> > would consist of taking the value of the login field, finding the
>
> value
>
> > in a text file (/etc/mail/virtusertable), and using the login just
>
> after
>
> > it. I'm really surprised there's not a plugin for that already. Lots

> > still use Sendmail.
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]] On Behalf Of

> > p dont think
> > Sent: Tuesday, November 12, 2002 12:08 PM
> > To: 'Phil Iovino'; [EMAIL PROTECTED]
> > Subject: RE: [SM-USERS] Login / virtusertable
> >
> >
> > Ouch.  It would seem to me that a plugin would need to have access
> > to your virtual users table and be able to find the correct mapping
>
> itself
>
> > - or make a request to sendmail for such information.  There isn't a
>
> way
>
> > that I am aware of that you can do this with vanilla SM.
> >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED]] On Behalf
> > > Of
> >
> > Phil
> >
> > > Iovino
> > > Sent: Tuesday, November 12, 2002 5:34 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [SM-USERS] Login / virtusertable
> > >
> > > Is it possible to allow logins by Email address instead of POP
>
> login?
>
> > > I'm running Sendmail and have users in virtusertable:
> > >
> > > --
> > > [EMAIL PROTECTED]                john
> > > [EMAIL PROTECTED]                joe
> > >
> > > [EMAIL PROTECTED]                john2
> > > [EMAIL PROTECTED]        john2
> > > --
> > >
> > > I'd like for SM to "figure out" that the login for
> > > [EMAIL PROTECTED] is actually logging in with the john2 POP
> > > account. I know this is fairly possible with qmail/postfix, but is
>
> it
>
> > > possible with Sendmail and virtusertable?
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This sf.net email is sponsored by:ThinkGeek
> > > Welcome to geek heaven.
> > > http://thinkgeek.com/sf
> > > --
> > > squirrelmail-users mailing list
> > > List Address: [EMAIL PROTECTED]
> > > List Archives:
> >
> > http://sourceforge.net/mailarchive/forum.php?forum_id=2995
> >
> > > List Info:
> >
> > https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:
> > To learn the basics of securing your web site with SSL, click here
> > to get a FREE TRIAL of a Thawte Server Certificate:
> > http://www.gothawte.com/rd522.html
> > --
> > squirrelmail-users mailing list
> > List Address: [EMAIL PROTECTED]
> > List Archives:
> > http://sourceforge.net/mailarchive/forum.php?forum_id=2995
> > List Info:
> > https://lists.sourceforge.net/lists/listinfo/squirrelmail-users
>
> -------------------------------------------------------
> This sf.net email is sponsored by: Are you worried about
> your web server security? Click here for a FREE Thawte
> Apache SSL Guide and answer your Apache SSL security
> needs: http://www.gothawte.com/rd523.html
> --
> squirrelmail-users mailing list
> List Address: [EMAIL PROTECTED]
> List Archives:
> http://sourceforge.net/mailarchive/forum.php?forum_id=2995
> List Info:
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Attachment: vlogin-2.5.tar.gz
Description: application/gzip-compressed

Reply via email to