From 861cda3cb5256a177845029ddf1900f51271b56c Mon Sep 17 00:00:00 2001 From: "rcritten@redhat.com" Date: Fri, 24 Aug 2007 15:42:56 -0400 Subject: Initial support for Groups Create separate object for Users and Groups (using same base class) Check for uniqueness before adding new users and groups Remove user_container from everything but add operations Abstract out a number of functions that are common across users and groups Make sure all strings passed in to be in a filter are checked Add new error message: No modifications specified --- ipa-server/ipaserver/ipaldap.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ipa-server/ipaserver/ipaldap.py') diff --git a/ipa-server/ipaserver/ipaldap.py b/ipa-server/ipaserver/ipaldap.py index aaa4a35a..0b2a152e 100644 --- a/ipa-server/ipaserver/ipaldap.py +++ b/ipa-server/ipaserver/ipaldap.py @@ -320,6 +320,9 @@ class IPAdmin(SimpleLDAPObject): modlist = self.generateModList(olduser, newuser) + if len(modlist) == 0: + raise ipaerror.gen_exception(ipaerror.LDAP_EMPTY_MODLIST) + try: self.set_option(ldap.OPT_SERVER_CONTROLS, sctrl) self.modify_s(dn, modlist) -- cgit