summaryrefslogtreecommitdiff
path: root/pynslcd/shadow.py
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-12-12 22:59:00 +0000
committerArthur de Jong <arthur@arthurdejong.org>2011-12-12 22:59:00 +0000
commit8c480f86c83b45d8922ae2b7353874ed499f3df1 (patch)
treeff609b39a803cf74d59f1a53fda272e73f1c0097 /pynslcd/shadow.py
parent330a28040095fff67e9cb105019f3b4cb7cb5f0e (diff)
define the search separately from the request
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1571 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'pynslcd/shadow.py')
-rw-r--r--pynslcd/shadow.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pynslcd/shadow.py b/pynslcd/shadow.py
index 73b8fea..e8e5f52 100644
--- a/pynslcd/shadow.py
+++ b/pynslcd/shadow.py
@@ -37,12 +37,15 @@ filter = '(objectClass=shadowAccount)'
bases = ( 'ou=people,dc=test,dc=tld', )
-class ShadowRequest(common.Request):
+class Search(common.Search):
case_sensitive = ('uid', )
limit_attributes = ('uid', )
required = ('uid', )
+
+class ShadowRequest(common.Request):
+
def write(self, dn, attributes, parameters):
# get name and check against requested name
names = attributes['uid']