PacketFence - BTS - PacketFence
View Issue Details
0001744PacketFenceconfigurationpublic2013-10-30 16:022013-11-15 15:47
Xen0Phage 
francis 
normalminoralways
resolvedfixed 
LinuxRHEL / CentOS6
4.0.6-2 
4.1.0 
f0660655caeb7205555bc22c9dd88b8aadbc8910
0001744: Unable to add new rule to existing authentication source via the GUI
After adding a new rule to an existing authentication source, the new rule is apparently not saved. Add the new rule and then go back into the authentication source. Rule is not there.

This occurs whether you save just the new rule, or if you also save the authentication source itself.

I am unable to find any errors in the logs indicating a problem. On the contrary, I see this :

Oct 30 15:56:12 httpd.admin(0) DEBUG: Database statements not prepared, preparing... (pf::db::db_query_execute)
Oct 30 15:56:12 httpd.admin(0) DEBUG: Preparing pf::nodecategory database queries (pf::nodecategory::nodecategory_db_prepare)
Oct 30 15:56:12 httpd.admin(0) DEBUG: function pf::db::get_db_handle is calling db_connect (pf::db::db_connect)
Oct 30 15:56:12 httpd.admin(0) DEBUG: checking handle (pf::db::db_connect)
Oct 30 15:56:12 httpd.admin(0) DEBUG: (Re)Connecting to MySQL (thread id: 0) (pf::db::db_connect)
Oct 30 15:56:12 httpd.admin(0) DEBUG: connected (pf::db::db_connect)
Oct 30 15:56:12 httpd.admin(0) DEBUG: Writing source local (pf::Authentication::Source::SQLSource) (pf::authentication::writeAuthenticationConfigFile)
Oct 30 15:56:12 httpd.admin(0) DEBUG: Writing source set_role (pf::Authentication::Source::LDAPSource) (pf::authentication::writeAuthenticationConfigFile)
Oct 30 15:56:12 httpd.admin(0) DEBUG: Writing source file1 (pf::Authentication::Source::HtpasswdSource) (pf::authentication::writeAuthenticationConfigFile)

Which seems to indicate that the write succeeded. In this example. I'm specifically making changes to the set_role source.
1) Go to configuration->sources
2) Choose an existing authentication source
3) Click the "Add Rule" button
4) Enter the details for the new rule
5) Click Save
No tags attached.
Issue History
2013-10-30 16:02Xen0PhageNew Issue
2013-10-31 12:39Xen0PhageNote Added: 0003470
2013-11-01 10:50erSitztNote Added: 0003471
2013-11-15 15:47francisfixed in mtn revision => f0660655caeb7205555bc22c9dd88b8aadbc8910
2013-11-15 15:47francisNote Added: 0003473
2013-11-15 15:47francisStatusnew => resolved
2013-11-15 15:47francisFixed in Version => 4.1.0
2013-11-15 15:47francisResolutionopen => fixed
2013-11-15 15:47francisAssigned To => francis

Notes
(0003470)
Xen0Phage   
2013-10-31 12:39   
Louis suggested restarting memcached. Restarting that appears to have resolved this problem for the time being. I'm able to add/remove rules now.
(0003471)
erSitzt   
2013-11-01 10:50   
Same here, restarting memcached resolved the problem temporarily.
(0003473)
francis   
2013-11-15 15:47   
There's a patch available here for 4.0.6-2 :

https://github.com/inverse-inc/packetfence/commit/5d4bfc2883e6f66bb1938a79c3e677c9c53c3854 [^]