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