Hi, I'm trying to set up rlm_sql for users that belong to multiple groups. (1.1.6, postgresql 8.1). If user belongs to only one group - everything works fine - i.e. user can auth, gets correct attributes back. If I add the user to another group - it stops working all together - ie the user gets rejected. Database scheme and sql queries are default from the 1.1.6 version. Content of the database for the relevant user: SELECT id, UserName, Attribute, Value, Op FROM radcheck WHERE Username = 'przem' ORDER BY id; id | username | attribute | value | op ---------+----------+-----------+----------+---- 1944943 | przem | Password | xxxyyyzz | == (1 row) SELECT id, UserName, Attribute, Value, Op FROM radreply WHERE Username = 'przem' ORDER BY id; id | username | attribute | value | op ----+----------+-----------+-------+---- (0 rows) SELECT radgroupcheck.id, radgroupcheck.GroupName, radgroupcheck.Attribute, radgroupcheck.Value,radgroupcheck.Op FROM radgroupcheck, usergroup WHERE usergroup.Username = 'przem' AND usergroup.GroupName = radgroupcheck.GroupName ORDER BY radgroupcheck.id; id | groupname | attribute | value | op ----+-----------+----------------+--------+---- 27 | DIALUP | Huntgroup-Name | DIALUP | == 28 | ADSL | Huntgroup-Name | ADSL | == (2 rows) SELECT radgroupreply.id, radgroupreply.GroupName, radgroupreply.Attribute, radgroupreply.Value, radgroupreply.Op FROM radgroupreply,usergroup WHERE usergroup.Username = 'przem' AND usergroup.GroupName = radgroupreply.GroupName ORDER BY radgroupreply.id; id | groupname | attribute | value | op ----+-----------+-----------------+-------------+---- 37 | DIALUP | Framed-Protocol | PPP | := 38 | DIALUP | Service-Type | Framed-User | := 39 | ADSL | Framed-Protocol | PPP | := 40 | ADSL | Service-Type | Framed-User | := (4 rows) huntgroups file: DIALUP Huawei-Domain-Name == "ihug-dialup" WIREDCOUNTRY Huawei-Domain-Name == "ihug-pppoe-wc" ADSL Huawei-Domain-Name == "ihug-ubs" ADSL Huawei-Domain-Name == "ihug-dsl-pppoe" Debug is in the attached file. What am I missing here? kind regards Pshem