lsc icon indicating copy to clipboard operation
lsc copied to clipboard

allow javascript in LDAP filters

Open davidcoutadeur opened this issue 6 years ago • 2 comments

It would be nice to have the possibility to use javascript in LDAP filter, even if srcBean and dstBean are not available at this place. For example for this use case:

var today = new Date();
// compute todayGeneralizedTime
var result = "(&objectClass=inetOrgPerson)(personLeaveDate >= " + todayGeneralizedTime + "))";
result

davidcoutadeur avatar Jun 04 '19 14:06 davidcoutadeur

Indeed, but this can also be managed in conditions.

coudot avatar Jun 07 '19 15:06 coudot

With #92 we could use an environment variable for the date.

coudot avatar Feb 10 '20 13:02 coudot