Hi all,
 I'm trying to configure a radius server ( freeradius 0.6 ) where I would
 liketo receive the IP-Address from a pool.
To achieve this I would like to "join" some of the users in groups, by using
the following authentication "user":
steve@Gruppo
where the user steve has some return pair, but not Pool-Name attribute,
and the "group" Gruppo has the PoolName attribute ( and more return pair ).

 Looking in the code I think I' ve found a "bug" that I fixed this way:
---------------------------------------------------------
--- rlm_ippool.c.orig Tue Jul 16 15:29:01 2002
+++ rlm_ippool.c        Tue Jul 16 15:29:40 2002
@@ -405,7 +405,9 @@
        if ((vp = pairfind(request->config_items, PW_POOL_NAME)) != NULL){
                if (data->name == NULL || strcmp(data->name,vp->strvalue))
                        return RLM_MODULE_NOOP;
-       }
+       } else {
+               return RLM_MODULE_NOOP;
+        }

        /*
         * Get the nas ip address
-----------------------------------------------------

Brief, when entering in this lines, if the user was missing the Pool-Name
attribute, there were no return and some unpredictable Pool address was
returned.
Is this correct.
T.I.A.
Pigi
P.s. Sorry for my not good english




- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to