Tue Jul 20 08:41:22 2010 UTC ()
Changes 2.1.9:
Feature improvements
* Add radmin command "stats detail <file>" to see what
  is going on inside of a detail file reader.
* Added documentation for CoA.  See raddb/sites-available/coa
* Add sub-option support for Option 82.  See dictionary.dhcp
* Add "server" field to default SQL NAS table, and documented it.

Bug fixes
* Reset "received ping" counter for Status-Server checks.  In some
  corner cases it was not getting reset.
* Handle large VMPS attributes.
* Count accounting responses from a home server in SNMP / statistics
  code.
* Set EAP-Session-Resumed = Yes, not "No" when session is resumed.
* radmin packet counter statistics are now unsigned, for numbers
  2^31..2^32.  After that they roll over to zero.
* Be more careful about expanding data in PAP and MS-CHAP modules.
  This prevents login failures when passwords contain '{'.
* Clean up zombie children if there were many "exec" modules being
  run for one packet, all with "wait = no".
* re-open log file after HUP.
* Fix "no response to proxied packet" complaint for Coa / Disconnect
  packets.  It shouldn't ignore replies to packets it sent.
* Calculate IPv6 netmasks correctly.
* Fix SQL module to re-open sockets if they unexpectedly close.
* Track scope for IPv6 addresses.  This lets us use link-local
  addresses properly.
* Updated Makefiles to no longer use the shell for recursing into
  subdirs.  "make -j 2" should now work.
* Updated raddb/sql/mysql/ippool.conf to use "= NULL".
* Updated Makefiles so that "make reconfig" no longer uses the shell
  for recursing into subdirs, and re-builds all "configure" files.
* Used above method to regenerate all configure scripts.
* Updated SQL module to allow "server" field of "nas" table
  to be blank: "".  This means the same as it being NULL.
* Fixed regex realm example.  Create Realm attribute with value
  of realm from User-Name, not from regex.
* If processing a DHCP Discover returns "fail / reject", ignore
  the packet rather than sending a NAK.
* Allow '%' to be escaped in sqlcounter module.
* Fix typo internal hash table.
* For PEAP and TTLS, the tunneled reply is added to the reply,
  rather than integrated via the operators.  This allows multiple
  VSAs to be added, where they would previously be discarded.
* Make request number unsigned.  This changes nothing other than
  the debug output when the server receives more than 2^31 packets.
* Don't block when reading child output in 'exec wait'.  This means
  that blocked children get killed, instead of blocking the server.
* Enabled building without any proxy functionality
* radclient now prefers IPv4, to match the default server config.
* Print useful error when a realm regex is invalid
* relaxed rules for preprocess module "with_cisco_vsa_hack".  The
  attributes can now be integer, ipaddr, etc.  (i.e. non-string)
* Allow rlm_ldap to build if ldap_set_rebind_proc() has only
  2 arguments.
* Update configure script for rlm_python to avoid dynamic linking
  problems on some platforms.
* Do suid to "user" when running in debug mode as root
* Make "allow_core_dumps" work in more situations.
* In detail file reader, treat bad records as EOF.
  This allows it to continue working when the disk is full.
* Fix Oracle default accounting queries to work when there are no
  gigawords attributes.  Other databases already had the fix.
* Fix rlm_sql to show when it opens and closes sockets.  It already
  says when it cannot connect, so it should say when it can connect.
* "chmod -x" for a few C source files.
* Pull update spec files, etc. from RedHat into the redhat/ directory.
* Allow spaces when parsing integer values.  This helps people who
  put "too much" into an SQL value field.


(adam)
diff -r1.12 -r1.13 pkgsrc/net/freeradius2/Makefile
diff -r1.9 -r1.10 pkgsrc/net/freeradius2/PLIST
diff -r1.8 -r1.9 pkgsrc/net/freeradius2/distinfo
diff -r1.1.1.1 -r1.2 pkgsrc/net/freeradius2/patches/patch-aj
diff -r1.2 -r1.3 pkgsrc/net/freeradius2/patches/patch-al

