summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/auth/fakeldap.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/nova/auth/fakeldap.py b/nova/auth/fakeldap.py
index 1a49b73fe..176a00f06 100644
--- a/nova/auth/fakeldap.py
+++ b/nova/auth/fakeldap.py
@@ -15,12 +15,14 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
+
"""
-Fake LDAP server for test harnesses.
+Fake LDAP server for test harness, backs to ReDIS.
This class does very little error checking, and knows nothing about ldap
-class definitions. It implements the minimum emulation of the python ldap
+class definitions. It implements the minimum emulation of the python ldap
library to work with nova.
+
"""
import json
@@ -77,8 +79,8 @@ def initialize(_uri):
def _match_query(query, attrs):
"""Match an ldap query to an attribute dictionary.
- &, |, and ! are supported in the query. No syntax checking is performed,
- so malformed querys will not work correctly.
+ The characters &, |, and ! are supported in the query. No syntax checking
+ is performed, so malformed querys will not work correctly.
"""
# cut off the parentheses
inner = query[1:-1]