Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2006-07-23 18:18:00 UTC

Modified files:
     ChangeLog doc/example.conf doc/readme.features
     include/ircd_features.h ircd/ircd_features.c ircd/s_auth.c

Log message:

Add NOIDENT to go along with NODNS.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.804 ircu2.10/ChangeLog:1.805
--- ircu2.10/ChangeLog:1.804    Sun Jul 23 11:04:21 2006
+++ ircu2.10/ChangeLog  Sun Jul 23 11:17:50 2006
@@ -1,5 +1,18 @@
 2006-07-23  Michael Poole <[EMAIL PROTECTED]>
 
+       * doc/example.conf (Features): Show NOIDENT example.
+
+       * doc/readme.features (NOIDENT): Document new feature setting.
+
+       * include/ircd_features.h (NOIDENT): Declare new feature.
+
+       * ircd/ircd_features.c (NOIDENT): Define new feature.
+
+       * ircd/s_auth.c (start_auth): Check NOIDENT before starting auth
+       request.
+
+2006-07-23  Michael Poole <[EMAIL PROTECTED]>
+
        * include/querycmds.h (Count_unknownbecomesclient): Remove _butone
        qualifier for send functions.
 
Index: ircu2.10/doc/example.conf
diff -u ircu2.10/doc/example.conf:1.73 ircu2.10/doc/example.conf:1.74
--- ircu2.10/doc/example.conf:1.73      Mon Jul 17 15:52:11 2006
+++ ircu2.10/doc/example.conf   Sun Jul 23 11:17:50 2006
@@ -795,6 +795,7 @@
 #  "HUB"="FALSE";
 #  "WALLOPS_OPER_ONLY"="FALSE";
 #  "NODNS"="FALSE";
+#  "NOIDENT"="FALSE";
 #  "RANDOM_SEED"="<you should set one explicitly>";
 #  "DEFAULT_LIST_PARAM"="TRUE";
 #  "NICKNAMEHISTORYLENGTH"="800";
Index: ircu2.10/doc/readme.features
diff -u ircu2.10/doc/readme.features:1.26 ircu2.10/doc/readme.features:1.27
--- ircu2.10/doc/readme.features:1.26   Mon Jul 17 15:52:11 2006
+++ ircu2.10/doc/readme.features        Sun Jul 23 11:17:50 2006
@@ -190,6 +190,13 @@
 "localhost."  Note that other DNS lookups are still done for outbound
 connections.
 
+NOIDENT
+ * Type: boolean
+ * Default: FALSE
+
+NOIDENT disables RFC 1413 (ident protocol) lookups of clients'
+usernames.
+
 RANDOM_SEED
  * Type: string
  * Default: none
Index: ircu2.10/include/ircd_features.h
diff -u ircu2.10/include/ircd_features.h:1.44 
ircu2.10/include/ircd_features.h:1.45
--- ircu2.10/include/ircd_features.h:1.44       Mon Jul 17 15:52:11 2006
+++ ircu2.10/include/ircd_features.h    Sun Jul 23 11:17:50 2006
@@ -20,7 +20,7 @@
  */
 /** @file
  * @brief Public interfaces and declarations for dealing with configurable 
features.
- * @version $Id: ircd_features.h,v 1.44 2006/07/17 22:52:11 entrope Exp $
+ * @version $Id: ircd_features.h,v 1.45 2006/07/23 18:17:50 entrope Exp $
  */
 
 struct Client;
@@ -48,6 +48,7 @@
   FEAT_HUB,
   FEAT_WALLOPS_OPER_ONLY,
   FEAT_NODNS,
+  FEAT_NOIDENT,
   FEAT_RANDOM_SEED,
   FEAT_DEFAULT_LIST_PARAM,
   FEAT_NICKNAMEHISTORYLENGTH,
Index: ircu2.10/ircd/ircd_features.c
diff -u ircu2.10/ircd/ircd_features.c:1.59 ircu2.10/ircd/ircd_features.c:1.60
--- ircu2.10/ircd/ircd_features.c:1.59  Mon Jul 17 15:52:11 2006
+++ ircu2.10/ircd/ircd_features.c       Sun Jul 23 11:17:50 2006
@@ -18,7 +18,7 @@
  */
 /** @file
  * @brief Implementation of configurable feature support.
- * @version $Id: ircd_features.c,v 1.59 2006/07/17 22:52:11 entrope Exp $
+ * @version $Id: ircd_features.c,v 1.60 2006/07/23 18:17:50 entrope Exp $
  */
 #include "config.h"
 
@@ -362,6 +362,7 @@
   F_B(HUB, 0, 0, 0),
   F_B(WALLOPS_OPER_ONLY, 0, 0, 0),
   F_B(NODNS, 0, 0, 0),
+  F_B(NOIDENT, 0, 0, 0),
   F_N(RANDOM_SEED, FEAT_NODISP, random_seed_set, 0, 0, 0, 0, 0, 0),
   F_S(DEFAULT_LIST_PARAM, FEAT_NULL, 0, list_set_default),
   F_I(NICKNAMEHISTORYLENGTH, 0, 800, whowas_realloc),
Index: ircu2.10/ircd/s_auth.c
diff -u ircu2.10/ircd/s_auth.c:1.48 ircu2.10/ircd/s_auth.c:1.49
--- ircu2.10/ircd/s_auth.c:1.48 Sun Jul 23 11:04:22 2006
+++ ircu2.10/ircd/s_auth.c      Sun Jul 23 11:17:50 2006
@@ -31,7 +31,7 @@
  */
 /** @file
  * @brief Implementation of DNS and ident lookups.
- * @version $Id: s_auth.c,v 1.48 2006/07/23 18:04:22 entrope Exp $
+ * @version $Id: s_auth.c,v 1.49 2006/07/23 18:17:50 entrope Exp $
  */
 #include "config.h"
 
@@ -998,7 +998,8 @@
   start_dns_query(auth);
 
   /* Try to start ident lookup. */
-  start_auth_query(auth);
+  if (!feature_bool(FEAT_NOIDENT))
+    start_auth_query(auth);
 
   /* Set required client inputs for users. */
   if (IsUserPort(client)) {
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to