cvs diff -r1.12 -r1.13 pkgsrc/net/freeradius2/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/net/freeradius2/Attic/Makefile 2010/05/29 11:47:37 1.12
+++ pkgsrc/net/freeradius2/Attic/Makefile 2010/07/20 08:41:21 1.13
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.12 2010/05/29 11:47:37 obache Exp $ 1# $NetBSD: Makefile,v 1.13 2010/07/20 08:41:21 adam Exp $
2 2
3DISTNAME= freeradius-server-${RADVER} 3DISTNAME= freeradius-server-${RADVER}
4PKGNAME= ${DISTNAME:S/-server//} 4PKGNAME= ${DISTNAME:S/-server//}
5CATEGORIES= net 5CATEGORIES= net
6MASTER_SITES= ftp://ftp.freeradius.org/pub/freeradius/ 6MASTER_SITES= ftp://ftp.freeradius.org/pub/freeradius/
7EXTRACT_SUFX= .tar.bz2 7EXTRACT_SUFX= .tar.bz2
8 8
9MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://www.freeradius.org/ 10HOMEPAGE= http://www.freeradius.org/
11COMMENT= Free RADIUS server implementation 11COMMENT= Free RADIUS server implementation
12LICENSE= gnu-gpl-v2 12LICENSE= gnu-gpl-v2
13 13
14CONFLICTS+= radiusd-cistron-[0-9]* 14CONFLICTS+= radiusd-cistron-[0-9]*
@@ -35,43 +35,43 @@ RCD_SCRIPTS= radiusd @@ -35,43 +35,43 @@ RCD_SCRIPTS= radiusd
35RADIUS_USER?= radius 35RADIUS_USER?= radius
36RADIUS_GROUP?= radius 36RADIUS_GROUP?= radius
37PKG_GROUPS= ${RADIUS_USER} 37PKG_GROUPS= ${RADIUS_USER}
38PKG_USERS= ${RADIUS_USER}:${RADIUS_GROUP} 38PKG_USERS= ${RADIUS_USER}:${RADIUS_GROUP}
39PKG_GROUPS_VARS+= RADIUS_GROUP 39PKG_GROUPS_VARS+= RADIUS_GROUP
40PKG_USERS_VARS+= RADIUS_USER 40PKG_USERS_VARS+= RADIUS_USER
41OWN_DIRS_PERMS+= ${VARBASE}/run/radiusd \ 41OWN_DIRS_PERMS+= ${VARBASE}/run/radiusd \
42 ${RADIUS_USER} ${RADIUS_GROUP} 0750 42 ${RADIUS_USER} ${RADIUS_GROUP} 0750
43OWN_DIRS_PERMS+= ${VARBASE}/log/radiusd \ 43OWN_DIRS_PERMS+= ${VARBASE}/log/radiusd \
44 ${RADIUS_USER} ${RADIUS_GROUP} 0750 44 ${RADIUS_USER} ${RADIUS_GROUP} 0750
45OWN_DIRS_PERMS+= ${VARBASE}/log/radiusd/radacct \ 45OWN_DIRS_PERMS+= ${VARBASE}/log/radiusd/radacct \
46 ${RADIUS_USER} ${RADIUS_GROUP} 0750 46 ${RADIUS_USER} ${RADIUS_GROUP} 0750
47 47
48RADVER= 2.1.8 48RADVER= 2.1.9
49EGDIR= ${DESTDIR}${PREFIX}/share/examples/freeradius 49EGDIR= ${DESTDIR}${PREFIX}/share/examples/freeradius
50 50
51BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.7 51BUILDLINK_API_DEPENDS.openssl+= openssl>=0.9.7
52 52
53GNU_CONFIGURE= yes 53GNU_CONFIGURE= yes
54CONFIGURE_ARGS+= --localstatedir=${VARBASE} 54CONFIGURE_ARGS+= --localstatedir=${VARBASE}
55CONFIGURE_ARGS+= --quiet 55CONFIGURE_ARGS+= --quiet
56CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR} 56CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASEDIR}
57CONFIGURE_ARGS+= --with-logdir=${VARBASE}/log/radiusd 57CONFIGURE_ARGS+= --with-logdir=${VARBASE}/log/radiusd
58CONFIGURE_ARGS+= --with-ltdl-lib=${PREFIX}/lib 58CONFIGURE_ARGS+= --with-ltdl-lib=${PREFIX}/lib
59CONFIGURE_ARGS+= --with-ltdl-include=${PREFIX}/include 59CONFIGURE_ARGS+= --with-ltdl-include=${PREFIX}/include
60CONFIGURE_ARGS+= --without-rlm_python 60CONFIGURE_ARGS+= --without-rlm_python
61CONFIGURE_ARGS+= --without-rlm_smb 61CONFIGURE_ARGS+= --without-rlm_smb
62CONFIGURE_ARGS+= --without-rlm_sql_oracle 62CONFIGURE_ARGS+= --without-rlm_sql_oracle
63CONFIGURE_ARGS+= --without-rlm_sql_unixodbc 63CONFIGURE_ARGS+= --without-rlm_sql_unixodbc
64MAKE_ENV+= R=${DESTDIR:Q} 64MAKE_ENV+= R=${DESTDIR}
65 65
66REPLACE_PERL= scripts/radsqlrelay 66REPLACE_PERL= scripts/radsqlrelay
67 67
68SUBST_CLASSES= make 68SUBST_CLASSES= make
69SUBST_STAGE.make= post-patch 69SUBST_STAGE.make= post-patch
70SUBST_FILES.make= src/modules/rlm_sql/drivers/rlm_sql_postgresql/Makefile.in 70SUBST_FILES.make= src/modules/rlm_sql/drivers/rlm_sql_postgresql/Makefile.in
71SUBST_SED.make+= -e "s|RLM_SQL_LIBS =|RLM_SQL_LIBS = \ 71SUBST_SED.make+= -e "s|RLM_SQL_LIBS =|RLM_SQL_LIBS = \
72 -L${PREFIX}/lib|g" 72 -L${PREFIX}/lib|g"
73SUBST_MESSAGE.make= Fixing Makefiles. 73SUBST_MESSAGE.make= Fixing Makefiles.
74 74
75SUBST_CLASSES+= config 75SUBST_CLASSES+= config
76SUBST_STAGE.config= post-patch 76SUBST_STAGE.config= post-patch
77SUBST_FILES.config= raddb/radiusd.conf.in 77SUBST_FILES.config= raddb/radiusd.conf.in

