INN-2.3 radius multirealms patch

Yury B.Razbegin yur at simtel.ru
Wed Apr 5 09:35:45 UTC 2000


			Hi !

  I suggest patch for INN-2.3 raduis authentification programm for using
  with several realms, but one of them is default and is described by
  the suffix in the configuration file radius.conf:

*** authprogs/radius.c.orig	Tue Dec 14 07:16:24 1999
--- authprogs/radius.c	Tue Apr  4 16:17:28 2000
***************
*** 245,251 ****
      }
      req.data[1] += strlen(uname);
      strcat((char *)&req.data[2], uname);
!     if (config->suffix) {
  	req.data[1] += strlen(config->suffix);
  	strcat((char *)&req.data[2], config->suffix);
      }
--- 245,251 ----
      }
      req.data[1] += strlen(uname);
      strcat((char *)&req.data[2], uname);
!     if (!strchr(uname, '@') && (config->suffix)) {
  	req.data[1] += strlen(config->suffix);
  	strcat((char *)&req.data[2], config->suffix);
      }

-- 
 * Yury B.Razbegin * yur at simtel.ru *  +7 (-8422) -35-32-09  (Fax: -41-00-19) *



More information about the inn-bugs mailing list