diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-12-12 22:59:00 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-12-12 22:59:00 +0000 |
commit | 8c480f86c83b45d8922ae2b7353874ed499f3df1 (patch) | |
tree | ff609b39a803cf74d59f1a53fda272e73f1c0097 /pynslcd/alias.py | |
parent | 330a28040095fff67e9cb105019f3b4cb7cb5f0e (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/alias.py')
-rw-r--r-- | pynslcd/alias.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pynslcd/alias.py b/pynslcd/alias.py index fe7bd7b..a19382e 100644 --- a/pynslcd/alias.py +++ b/pynslcd/alias.py @@ -28,12 +28,15 @@ attmap = common.Attributes(cn='cn', rfc822MailMember='rfc822MailMember') filter = '(objectClass=nisMailAlias)' -class AliasRequest(common.Request): +class Search(common.Search): case_insensitive = ('cn', ) limit_attributes = ('cn', ) required = ('cn', 'rfc822MailMember') + +class AliasRequest(common.Request): + def write(self, dn, attributes, parameters): # get values names = attributes['cn'] |