https://bugs.openldap.org/show_bug.cgi?id=6683
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |WORKSFORME
--- Comment #6 from Quanah Gibson-Mount quanah@openldap.org --- Updated the configuration to use slapd-mdb as the backend, and the data.ldif to use the year 2021 instead of 2010 so the entries wouldn't expire.
Works correctly for me.
slapd.conf: ------------------ include /opt/symas/etc/openldap/schema/core.schema
pidfile /var/symas/run/slapd.pid argsfile /var/symas/run/slapd.args
moduleload back_mdb.la moduleload dds.la
access to dn.base="" by * read access to dn.base="cn=Subschema" by * read
database config rootpw secret
database mdb maxsize 1073741824 suffix "cn=Root,dc=test" rootdn "cn=Root,dc=test" rootpw "password" directory /var/symas/openldap-data index objectClass eq index entryExpireTimestamp eq,pres
access to dn.subtree="cn=Root,dc=test" by users write by * read
overlay dds dds-default-ttl 3600 dds-min-ttl 60 dds-interval 60 dds-state true
database monitor
data.ldif ----------------------------- dn: cn=Root,dc=test objectClass: top objectClass: applicationProcess cn: Root
dn: cn=top,cn=Root,dc=test objectClass: top objectClass: device objectClass: dynamicObject entryTTL: 60 entryExpireTimestamp: 20211024113626Z cn: top
dn: cn=leaf1,cn=top,cn=Root,dc=test objectClass: top objectClass: device objectClass: dynamicObject entryTTL: 60 entryExpireTimestamp: 20211024113626Z cn: leaf1
dn: cn=leaf2,cn=top,cn=Root,dc=test objectClass: top objectClass: device objectClass: dynamicObject entryTTL: 60 entryExpireTimestamp: 20211024113626Z cn: leaf2
dn: cn=leaf3,cn=top,cn=Root,dc=test objectClass: top objectClass: device objectClass: dynamicObject entryTTL: 60 entryExpireTimestamp: 20211024113626Z cn: leaf3
results:
/opt/symas/bin/ldapsearch -x -LLL -b "cn=root,dc=test" "(entryExpireTimestamp=*)" dn: cn=top,cn=Root,dc=test objectClass: top objectClass: device objectClass: dynamicObject cn: top
dn: cn=leaf1,cn=top,cn=Root,dc=test objectClass: top objectClass: device objectClass: dynamicObject cn: leaf1
dn: cn=leaf2,cn=top,cn=Root,dc=test objectClass: top objectClass: device objectClass: dynamicObject cn: leaf2
dn: cn=leaf3,cn=top,cn=Root,dc=test objectClass: top objectClass: device objectClass: dynamicObject cn: leaf3
/opt/symas/bin/ldapsearch -x -LLL -b "cn=root,dc=test" "(entryExpireTimestamp<=20211024113626Z)" dn: cn=top,cn=Root,dc=test objectClass: top objectClass: device objectClass: dynamicObject cn: top
dn: cn=leaf1,cn=top,cn=Root,dc=test objectClass: top objectClass: device objectClass: dynamicObject cn: leaf1
dn: cn=leaf2,cn=top,cn=Root,dc=test objectClass: top objectClass: device objectClass: dynamicObject cn: leaf2
dn: cn=leaf3,cn=top,cn=Root,dc=test objectClass: top objectClass: device objectClass: dynamicObject cn: leaf3