cvs diff -r1.9 -r1.10 pkgsrc/net/freeradius2/Attic/PLIST (expand / switch to unified diff)

--- pkgsrc/net/freeradius2/Attic/PLIST 2010/05/23 17:28:44 1.9
+++ pkgsrc/net/freeradius2/Attic/PLIST 2010/07/20 08:41:21 1.10
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.9 2010/05/23 17:28:44 tron Exp $ 1@comment $NetBSD: PLIST,v 1.10 2010/07/20 08:41:21 adam Exp $
2bin/radclient 2bin/radclient
3bin/radconf2xml 3bin/radconf2xml
4bin/radeapclient 4bin/radeapclient
5bin/radlast 5bin/radlast
6bin/radsniff 6bin/radsniff
7bin/radsqlrelay 7bin/radsqlrelay
8bin/radtest 8bin/radtest
9bin/radwho 9bin/radwho
10bin/radzap 10bin/radzap
11${PLIST.dbm}bin/rlm_dbm_cat 11${PLIST.dbm}bin/rlm_dbm_cat
12${PLIST.dbm}bin/rlm_dbm_parser 12${PLIST.dbm}bin/rlm_dbm_parser
13bin/rlm_ippool_tool 13bin/rlm_ippool_tool
14bin/smbencrypt 14bin/smbencrypt
@@ -528,26 +528,27 @@ share/freeradius/dictionary.starent @@ -528,26 +528,27 @@ share/freeradius/dictionary.starent
528share/freeradius/dictionary.t_systems_nova 528share/freeradius/dictionary.t_systems_nova
529share/freeradius/dictionary.telebit 529share/freeradius/dictionary.telebit
530share/freeradius/dictionary.telkom 530share/freeradius/dictionary.telkom
531share/freeradius/dictionary.trapeze 531share/freeradius/dictionary.trapeze
532share/freeradius/dictionary.tropos 532share/freeradius/dictionary.tropos
533share/freeradius/dictionary.unix 533share/freeradius/dictionary.unix
534share/freeradius/dictionary.usr 534share/freeradius/dictionary.usr
535share/freeradius/dictionary.utstarcom 535share/freeradius/dictionary.utstarcom
536share/freeradius/dictionary.valemount 536share/freeradius/dictionary.valemount
537share/freeradius/dictionary.versanet 537share/freeradius/dictionary.versanet
538share/freeradius/dictionary.vqp 538share/freeradius/dictionary.vqp
539share/freeradius/dictionary.walabi 539share/freeradius/dictionary.walabi
540share/freeradius/dictionary.waverider 540share/freeradius/dictionary.waverider
 541share/freeradius/dictionary.wichorus
