Hello Ismael,

you created a user in radius but it probably doesn't exist on packetfence side. (check packetfence.log) So remove what you did in /usr/local/pf/raddb/users and follow this documentation:
https://github.com/inverse-inc/packetfence/blob/devel/docs/PacketFence_Administration_Guide.asciidoc#option-5-eap-local-user-authentication

Also don't forget to create a portal profile with a specific filter (like SSID, switch ... that match your connection) and add local authentication source.

Then retry.

Regards
Fabrice


Le 2015-11-10 21:04, ismael flavio silva a écrit :
Hello :)

I am locally test the radius. He appears to accept any user or password, and log accuses a problem with the mac-address.
I see in the community but everybody uses AD or an equivalent server.

LOG

/usr/local/pf/logs/radius.log

Tue Nov 10 20:56:47 2015 : Auth: Login OK: [ismael] (from client PacketFence-ZEN-5-3.local port 0) Tue Nov 10 20:56:47 2015 : Info: rlm_perl: MAC address is empty or invalid in this request. It could be normal on certain radius calls

-----------------------------------

/usr/sbin/radiusd -d /usr/local/pf/raddb/ -X

......
......

radiusd: #### Opening IP addresses and Ports ####
listen {
        type = "auth"
        virtual_server = "packetfence"
        ipaddr = 192.168.100.5
        port = 0
}
listen {
        type = "acct"
        virtual_server = "packetfence"
        ipaddr = 192.168.100.5
        port = 0
}
listen {
        type = "control"
 listen {
        socket = "/usr/local/pf/var/run/radiusd.sock"
        mode = "rw"
 }
}
listen {
        type = "auth"
        ipaddr = 127.0.0.1
        port = 18120
}
 ... adding new socket proxy address * port 49410
Listening on authentication address 192.168.100.5 port 1812 as server packetfence Listening on accounting address 192.168.100.5 port 1813 as server packetfence
Listening on command file /usr/local/pf/var/run/radiusd.sock
Listening on authentication address 127.0.0.1 port 18120 as server inner-tunnel
Listening on proxy address 192.168.100.5 port 1814
Ready to process requests.

configs

/usr/local/pf/raddb/users

ismael Cleartext-Password := "12345678"

Configuration → Advanced -> plaintext

Thanks



------------------------------------------------------------------------------


_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users

------------------------------------------------------------------------------
_______________________________________________
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to