Hi,

Have just deployed a new packetfence 9.3.0 server on a Centos 7 Server.

I have just created a new role:

cat ../conf/roles.conf
[BYOD-Role]
max_nodes_per_pid=6

Mysql
MariaDB [pf]> select * from node_category;
+-------------+------------------+-------------------+----------------------------------------------+
| category_id | name             | max_nodes_per_pid | notes
                         |
+-------------+------------------+-------------------+----------------------------------------------+
|           1 | default          |                 0 | Placeholder
role/category, feel free to edit |
|           2 | guest            |                 0 | Guests
                        |
|           3 | gaming           |                 0 | Gaming devices
                        |
|           4 | voice            |                 0 | VoIP devices
                        |
|           5 | REJECT           |                 0 | Reject role (Used to
block access)           |
|           8 | BYOD-Role |                 6 | NULL
                  |
+-------------+------------------+-------------------+----------------------------------------------+

Created a new connection profile and an Authentication::Logiin portal
module that assigns this new role upon login

[Byod-Auth]
source_id=
actions=set_role(8),set_unregdate(2030-02-05)
fields_to_save=
custom_fields=
description=Byod-Auth
with_aup=0
signup_template=signin.html
pid_field=username
aup_template=aup_text.html
type=Authentication::Login

But I am getting an error on packetfence.log saying that specifed role does
not exists for pid "user" and assumed maximun number of nodes have been
reached.

Feb  6 19:04:28 SLX00010808 packetfence_httpd.portal: httpd.portal(2960)
INFO: [mac:40:a1:08:f5:c2:ac] Successfully authenticated user
(captiveportal::PacketFence::DynamicRouting::Module::Authentication::Login::authenticate)
Feb  6 19:04:28 SLX00010808 packetfence_httpd.portal: httpd.portal(2960)
INFO: [mac:40:a1:08:f5:c2:ac] Found source Metaldap in session.
(Class::MOP::Class:::around)
Feb  6 19:04:28 SLX00010808 pfqueue: pfqueue(2604) INFO: [mac:unknown]
Already did a person lookup for user (pf::lookup::person::lookup_person)
Feb  6 19:04:28 SLX00010808 packetfence_httpd.portal: httpd.portal(2960)
INFO: [mac:40:a1:08:f5:c2:ac] User user has authenticated on the portal.
(Class::MOP::Class:::after)

*Feb  6 19:04:28 SLX00010808 packetfence_httpd.portal: httpd.portal(2960)
WARN: [mac:40:a1:08:f5:c2:ac] Specified role 8 doesn't exist for pid user
(MAC 40:a1:08:f5:c2:ac); assume maximum number of registered nodes is
reached (pf::node::is_max_reg_nodes_reached)Feb  6 19:04:28 SLX00010808
packetfence_httpd.portal: httpd.portal(2960) ERROR: [mac:40:a1:08:f5:c2:ac]
max nodes per pid met or exceeded - registration of 40:a1:08:f5:c2:ac to
user failed (pf::node::node_register)*

I have done a clean install so there is just 1 user created and this node
only. Why does it says the role 8 does not exists?

What am I doing wrong? I have another server with packetfence 7.2.0 and I
think i have configured same way this server is working.

if i set manually the role to the node it works ok.

Any help help would be appreciatted

Thanks for all
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to