From 13ddc63d947d11106a4183604017f9ae57bffe41 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 1 May 2011 12:14:54 +0000 Subject: pass dn and attributes to functions separately git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1452 ef36b2f9-881f-0410-afb5-c4e39611909c --- pynslcd/host.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pynslcd/host.py') diff --git a/pynslcd/host.py b/pynslcd/host.py index 1f5d58c..b8c86d0 100644 --- a/pynslcd/host.py +++ b/pynslcd/host.py @@ -33,9 +33,8 @@ class HostRequest(common.Request): attributes = ( 'cn', 'ipHostNumber' ) - def write(self, entry): - dn, attributes = entry - hostname = common.get_rdn_value(entry, self.attmap_cn) + def write(self, dn, attributes): + hostname = common.get_rdn_value(dn, self.attmap_cn) hostnames = attributes.get(self.attmap_cn, []) if not hostnames: print 'Error: entry %s does not contain %s value' % ( dn, self.attmap_cn ) -- cgit v1.2.3