Committer : entrope
CVSROOT : /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_12_branch
Commit time: 2006-05-16 02:34:11 UTC
Modified files:
Tag: u2_10_12_branch
ChangeLog ircd/s_auth.c
Log message:
Only check passwords on user ports.
---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.710.2.101 ircu2.10/ChangeLog:1.710.2.102
--- ircu2.10/ChangeLog:1.710.2.101 Mon May 15 18:38:13 2006
+++ ircu2.10/ChangeLog Mon May 15 19:34:00 2006
@@ -1,3 +1,8 @@
+2006-05-15 Michael Poole <[EMAIL PROTECTED]>
+
+ * ircd/s_auth.c (check_auth_finished): Only check passwords on
+ user ports.
+
2006-05-14 Michael Poole <[EMAIL PROTECTED]>
* doc/example.conf (Connect): Mention the vhost option.
Index: ircu2.10/ircd/s_auth.c
diff -u ircu2.10/ircd/s_auth.c:1.37.2.12 ircu2.10/ircd/s_auth.c:1.37.2.13
--- ircu2.10/ircd/s_auth.c:1.37.2.12 Sat May 13 19:46:58 2006
+++ ircu2.10/ircd/s_auth.c Mon May 15 19:34:00 2006
@@ -31,7 +31,7 @@
*/
/** @file
* @brief Implementation of DNS and ident lookups.
- * @version $Id: s_auth.c,v 1.37.2.12 2006/05/14 02:46:58 entrope Exp $
+ * @version $Id: s_auth.c,v 1.37.2.13 2006/05/16 02:34:00 entrope Exp $
*/
#include "config.h"
@@ -383,12 +383,14 @@
* as possible so that iauth's challenge/response (which uses PASS
* for responses) is not confused with the client's password.
*/
- if (!FlagHas(&auth->flags, AR_PASSWORD_CHECKED))
+ if (IsUserPort(auth->client)
+ && !FlagHas(&auth->flags, AR_PASSWORD_CHECKED))
{
struct ConfItem *aconf;
aconf = cli_confs(auth->client)->value.aconf;
- if (!EmptyString(aconf->passwd)
+ if (aconf
+ && !EmptyString(aconf->passwd)
&& strcmp(cli_passwd(auth->client), aconf->passwd))
{
ServerStats->is_ref++;
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches