# General settings # specify which authentication comes first respectively which # authentication is used. possible values are: "radius" and "local". # if you specify "radius,local" then the RADIUS server is asked # first then the local one. if only one keyword is specified only # this server is asked. auth_order radius,local
# maximum login tries a user has login_tries 4 # timeout for all login tries # if this time is exceeded the user is kicked out login_timeout 60 # name of the nologin file which when it exists disables logins. # it may be extended by the ttyname which will result in # a terminal specific lock (eg /etc/nologin.ttyS2 will disable # logins on /dev/ttyS2) nologin /etc/nologin # name of the issue file. it's only display when no username is passed # on the radlogin command line issue /etc/radiusclient-ng/issue # RADIUS settings # RADIUS server to use for authentication requests. this config # item can appear more then one time. if multiple servers are # defined they are tried in a round robin fashion if one # server is not answering. # optionally you can specify a the port number on which is remote # RADIUS listens separated by a colon from the hostname. if # no port is specified /etc/services is consulted of the radius # service. if this fails also a compiled in default is used. #authserver 12.*.*.* authserver 66.*.*.* # RADIUS server to use for accouting requests. All that I # said for authserver applies, too. # #acctserver 12.*.*.* acctserver 66.*.*.* # file holding shared secrets used for the communication # between the RADIUS client and server servers /usr/local/etc/opensips/radius/servers # dictionary of allowed attributes and values # just like in the normal RADIUS distributions dictionary /usr/local/etc/opensips/radius/dictionary # program to call for a RADIUS authenticated login login_radius /usr/sbin/login.radius # file which holds sequence number for communication with the # RADIUS server seqfile /var/run/radius.seq #seqfile /var/run/opensips/opensips_radius.seq # file which specifies mapping between ttyname and NAS-Port attribute mapfile /etc/radiusclient-ng/port-id-map # default authentication realm to append to all usernames if no # realm was explicitly specified by the user # the radiusd directly form Livingston doesnt use any realms, so leave # it blank then default_realm # time to wait for a reply from the RADIUS server radius_timeout 10 # resend request this many times before trying the next server radius_retries 3 # local address from which radius packets have to be sent bindaddr * # LOCAL settings # program to execute for local login # it must support the -f flag for preauthenticated login login_local /bin/login On Mar 23, 2010 6:31pm, "dotnetdub [via OpenSIPS (Open SIP Server)]" <[email protected]> wrote: > On 23 March 2010 23:26, osiris123d [hidden email]> wrote: > I am not sure why this isn't working. The client.conf file is there and > the > exact same format is working on another box. > Twisted is using epollreactor > fatal error: cannot read the RADIUS configuration file > fatal error: failed to create MediaProxy Dispatcher: object of type > 'generator' has no len() > Traceback (most recent call last): > File "/usr/bin/media-dispatcher", line 62, in > dispatcher = Dispatcher() > File "/usr/lib/pymodules/python2.5/mediaproxy/dispatcher.py", line 526, in > __init__ > self.accounting = [__import__("mediaproxy.interfaces.accounting.%s" % > mod.lower(), globals(), locals(), [""]).Accounting() for mod in > set(Config.accounting)] > File > "/usr/lib/pymodules/python2.5/mediaproxy/interfaces/accounting/radius.py", > line 54, in __init__ > self.handler = RadiusAccounting() > File > "/usr/lib/pymodules/python2.5/mediaproxy/interfaces/accounting/radius.py", > line 90, in __init__ > raddict = pyrad.dictionary.Dictionary(*dicts) > File "/usr/lib/pymodules/python2.5/pyrad/dictionary.py", line 145, in > __init__ > self.ReadDictionary(dict) > File "/usr/lib/pymodules/python2.5/pyrad/dictionary.py", line 316, in > ReadDictionary > fil = dictfile.DictFile(file) > File "/usr/lib/pymodules/python2.5/pyrad/dictfile.py", line 48, in > __init__ > self.__ReadNode(fil) > File "/usr/lib/pymodules/python2.5/pyrad/dictfile.py", line 63, in > __ReadNode > node = _Node(fil, '', parentdir) > File "/usr/lib/pymodules/python2.5/pyrad/dictfile.py", line 22, in > __init__ > self.length = len(self.lines) > TypeError: object of type 'generator' has no len() > Whats in your client.conf? > _______________________________________________ > Users mailing list > [hidden email] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > View message @ > http://n2.nabble.com/MediaProxy-cannot-read-the-RADIUS-configuration-file-tp4787907p4787932.html > To unsubscribe from MediaProxy cannot read the RADIUS configuration file, > click here. -- View this message in context: http://n2.nabble.com/MediaProxy-cannot-read-the-RADIUS-configuration-file-tp4787907p4787942.html Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
