-
-
Notifications
You must be signed in to change notification settings - Fork 192
[Bug]: UI problems with 'simpleSecurityObject' object class #383
Description
Is there an existing issue for this?
- I have searched the existing issues
Environment
- OS: docker image via podman 5.5.2
- PHP: frankenphp
- LDAP Server: openldapPLA Code
Docker hub
PLA Version
v2.3.0-rel-ff24ceac
Current Behavior
creating or modifying an object that includes 'simpleSecurityObject' as an object clase via the UI fail with 'validation error'. I could nof find any additional details as to the root cause of this error.
Expected Behavior
Adding simpleSecurityObject as an objectClass should be successfui presuming the userPassword field is valid.
Steps To Reproduce
Via the UI, create a new object or edit an existing object.
add the objectClass 'simpleSecurityObject' if it does not already exist
update the userPassword field providing a valid password.
attempt to save the changes.
notice the 'Validation error' at the top left
Relevant log output
I was unable to locate any errors in the logs. I endabled debug logging which produced a log of messages, but nothing that appeared relevant.Anything else?
Attempting the same object creation or modification via the import function with ldif works as expected. Here are some LDIF examples for different (password is not in use for legit accounts and my ldap converts to argon2) senarios:
Creation without simpleSecurityObject object class and the add it (2 imports:
version: 1
dn: cn=test,ou=groups,dc=example,dc=com
cn: test
member: cn=test,ou=groups,dc=example,dc=com
objectClass: groupOfNames
objectClass: top
version: 1
dn: cn=test,ou=groups,dc=example,dc=com
changetype: modify
add: objectClass
objectClass: simpleSecurityObject
add: userPassword
userPassword: c9RPA6tGpL0rxTBlNUwlnrjZGNDMToKgO5zHQUFQDnbsJhb2b1V6cMzWcQPM2V9q
Creation with simpleSecurityObject class:
version: 1
dn: cn=test,ou=groups,dc=example,dc=com
cn: test
member: cn=test,ou=groups,dc=example,dc=com
objectClass: groupOfNames
objectClass: simpleSecurityObject
objectClass: top
userPassword: c9RPA6tGpL0rxTBlNUwlnrjZGNDMToKgO5zHQUFQDnbsJhb2b1V6cMzWcQPM2V9q
Modification of existing simpleSecurityObject:
version: 1
dn: cn=test,ou=groups,dc=example,dc=com
changetype: modify
replace: userPassword
userPassword: c9RPA6tGpL0rxTBlNUwlnrjZGNDMToKgO5zHQUFQDnbsJhb2b1V6cMzWcQPM2V9
All of these operations are successful via phpLdapAdmin using the LDIF import function. But when attempted through they all give the same 'validation error' with no further details.
BTW thanks for creating this tool, it is super handy!