Senhores<br>boa tarde<br><br>estou começando a estudar o FreeRadius, mas estou tendo um problema bem simples que nao estou conseguindo resolver. Para fins de teste, estou tentando fazer o freeradius autenticar com os usuários do linux.<br>
<br>A configuração está a seguinte: <br>/etc/raddb/radiusd.conf<br>===<br>        unix {<br>                cache = no<br>                cache_reload = 600<br>                passwd = /etc/passwd<br>                shadow = /etc/shadow<br>
                group = /etc/group<br>                radwtmp = ${logdir}/radwtmp<br>        }<br><br>        authenticate {<br>                unix<br>       }<br>===<br>/etc/raddb/clients.conf<br>
===<br>client 127.0.0.1 {<br>        secret          = testing123<br>        shortname       = localhost<br>        nastype     = other     # localhost isn&#39;t usually a NAS...<br>}<br>===<br><br>Quando tento dar o comando de teste:<br>
===<br># radtest root abc123 localhost 1 testing123<br>===<br><br>No servidor aparece a seguinte mensagem:<br>===<br>rad_recv: Access-Request packet from host <a href="http://127.0.0.1:1024">127.0.0.1:1024</a>, id=6, length=56<br>
    User-Name = &quot;root&quot;<br>    User-Password = &quot;abc123&quot;<br>    NAS-IP-Address = 255.255.255.255<br>    NAS-Port = 1<br>  Processing the authorize section of radiusd.conf<br>modcall: entering group authorize for request 0<br>
  modcall[authorize]: module &quot;preprocess&quot; returns ok for request 0<br>  modcall[authorize]: module &quot;chap&quot; returns noop for request 0<br>  modcall[authorize]: module &quot;mschap&quot; returns noop for request 0<br>
    rlm_realm: No &#39;@&#39; in User-Name = &quot;root&quot;, looking up realm NULL<br>    rlm_realm: No such realm &quot;NULL&quot;<br>  modcall[authorize]: module &quot;suffix&quot; returns noop for request 0<br>  rlm_eap: No EAP-Message, not doing EAP<br>
  modcall[authorize]: module &quot;eap&quot; returns noop for request 0<br>    users: Matched entry DEFAULT at line 152<br>  modcall[authorize]: module &quot;files&quot; returns ok for request 0<br>modcall: leaving group authorize (returns ok) for request 0<br>
  rad_check_password:  Found Auth-Type System<br>auth: type &quot;System&quot;<br>  Processing the authenticate section of radiusd.conf<br>modcall: entering group authenticate for request 0<br>rlm_unix: [root]: invalid password<br>
  modcall[authenticate]: module &quot;unix&quot; returns reject for request 0<br>modcall: leaving group authenticate (returns reject) for request 0<br>auth: Failed to validate the user.<br>Delaying request 0 for 1 seconds<br>
Finished request 0<br>===<br><br>E no terminal cliente aparece:<br>===<br>Sending Access-Request of id 6 to 127.0.0.1 port 1812<br>    User-Name = &quot;root&quot;<br>    User-Password = &quot;abc123&quot;<br>    NAS-IP-Address = 255.255.255.255<br>
    NAS-Port = 1<br>rad_recv: Access-Reject packet from host <a href="http://127.0.0.1:1812">127.0.0.1:1812</a>, id=6, length=20<br>===<br><br>Alguém pode me ajudar?<br><br>[]s<br clear="all">________________________________________________<br>
Renato de Oliveira Diogo<br><br>Bacharel em Ciência da Computação<br>UNESP - Bauru<br><br>LPIC1 - Linux Professional Institute Certification - Nível 1<br><br><a href="mailto:renato.diogo@gmail.com">renato.diogo@gmail.com</a><br>
<a href="mailto:renato.diogo@yahoo.com.br">renato.diogo@yahoo.com.br</a><br>