[tpop3d-discuss]pure virtual tpop3d authentication patch

Kevin Bonner keb at pa.net
Fri, 2 Apr 2004 20:49:51 -0500


=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday 02 April 2004 05:27, Markus Lidel wrote:
> if you are using mysql or perl to authenticate a user, and you don't
> have an user in /etc/passwd, the user won't authenticate at all, because
> the getpwuid() call fails. So here is a patch, witch allows the
> authentication of a user with only mysql or perl.

There are benefits from the changes, such as no getpwuid calls if it's=20
configured a certain way, but in the worst case the getpwuid function would=
=20
be called twice instead of only once.

A problem I see with the patch is in the auth_mysql_new_apop function.  If =
I=20
select only 4 rows and have not set the auth-mysql-mail-group config option=
,=20
the gid will never be set.  The auth_mysql_new_user_pass function would hav=
e=20
the same problem.

Kevin Bonner
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAbhg//9i/ml3OBYMRAn6mAKCd+5gbYaZePfFERaEArP8OKpIV4ACfa5xY
jLfshqRhfyKcOze2tIMywbM=3D
=3DCz/M
=2D----END PGP SIGNATURE-----