From 3d5c0e133cb2c66ed8b523b131773107c95deb6f Mon Sep 17 00:00:00 2001
From: dugan <dugan@localhost>
Date: Thu, 20 Nov 2008 13:07:59 +0000
Subject: [PATCH] timeofday bind rule keyword missing "!=" and "=" operators. Issue 3628.
---
opends/src/server/org/opends/server/authorization/dseecompat/TimeOfDay.java | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/authorization/dseecompat/TimeOfDay.java b/opends/src/server/org/opends/server/authorization/dseecompat/TimeOfDay.java
index 7fea51d..6d62ccf 100644
--- a/opends/src/server/org/opends/server/authorization/dseecompat/TimeOfDay.java
+++ b/opends/src/server/org/opends/server/authorization/dseecompat/TimeOfDay.java
@@ -99,6 +99,20 @@
int currentTime=TimeThread.getHourAndMinute();
//check the type
switch (type) {
+ case EQUAL_BINDRULE_TYPE:
+ if (currentTime == timeRef)
+ {
+ matched=EnumEvalResult.TRUE;
+ }
+ break;
+
+ case NOT_EQUAL_BINDRULE_TYPE:
+ if (currentTime != timeRef)
+ {
+ matched=EnumEvalResult.TRUE;
+ }
+ break;
+
case LESS_OR_EQUAL_BINDRULE_TYPE:
if (currentTime <= timeRef)
{
--
Gitblit v1.10.0