197 Commits

Author SHA1 Message Date
2348da36c4 Fix hasing password on entry create. Fixes #353
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 28s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 2m46s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 15m7s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s
2025-06-27 14:18:52 +10:00
6f58f5db36 Fix bug introduced with 553368c, when clearing session _auto_number when need to allow for edits that doesnt have this set
Some checks failed
Create Docker Image / Test Application (x86_64) (push) Successful in 28s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 2m41s
Create Docker Image / Final Docker Image Manifest (push) Has been cancelled
Create Docker Image / Build Docker Image (x86_64) (push) Has been cancelled
2025-06-27 14:03:35 +10:00
553368c7b9 Implement getNextNumber() to populate template->values for attributes, where the attribute is determined after evaulating whats in the directory
Some checks failed
Create Docker Image / Test Application (x86_64) (push) Successful in 28s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 3m1s
Create Docker Image / Final Docker Image Manifest (push) Has been cancelled
Create Docker Image / Build Docker Image (x86_64) (push) Has been cancelled
2025-06-27 13:50:01 +10:00
c8d1122ff6 Fix validation on existing entries, missed in 88db4cc 2025-06-26 23:13:46 +10:00
6f20d426ad Dont sort by DN, problematic when sssvlv overlay is used in openldap. Seems DN's are sorted anyway. Fixes #350 2025-06-26 21:55:10 +10:00
3bf97fc0d1 Add the ability to use a select list for template attributes 2025-06-22 22:08:38 +10:00
3ad4c446ea Change our template attribute processing, to be collections, so we can find attributes using anycase keys 2025-06-22 17:27:56 +10:00
ee3cb395c2 Enhancement to 8fd2a43, validating authentication before rendering the DN doesnt exist error (otherwise it is an authentication issue) 2025-06-22 14:07:33 +10:00
f6b7bff605 Enable disabling internal templates, as well as having custom templates 2025-06-22 09:11:47 +10:00
e8aaa17122 Change our internal template keys to be prefixed with an underscore for easier identification 2025-06-22 09:11:47 +10:00
ee7762d69b Working JS Template Engine with basic functionality 2025-06-22 09:11:43 +10:00
b6bce380dd Fix for when specifying multiple base DNs with LDAP_BASE_DN, and the user doesnt have access to the first one. 2025-06-20 17:13:33 +10:00
8fd2a43ee2 Add alert for DN logins that dont exist. Might be attempts to use the rootdn which is not supported.
Closes #345
2025-06-20 17:13:33 +10:00
96afbd8316 Pass the template object to the attributes, so we can leverage template rules when rendering attributes 2025-06-20 17:13:33 +10:00
5ce3a63878 Revert c56df8d3d and remove adding Objects directly - taking a different approach to add template actions 2025-06-19 16:15:22 +10:00
ac8e79ab99 Minor logging message updates, no functional changes 2025-06-19 16:15:22 +10:00
d0c02b91c0 Re-implement LDAP_BASE_DN to limit what is shown in the tree, and what PLA uses internally to search the server. Fixes #342 2025-06-19 16:15:22 +10:00
2a691c147e Remove references to APP_URL and LDAP_BASE_DN, they are not actually used 2025-06-19 16:15:22 +10:00
98a0b87afe Add objects directly to Entry::class when rendering a template. Fix objectclasses and attributes processing for templates 2025-06-19 16:15:22 +10:00
88db4ccc99 Update AttributeTypes/LDAPSyntaxes/MatchingRules for performance and process improvements 2025-06-18 22:39:23 +10:00
6059bc1e45 Pass template to our component rendering to avoid duplicate javascript object id's 2025-06-18 22:39:23 +10:00
acf19cdc5b Optimize schema objectclass processing, changing debugging output, remove redundant functions 2025-06-13 23:03:27 +10:00
56fcd729e7 Load the rootDSE in Server::__construct(), remove basedn from views, and rely on the javascript to get the basedns 2025-06-12 12:06:44 +09:30
d61f6168a4 Remove MatchRuleUse::class, it wasnt used 2025-06-12 12:06:44 +09:30
f2eaed247a Cache loading templates 2025-06-12 12:06:44 +09:30
9f0290bd40 Enable creation of new entries via templates 2025-06-12 12:06:44 +09:30
820f398c2c Start of work on templates - identify templates that apply to existing entries 2025-06-10 16:02:07 +10:00
8602c2b17f Only swap in user's credentials if the requested page is not the logout page. This avoids an issue if the user's credentials are changed during their session, they couldnt log out 2025-06-09 10:31:25 +10:00
06b7c204b0 Add more Certificate Serial Number, Subject and Authority Key IDs
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 28s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m39s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 2m55s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
2025-06-03 22:49:04 +10:00
db600a28d3 Install amiranagram/localizator into dev setup to identify translatable strings,
Show locale on the debug frame,
Detect the browsers language,
Documentation on translating PLA, and
Some missed translatable strings
2025-06-02 10:39:02 +10:00
6599bb7f4f Fix deprecation message introduced by 3d511f3
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 27s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m24s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 2m48s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s
2025-06-01 16:08:11 +10:00
d623f3c26d Move langtag rendering from dn/Entry into Attribute - more enhancements for #16,
Reduce use of style= tags,
Cosmetic layout changes,
Layout change to enable rendering template views,
<attribute> id tags are now lowecase
2025-06-01 16:08:11 +10:00
c6e1640752 Fix for when the logged in user's details doesnt include an objectclass (because the query didnt have the ACLs to return them).
This should help #330 but doesnt allow the user to login even if they have the right objectclasses, but the query didnt return them.
2025-05-24 22:02:58 +10:00
148d19bbce Some extra debug logging to help with fixes testing 2025-05-24 22:02:58 +10:00
4e991db8b1 Fix showing required attributes when required by a parent class of the entries objectclasses 2025-05-24 00:26:55 +10:00
181971acc4 Improvements to userPassword handling when redirecting back. No need to use old() when rendering attributes, since they have already been processed by display with any updates 2025-05-24 00:26:55 +10:00
3493504720 Fix exception 500 being raised 'Argument #1 () must be of type array' when creating new entries with a userPassword. Fixes #320 2025-05-24 00:26:55 +10:00
6d55b52cd4 Attribute search should be lowercase, since we are comparing against $o->name_lc
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m21s
Create Docker Image / Test Application (x86_64) (push) Successful in 28s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m32s
Create Docker Image / Final Docker Image Manifest (push) Successful in 8s
2025-05-04 20:23:42 +10:00
f8d7819153 Fix for ARGON2 passwords, they shouldnt be base64 encoded. Fixes #316 2025-05-04 00:01:40 +10:00
75dbb37d8b $langtag doesnt need to be passed to x-attribute.layout. Fix adding new userpassword. Only show Add Value when the Attribute has atleast 1 old value 2025-05-04 00:01:40 +10:00
309fe83c98 LDAP server errors were not being displayed when used with ->withErrors(), so created a new component x-failed 2025-05-04 00:01:40 +10:00
ffb98631a6 Implemented search via the top menu 2025-05-03 20:27:16 +10:00
5d23cbf0cc If a user doesnt have permission to see an entries attributes - but can see the entry, disable edit and dont attempt to render. Further, if they cant see the objectclasses, dont make additional attributes available 2025-05-01 12:12:20 +09:30
ae782577e7 Automatically work out if attributes are internal (because they are not used in objectclasses)
Some checks failed
Create Docker Image / Test Application (x86_64) (push) Has been cancelled
Create Docker Image / Build Docker Image (arm64) (push) Has been cancelled
Create Docker Image / Build Docker Image (x86_64) (push) Has been cancelled
Create Docker Image / Final Docker Image Manifest (push) Has been cancelled
2025-04-30 21:46:57 +09:30
64cc21d819 Fix logic processing isDirty() for MD5Update apps by checking that the new & old values dont equal before checking their md5 value 2025-04-30 09:04:10 +09:30
3d511f3fae Change rendering of notes/errors/update and highlight attributes that are successfully updated 2025-04-30 09:04:10 +09:30
bab5a2626d Remove Components/AttributeType::class it wasnt providing any functionality 2025-04-30 09:04:10 +09:30
6954b09089 @todo udpates 2025-04-27 14:12:24 +10:00
a336e58b7a Fixes for 389 Directory Server - addresses recursion issue #314. The primary issue was that 389DS doesnt render the subschemaSubentry attribute unless it is specifically requested. 2025-04-27 14:12:24 +10:00
53880121b6 Server::class optimisations, minimal functional changes - basically caching/performance improvements 2025-04-27 14:12:24 +10:00