I am trying to construct the correct syntax for an LDAP query. At present I have
which pulls all people records modified after 10th Jan 2012.
This works fine, however the modifytimestamp query is fixed.
I am trying to replace the fixed timestamp 20120110000000Z with a calculated variable of something like 'today - 3 days' using any inbuilt operators/variables LDAP has (that's the bit I can't find out).
e.g
Does anyone have any ideas on the correct LDAP syntax for this? Is it even possible?
Code:
ldap://clientaddress.com/o=client.com?uid?sub?(&(objectclass=clientperson)(clientmetalink=ITDESK)(modifytimestamp>=20120110000000Z))
This works fine, however the modifytimestamp query is fixed.
I am trying to replace the fixed timestamp 20120110000000Z with a calculated variable of something like 'today - 3 days' using any inbuilt operators/variables LDAP has (that's the bit I can't find out).
e.g
Code:
ldap://clientaddress.com/o=client.com?uid?sub?(&(objectclass=clientperson)(clientmetalink=ITDESK)(modifytimestamp>=currentDate -3 days))
Comment