CurrentEndofDay function returns the end of day time stamp depending on the attribute type. for e.g. if the attribute is of type Generalized Time it will return the timestamp in Generalized Time format, if the attribute is of type Nano 100 seconds it will return the timestamp in Nano 100 format etc.
Syntax:
CurrentEndofDay
CurrentEndofDay - (n) days
CurrentEndofDay - (n) months
CurrentEndofDay - (n) years
CurrentEndofDay - (n) hours
CurrentEndofDay - (n) minutes
CurrentEndofDay - (n) seconds
where n is the number, for e.g CurrentEndofDay-30 days
CurrentEndofDay supports both select and update statements.
Examples:
Select Statement Examples using CurrentEndofDay
|
Query |
Search For |
|
SELECT
FROM OU=Chicago,OU=US,DC=LDAPSoft where badPasswordTime >=
CurrentEndofDay - 8 days |
To find out all the entries entered a bad password from the end of current day to the end of current day - 8 days |
|
SELECT FROM OU=Chicago,OU=US,DC=LDAPSoft where
createTimeStamp >= CurrentEndofDay - 8 days |
To find out all the entries created from the end of current day to the end of current day - 8 days |
|
SELECT FROM OU=Chicago,OU=US,DC=LDAPSoft where objectCategory='Person' and objectClass='User' and lockoutTime<= CurrentEndofDay - 8 days and lockoutTime!=0 subtreescope |
To find out all user entries with lockout time less then equal to the end of current day to the end of current day - 8 days |
Update Statement Examples using CurrentEndofDay
|
Query |
Results |
|
UPDATE
cn=testuser4,ou=testusers,o=stooges set description=
CurrentEndofDay -7 days |
Update description atribute of cn=testuser4,ou=testusers,o=stooges with CurrentEndofDay -7 days, the attribute must be of type timestamp or you will get an error.
|
|
UPDATE ou=testusers,o=stooges set description=
CurrentEndofDay -7 days |
Update description attribute all entries in container ou=testusers,o=stooges with CurrentEndofDay -7 days, the attribute must be of type timestamp or you will get an error. |
Related Links:
| LDAP Admin Tool Home Page | |