Hi,<br><div class="gmail_quote"><br>I am trying to configure openser + freeradius for authentication &amp; accounting.<br>I have my freeradius configured with openldap and it&#39;s working successfully.<br><br>tested with <br>
<br>radclient -f digest <a href="http://127.0.0.1:1812" target="_blank">127.0.0.1:1812</a> auth testing123<br>
<br>results are successfull.<br><br>However I cannot get it to work with openser. I see nothing happening in my &quot;/usr/sbin/radius -X&quot; output&nbsp; coming from openser when i try to register.<br><br>My enviroment was tested on Fedora 8 and Fedora 9 both with rpm&#39;s and same results.<br>

<br>auth_radius:radius_authorize_sterman: rc_auth failed<br><br>no output is seen in my&nbsp; /usr/sbin/radius -X<br><br>Below please find my openser.cfg &amp; radiusclient.conf &amp; servers <br><br>######## radiusclient.conf<br>

<br># General settings<br><br># specify which authentication comes first respectively which<br># authentication is used. possible values are: &quot;radius&quot; and &quot;local&quot;.<br># if you specify &quot;radius,local&quot; 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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; radius,local<br><br># maximum login tries a user has<br>login_tries&nbsp;&nbsp;&nbsp;&nbsp; 4<br><br># timeout for all login tries<br>

# if this time is exceeded the user is kicked out<br>login_timeout&nbsp;&nbsp; 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&#39;s only display when no username is passed<br># on the radlogin command line<br>issue&nbsp;&nbsp; /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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://127.0.0.1" target="_blank">127.0.0.1</a><br>authserver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://10.0.0.10" target="_blank">10.0.0.10</a><br>authserver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; localhost<br><br># RADIUS server to use for accouting requests. All that I<br>
# said for authserver applies, too. <br>
#<br>acctserver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://127.0.0.1:1813" target="_blank">127.0.0.1:1813</a><br><br># file holding shared secrets used for the communication<br># between the RADIUS client and server<br>servers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /etc/radiusclient-ng/servers<br>

<br># dictionary of allowed attributes and values<br># just like in the normal RADIUS distributions<br>#dictionary&nbsp;&nbsp;&nbsp;&nbsp; /usr/share/radiusclient-ng/dictionary<br>dictionary&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /etc/radiusclient-ng/dictionary.openser<br><br>

# program to call for a RADIUS authenticated login<br>login_radius&nbsp;&nbsp;&nbsp; /usr/sbin/login.radius<br><br># file which holds sequence number for communication with the<br># RADIUS server<br>seqfile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /var/run/radius.seq<br>

<br># file which specifies mapping between ttyname and NAS-Port attribute<br>mapfile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /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&nbsp; 10<br><br># resend request this many times before trying the next server<br>

radius_retries&nbsp; 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&nbsp;&nbsp;&nbsp;&nbsp; /bin/login<br><br>########################################################<br><br>#/etc/radiusclient-ng/servers<br><br>#Server Name or Client/Server pair&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Key<br>#----------------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ---------------<br>

#<a href="http://portmaster.elemental.net" target="_blank">portmaster.elemental.net</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hardlyasecret<br>#<a href="http://portmaster2.elemental.net" target="_blank">portmaster2.elemental.net</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; donttellanyone<br>

localhost&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; testing123<br><a href="http://127.0.0.1" target="_blank">127.0.0.1</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; testing123<br><a href="http://10.0.0.10" target="_blank">10.0.0.10</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; testing123<br>

<br>#######################################################<br><br> ##########openser.cfg<br><br># -- rr params --<br>debug=3<br>log_stderror=yes<br>log_facility=LOG_LOCAL0<br><br>fork=yes<br>children=4<br><br>port=5060<br>

<br># ------------------ module loading ----------------------------------<br>mpath=&quot;/usr/lib/openser/modules/&quot;<br><br>loadmodule &quot;mysql.so&quot;<br>loadmodule &quot;sl.so&quot;<br>loadmodule &quot;tm.so&quot;<br>

loadmodule &quot;rr.so&quot;<br>loadmodule &quot;maxfwd.so&quot;<br>loadmodule &quot;avpops.so&quot;<br>loadmodule &quot;usrloc.so&quot;<br>loadmodule &quot;registrar.so&quot;<br>loadmodule &quot;textops.so&quot;<br>loadmodule &quot;xlog.so&quot;<br>

loadmodule &quot;uri.so&quot;<br>loadmodule &quot;auth.so&quot;<br>loadmodule &quot;auth_radius.so&quot;<br>loadmodule &quot;mi_fifo.so&quot;<br><br>modparam(&quot;mi_fifo&quot;, &quot;fifo_name&quot;, &quot;/tmp/openser_fifo&quot;)<br>

<br><br><br><br># ----------------- setting module-specific parameters ---------------<br><br># -- usrloc params --<br>modparam(&quot;usrloc&quot;,&quot;db_url&quot;,&quot;mysql://openser:openser@localhost/openser&quot;)<br>

modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 2)<br><br># -- acc params --<br><br>modparam(&quot;auth_radius&quot;,&quot;radius_config&quot;,&quot;/etc/radiusclient-ng/radiusclient.conf&quot;)<br><br># add value to ;lr param to make some broken UAs happy<br>

modparam(&quot;rr&quot;, &quot;enable_full_lr&quot;, 1)<br><br># -------------------------&nbsp; request routing logic -------------------<br><br># main routing logic<br><br>route{<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # authenticate registers<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (method==&quot;REGISTER&quot;) {<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!radius_www_authorize(&quot;&quot;)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; www_challenge(&quot;&quot;, &quot;0&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; save(&quot;location&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<br>

<br>&nbsp;&nbsp;&nbsp; };<br><br>&nbsp;&nbsp;&nbsp; route(1);<br>}<br><br># generic forward<br>route[1] {<br>&nbsp;&nbsp;&nbsp; # send it out now; use stateful forwarding as it works reliably<br>&nbsp;&nbsp;&nbsp; # even for UDP2TCP<br>&nbsp;&nbsp;&nbsp; if (!t_relay()) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sl_reply_error();<br>

&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; exit;<br>}<br>#<br><br>Thanks for your help<br><font color="#888888"><br>SJX<br><br><br><br><br><br>
</font></div><br>