Hi, To set more than one value for a single reply attribute, you have to use the += operator rather than the default == operator. With the default SQL schema this is not possible. You'll have to update your SQL schema and queries to include the "op" field.
The list archives includes some discussion of doing this. Look for one of my old messages with the subject "RE: Simultaneous-Use in SQL table? works & minor patch" You'll need freeradius v 0.4 for this to work. At 02:24 AM 12/21/2001 +0100, you wrote: >Hi, > > I'm trying to send a few 'Cisco-AVPair' attribute in my RADIUS >replies. From what i've seen, it works perfectly when these pairs are >given for an user. But when I try to set it for a whole group, only the >last defined pair is sent back to the NAS. > > >From Postgres : >======== >radiusdb=# select * from radgroupreply; > > id | groupname | attribute | value >----+-----------+--------------+------- > 1 | users | Cisco-AVPair | test0 > 2 | users | Cisco-AVPair | test1 >(2 rows) > >radiusdb=# select * from usergroup; > id | username | groupname >----+----------+----------- > 1 | test | users >(1 row) >======== > >And : >======== >[root@scsi raddb]# radtest test test localhost Port testing123 >Sending Access-Request of id 134 to 127.0.0.1:1812 > User-Name = "test" > Password = "\200\345.B>m\215\032\360\371\351\364\323\031\031Q" > NAS-IP-Address = scsi.accelance.lyon > NAS-Port-Id = "Port" >rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=134, >length=33 > Cisco-AVPair = "test0" >======== > > Is it a bug or am I missing something ? > > I am using the SQL module with a PostgreSQL 7.0 database. I've tried >it on 0.3 and 0.4 without success. > > > >Thomas FAVIER >Accelance >Tel: +33 (0)4 37 43 12 22 >Fax: +33 (0)4 37 43 12 20 >www.accelance.fr > > >- >List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html Randy Moore Axion Information Technologies, Inc. email [EMAIL PROTECTED] phone 301-408-1200 fax 301-445-3947 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
