Creates an update_entry api call, aliases update_user and update_group to it.

This commit is contained in:
Kevin McCarthy committed 2007-10-15 09:04:13 -07:00
1 parent 63f7cdf7f7
commit fbbdd27b53
5 files changed
+28 -8

No files matched your search

+6
View File
@@ -78,6 +78,12 @@ class IPAClient:
result = self.transport.get_entry_by_cn(cn,sattrs)
return entity.Entity(result)
def update_entry(self,entry):
"""Update a entry."""
result = self.transport.update_entry(entry.origDataDict(), entry.toDict())
return result
# User support
def get_user_by_uid(self,uid,sattrs=None):
"""Get a specific user by uid. If sattrs is set then only those