Bug #5088
closed
system_authservers.php - When input validation errors occur, several field values are lost
Added by Jim Pingle about 9 years ago.
Updated about 9 years ago.
Description
When you save an auth server, LDAP for example, and an input validation problem happens, several fields are lost. Might be more than this but this is what I noticed:
- Authentication containers is blank
- User/group/member attributes reset
- Status changed from Confirmed to Feedback
- Assignee changed from Anonymous to Jim Pingle
Functionality was not present in 2.2. Added $pconfig = $_POST to restore form contents on validation failure
- % Done changed from 0 to 100
- Status changed from Feedback to Confirmed
- Assignee changed from Jim Pingle to Anonymous
Behavior seems to be the same. Some fields like "Base DN" stay, but the ones mentioned in the original description disappear (e.g. Authentication Containers)
For testing, here are the fields and what I entered. To reproduce the input error, simply make a second entry with an identical name:
Descriptive Name: OpenLDAPTest
Type: LDAP
Hostname or IP address: 192.168.1.2
Port value: 389
Transport: TCP - Standard
Protocol Version: 3
Search Scope:
Level: Entire Subtree
Base DN: dc=pfsense,dc=org
Authentication Containers: ou=people,dc=pfsense,dc=org;ou=groups,dc=pfsense,dc=org
Extended Query: Checked, memberOf=cn=foo (not really valid but doesn't need to be)
Bind anonymous: Checked
Initial Template: OpenLDAP
User naming attribute: cn
Group naming attribute: cn
Group member attribute: memberUid
UTF8: Checked
Username Alterations: Unchecked
- Status changed from Confirmed to Feedback
- Assignee changed from Anonymous to Jim Pingle
I had been testing by omitting the IP address and so causing an error. Unfortunately that takes a slightly different code path than the duplicate entry error.
Now corrected.
- Status changed from Feedback to Resolved
Works correctly now, thanks!
Also available in: Atom
PDF