summaryrefslogtreecommitdiffstats
path: root/nova/auth
diff options
context:
space:
mode:
authorTodd Willey <todd@ansolabs.com>2010-10-28 12:25:39 -0400
committerTodd Willey <todd@ansolabs.com>2010-10-28 12:25:39 -0400
commit208da85e85131a9b60a1fadea3e4242fa70dcde2 (patch)
treeef3ee9e6f6b307fd6896953606f2120e0698a51c /nova/auth
parent6cbc507cd821d91a9ce21e78b50748fa59ddf356 (diff)
downloadnova-208da85e85131a9b60a1fadea3e4242fa70dcde2.tar.gz
nova-208da85e85131a9b60a1fadea3e4242fa70dcde2.tar.xz
nova-208da85e85131a9b60a1fadea3e4242fa70dcde2.zip
Whitespace and docstring cleanups
Diffstat (limited to 'nova/auth')
-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]