SF Feature #3048040 - Template suggestions #16

Open
opened 2015-09-25 04:12:43 +00:00 by deon · 1 comment
deon commented 2015-09-25 04:12:43 +00:00 (Migrated from gitlab.dege.au)

First, thanks for this great software, the best one I found to manage LDAP. This is my list of suggestions/compliants, I only want to give you ideas or get some help to workarround my errors ;)

Templates can be more powerful with some handful features, the big one being to allow putting arbitrary JavaScript/PHP code inside post/change tags. Some other useful features can be:

  • Fetch a single value from the directory (without selection list)
  • Multiple selection lists with absolute values (values given in the template, not inside the LDAP tree)
  • Do arbitrary arithmetic with values (via JS or PHP) not only in php.getNextNumber()

Modify templates aren't well documented, but some ideas:

  • If the templates specify objectClass(es) show/edit only attributes from that objectClass(es) and keep the value from the others
  • If the modification template only specify one attribute, edit only that attribute and keep the others with the same value. (Actually it shows all the MUST attributes)
  • Password verify action is a bit confusing, it opens a new window with new form. ¿Why not check via JavaScript the two input fields showed by the template?
  • When showing the list of available templates for editing the entry, filter them by the applicable objectClasses. (without the need to use tag)

Some Bugs (?)

  • How to compute some attributes in the background ? If I use hidden fields+AutoFill Javascript function, this fields doesn't get update. (I'm trying to ask for 'userPassword' and use it to autofill and submit sambaLMpassword and sambaNTpassword fields.
  • autonumber+pool Increments on each call to getNextNumber, will be better to get the number and increment it (in the pool LDAP tree) only after commmit the changes. For example I want to use the pool to generate posixAccount/uidNumber and sambaSamAccount/SID, If I use getNextNumber on the uidNumber I can't use it again compute the SID based on that number because I get two diferent ones. (This can be accomplished allowing to do arbitrary arithmetic on fields). Or worst: if I cancel the submit the number gets incremented too!
First, thanks for this great software, the best one I found to manage LDAP. This is my list of suggestions/compliants, I only want to give you ideas or get some help to workarround my errors ;) Templates can be more powerful with some handful features, the big one being to allow putting arbitrary JavaScript/PHP code inside post/change tags. Some other useful features can be: - Fetch a single value from the directory (without selection list) - Multiple selection lists with absolute values (values given in the template, not inside the LDAP tree) - Do arbitrary arithmetic with values (via JS or PHP) not only in php.getNextNumber() Modify templates aren't well documented, but some ideas: - If the templates specify objectClass(es) show/edit only attributes from that objectClass(es) and keep the value from the others - If the *modification* template only specify one attribute, edit only that attribute and keep the others with the same value. (Actually it shows all the MUST attributes) - Password verify action is a bit confusing, it opens a new window with new form. ¿Why not check via JavaScript the two input fields showed by the template? - When showing the list of available templates for editing the entry, filter them by the applicable objectClasses. (without the need to use tag) Some Bugs (?) - How to compute some attributes in the background ? If I use hidden fields+AutoFill Javascript function, this fields doesn't get update. (I'm trying to ask for 'userPassword' and use it to autofill and submit sambaLMpassword and sambaNTpassword fields. - autonumber+pool Increments on each call to getNextNumber, will be better to get the number and increment it (in the pool LDAP tree) only after commmit the changes. For example I want to use the pool to generate posixAccount/uidNumber and sambaSamAccount/SID, If I use getNextNumber on the uidNumber I can't use it again compute the SID based on that number because I get two diferent ones. (This can be accomplished allowing to do arbitrary arithmetic on fields). Or worst: if I cancel the submit the number gets incremented too!
deon commented 2015-09-25 04:12:53 +00:00 (Migrated from gitlab.dege.au)

Added ~1 label

Added ~1 label
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: deon/phpldapadmin#16
No description provided.