diff options
Diffstat (limited to 'pynslcd/rpc.py')
-rw-r--r-- | pynslcd/rpc.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pynslcd/rpc.py b/pynslcd/rpc.py index 9db1b16..94c63e2 100644 --- a/pynslcd/rpc.py +++ b/pynslcd/rpc.py @@ -33,10 +33,9 @@ class RpcRequest(common.Request): attributes = ( 'cn', 'oncRpcNumber' ) - def write(self, entry): - dn, attributes = entry + def write(self, dn, attributes): # get name - name = common.get_rdn_value(entry, self.attmap_cn) + name = common.get_rdn_value(dn, self.attmap_cn) names = attributes.get(self.attmap_cn, []) if not names: print 'Error: entry %s does not contain %s value' % ( dn, self.attmap_cn ) |