541share/freeradius/dictionary.wimax 542share/freeradius/dictionary.wimax
542share/freeradius/dictionary.wispr 543share/freeradius/dictionary.wispr
543share/freeradius/dictionary.xedia 544share/freeradius/dictionary.xedia
544share/freeradius/dictionary.xylan 545share/freeradius/dictionary.xylan
545share/freeradius/dictionary.zyxel 546share/freeradius/dictionary.zyxel
546@unexec ${RMDIR} %D/etc/raddb/sql/postgresql 2>/dev/null || ${TRUE} 547@unexec ${RMDIR} %D/etc/raddb/sql/postgresql 2>/dev/null || ${TRUE}
547@unexec ${RMDIR} %D/etc/raddb/sql/oracle 2>/dev/null || ${TRUE} 548@unexec ${RMDIR} %D/etc/raddb/sql/oracle 2>/dev/null || ${TRUE}
548@unexec ${RMDIR} %D/etc/raddb/sql/mysql 2>/dev/null || ${TRUE} 549@unexec ${RMDIR} %D/etc/raddb/sql/mysql 2>/dev/null || ${TRUE}
549@unexec ${RMDIR} %D/etc/raddb/sql/mssql 2>/dev/null || ${TRUE} 550@unexec ${RMDIR} %D/etc/raddb/sql/mssql 2>/dev/null || ${TRUE}
550@unexec ${RMDIR} %D/etc/raddb/sql 2>/dev/null || ${TRUE} 551@unexec ${RMDIR} %D/etc/raddb/sql 2>/dev/null || ${TRUE}
551@unexec ${RMDIR} %D/etc/raddb/sites-available 2>/dev/null || ${TRUE} 552@unexec ${RMDIR} %D/etc/raddb/sites-available 2>/dev/null || ${TRUE}
552@unexec ${RMDIR} %D/etc/raddb/certs/demoCA 2>/dev/null || ${TRUE} 553@unexec ${RMDIR} %D/etc/raddb/certs/demoCA 2>/dev/null || ${TRUE}
553@unexec ${RMDIR} %D/etc/raddb/certs 2>/dev/null || ${TRUE} 554@unexec ${RMDIR} %D/etc/raddb/certs 2>/dev/null || ${TRUE}

