Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to use dates in OpenLDAP's ACL entries? I'm looking to do something like to * by this/termDate < NOW none by * break

share|improve this question
not exactly a dba question if you ask me. Maybe this <>; is a better place to look? – ik_zelf Mar 7 '11 at 21:07
meta thought it was on topic, so here it is – Brad Mace Mar 7 '11 at 22:30
@ik_zelf : and this is exactly why a few of us complained about the name change. – Joe Mar 7 '11 at 23:15
so if I'm reading this correctly -- you're trying to set a termination date for the user, after which they no longer have access to do something? – Joe Mar 7 '11 at 23:22
@Joe - yeah that's the idea – Brad Mace Mar 8 '11 at 1:29
up vote 1 down vote accepted

I don't think it's possible within OpenLDAP.

When I've had to do something similar in the past, it was against an iPlanet/SunONE Directory Server, and we had a daily cron job that polled the payroll server for terminations, and then adjusted attributes as appropriate to lock the accounts.

The only approach I can think to try is if there's some way to get the equivalent of NOW in an ldap filter, so you could add a 'what' clause like:

filter=( termDate < NOW )

... but I don't know of any way to do that without some sort of external intervention to set NOW.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.