From 4e603409f76c14ba7b11c437eac6116a2afce603 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sat, 9 Mar 2013 23:02:29 +0100 Subject: move Search class to search module --- pynslcd/host.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pynslcd/host.py') diff --git a/pynslcd/host.py b/pynslcd/host.py index 49de45b..ffd9588 100644 --- a/pynslcd/host.py +++ b/pynslcd/host.py @@ -1,7 +1,7 @@ # host.py - lookup functions for host names and addresses # -# Copyright (C) 2011, 2012 Arthur de Jong +# Copyright (C) 2011, 2012, 2013 Arthur de Jong # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public @@ -21,13 +21,14 @@ import cache import common import constants +import search attmap = common.Attributes(cn='cn', ipHostNumber='ipHostNumber') filter = '(objectClass=ipHost)' -class Search(common.Search): +class Search(search.LDAPSearch): canonical_first = ('cn', ) required = ('cn', ) -- cgit v1.2.3