cvs diff -r1.8 -r1.9 pkgsrc/net/freeradius2/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/net/freeradius2/Attic/distinfo 2010/05/23 17:28:44 1.8
+++ pkgsrc/net/freeradius2/Attic/distinfo 2010/07/20 08:41:21 1.9
@@ -1,12 +1,12 @@ @@ -1,12 +1,12 @@
1$NetBSD: distinfo,v 1.8 2010/05/23 17:28:44 tron Exp $ 1$NetBSD: distinfo,v 1.9 2010/07/20 08:41:21 adam Exp $
2 2
3SHA1 (freeradius-server-2.1.8.tar.bz2) = f01a8add62b790033cc861d55dc0d09a4678beac 3SHA1 (freeradius-server-2.1.9.tar.bz2) = 71a7829d6c40d3345f53fcc18c65d634fd39293c
4RMD160 (freeradius-server-2.1.8.tar.bz2) = 9ad8e19eda1b7da89fde3d0e345a0cc6b13eba88 4RMD160 (freeradius-server-2.1.9.tar.bz2) = 5c51cf7483ad5c912cec7eb78342c2f7e1a1c32f
5Size (freeradius-server-2.1.8.tar.bz2) = 2544696 bytes 5Size (freeradius-server-2.1.9.tar.bz2) = 2524497 bytes
6SHA1 (patch-aa) = 90c0c676ea668e36851eeffc0f1703624d703339 6SHA1 (patch-aa) = 90c0c676ea668e36851eeffc0f1703624d703339
7SHA1 (patch-ab) = 7a23eb75a9818b073263fd36cbf17b692fa19a9f 7SHA1 (patch-ab) = 7a23eb75a9818b073263fd36cbf17b692fa19a9f
8SHA1 (patch-ae) = aa43b83ba991f510cee40cb65c3621e9d559d6dd 8SHA1 (patch-ae) = aa43b83ba991f510cee40cb65c3621e9d559d6dd
9SHA1 (patch-ai) = b32fcb8a71f4c4437a47352e2b235d4c15554a01 9SHA1 (patch-ai) = b32fcb8a71f4c4437a47352e2b235d4c15554a01
10SHA1 (patch-aj) = ba4e08eb0f3fbe0cb18f41de9c80e14ebccc1188 10SHA1 (patch-aj) = 865882e6e6e935276529b98616c9059c555272b9
11SHA1 (patch-ak) = 751aba6a3f9716279f3a87871cf7008b7a921f9a 11SHA1 (patch-ak) = 751aba6a3f9716279f3a87871cf7008b7a921f9a
12SHA1 (patch-al) = 05cce8da469b6d14fcba1ef3cf378c3ba4bee3a0 12SHA1 (patch-al) = 6d68e3e2d7dd50675f142be974b277da0f664c8b

cvs diff -r1.1.1.1 -r1.2 pkgsrc/net/freeradius2/patches/Attic/patch-aj (expand / switch to unified diff)

--- pkgsrc/net/freeradius2/patches/Attic/patch-aj 2008/05/15 19:43:47 1.1.1.1
+++ pkgsrc/net/freeradius2/patches/Attic/patch-aj 2010/07/20 08:41:21 1.2
@@ -1,12 +1,12 @@ @@ -1,12 +1,12 @@
1$NetBSD: patch-aj,v 1.1.1.1 2008/05/15 19:43:47 adrianp Exp $ 1$NetBSD: patch-aj,v 1.2 2010/07/20 08:41:21 adam Exp $
2 2
3--- Make.inc.in.orig 2008-05-14 23:18:20.000000000 +0200 3--- Make.inc.in.orig 2010-05-24 05:40:58.000000000 +0000
4+++ Make.inc.in 2008-05-14 23:18:50.000000000 +0200 4+++ Make.inc.in
5@@ -45,6 +45,7 @@ 5@@ -46,6 +46,7 @@ INSTALLSTRIP = @INSTALLSTRIP@
6 LCRYPT = @CRYPTLIB@ 6 LCRYPT = @CRYPTLIB@
7 LIBS = @LIBS@ 7 LIBS = @LIBS@
8 LDFLAGS = @LDFLAGS@ 8 LDFLAGS = @LDFLAGS@
9+RLM_LIBS += -lcrypto -L${PREFIX}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib 9+RLM_LIBS += -lcrypto -L${PREFIX}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib
10  10
11 LOGDIR = ${logdir} 11 LOGDIR = ${logdir}
12 RADDBDIR = ${raddbdir} 12 RADDBDIR = ${raddbdir}

cvs diff -r1.2 -r1.3 pkgsrc/net/freeradius2/patches/Attic/patch-al (expand / switch to unified diff)

--- pkgsrc/net/freeradius2/patches/Attic/patch-al 2008/10/12 13:57:27 1.2
+++ pkgsrc/net/freeradius2/patches/Attic/patch-al 2010/07/20 08:41:21 1.3
@@ -1,65 +1,65 @@ @@ -1,65 +1,65 @@
1$NetBSD: patch-al,v 1.2 2008/10/12 13:57:27 adrianp Exp $ 1$NetBSD: patch-al,v 1.3 2010/07/20 08:41:21 adam Exp $
2 2
3--- src/modules/rlm_preprocess/rlm_preprocess.c.orig 2008-09-25 10:41:26.000000000 +0200 3--- src/modules/rlm_preprocess/rlm_preprocess.c.orig 2010-05-24 05:40:58.000000000 +0000
4+++ src/modules/rlm_preprocess/rlm_preprocess.c 4+++ src/modules/rlm_preprocess/rlm_preprocess.c
5@@ -130,7 +130,7 @@ static void cisco_vsa_hack(VALUE_PAIR *v 5@@ -130,7 +130,7 @@ static void cisco_vsa_hack(VALUE_PAIR *v
6 /* 6 /*
7 * No weird packing. Ignore it. 7 * No weird packing. Ignore it.
8 */ 8 */
9- ptr = strchr(vp->vp_strvalue, '='); /* find an '=' */ 9- ptr = strchr(vp->vp_strvalue, '='); /* find an '=' */
10+ ptr = strchr((char *)vp->vp_strvalue, '='); /* find an '=' */ 10+ ptr = strchr((char *)vp->vp_strvalue, '='); /* find an '=' */
11 if (!ptr) continue; 11 if (!ptr) continue;
12  12
13 /* 13 /*
14@@ -148,7 +148,7 @@ static void cisco_vsa_hack(VALUE_PAIR *v 14@@ -148,7 +148,7 @@ static void cisco_vsa_hack(VALUE_PAIR *v
15 const char *p; 15 const char *p;
16 DICT_ATTR *dattr; 16 DICT_ATTR *dattr;
17  17
18- p = vp->vp_strvalue; 18- p = vp->vp_strvalue;
19+ p = (char *)vp->vp_strvalue; 19+ p = (char *)vp->vp_strvalue;
20 gettoken(&p, newattr, sizeof(newattr)); 20 gettoken(&p, newattr, sizeof(newattr));
21  21
22 if (((dattr = dict_attrbyname(newattr)) != NULL) && 22 if ((dattr = dict_attrbyname(newattr)) != NULL) {
23@@ -233,10 +233,10 @@ static void rad_mangle(rlm_preprocess_t  23@@ -232,10 +232,10 @@ static void rad_mangle(rlm_preprocess_t
24 * 24 *
25 * FIXME: should we handle this as a REALM ? 25 * FIXME: should we handle this as a REALM ?
26 */ 26 */
27- if ((ptr = strchr(namepair->vp_strvalue, '\\')) != NULL) { 27- if ((ptr = strchr(namepair->vp_strvalue, '\\')) != NULL) {
28+ if ((ptr = strchr((char *)namepair->vp_strvalue, '\\')) != NULL) { 28+ if ((ptr = strchr((char *)namepair->vp_strvalue, '\\')) != NULL) {
29 strlcpy(newname, ptr + 1, sizeof(newname)); 29 strlcpy(newname, ptr + 1, sizeof(newname));
30 /* Same size */ 30 /* Same size */
31- strcpy(namepair->vp_strvalue, newname); 31- strcpy(namepair->vp_strvalue, newname);
32+ strcpy((char *)namepair->vp_strvalue, newname); 32+ strcpy((char *)namepair->vp_strvalue, newname);
33 namepair->length = strlen(newname); 33 namepair->length = strlen(newname);
34 } 34 }
35 } 35 }
36@@ -404,9 +404,9 @@ static int huntgroup_access(REQUEST *req 36@@ -403,9 +403,9 @@ static int huntgroup_access(REQUEST *req
37 &request->packet->vps, 37 &request->packet->vps,
38 PW_HUNTGROUP_NAME, 38 PW_HUNTGROUP_NAME,
39 PW_TYPE_STRING); 39 PW_TYPE_STRING);
40- strlcpy(vp->vp_strvalue, i->name, 40- strlcpy(vp->vp_strvalue, i->name,
41+ strlcpy((char *)vp->vp_strvalue, i->name, 41+ strlcpy((char *)vp->vp_strvalue, i->name,
42 sizeof(vp->vp_strvalue)); 42 sizeof(vp->vp_strvalue));
43- vp->length = strlen(vp->vp_strvalue); 43- vp->length = strlen(vp->vp_strvalue);
44+ vp->length = strlen((char *)vp->vp_strvalue); 44+ vp->length = strlen((char *)vp->vp_strvalue);
45 } 45 }
46 r = RLM_MODULE_OK; 46 r = RLM_MODULE_OK;
47 } 47 }
48@@ -581,7 +581,7 @@ static int preprocess_authorize(void *in 48@@ -580,7 +580,7 @@ static int preprocess_authorize(void *in
49 data->huntgroups)) != RLM_MODULE_OK) { 49 data->huntgroups)) != RLM_MODULE_OK) {
50 char buf[1024]; 50 char buf[1024];
51 radlog_request(L_AUTH, 0, request, "No huntgroup access: [%s] (%s)", 51 radlog_request(L_AUTH, 0, request, "No huntgroup access: [%s] (%s)",
52- request->username ? request->username->vp_strvalue : "<NO User-Name>", 52- request->username ? request->username->vp_strvalue : "<NO User-Name>",
53+ request->username ? (char *)request->username->vp_strvalue : "<NO User-Name>", 53+ request->username ? (char *)request->username->vp_strvalue : "<NO User-Name>",
54 auth_name(buf, sizeof(buf), request, 1)); 54 auth_name(buf, sizeof(buf), request, 1));
55 return r; 55 return r;
56 } 56 }
57@@ -632,7 +632,7 @@ static int preprocess_preaccounting(void 57@@ -631,7 +631,7 @@ static int preprocess_preaccounting(void
58 data->huntgroups)) != RLM_MODULE_OK) { 58 data->huntgroups)) != RLM_MODULE_OK) {
59 char buf[1024]; 59 char buf[1024];
60 radlog_request(L_INFO, 0, request, "No huntgroup access: [%s] (%s)", 60 radlog_request(L_INFO, 0, request, "No huntgroup access: [%s] (%s)",
61- request->username ? request->username->vp_strvalue : "<NO User-Name>", 61- request->username ? request->username->vp_strvalue : "<NO User-Name>",
62+ request->username ? (char *)request->username->vp_strvalue : "<NO User-Name>", 62+ request->username ? (char *)request->username->vp_strvalue : "<NO User-Name>",
63 auth_name(buf, sizeof(buf), request, 1)); 63 auth_name(buf, sizeof(buf), request, 1));
64 return r; 64 return r;
65 } 65 }