From e9dfbfa773149c57544e5c8e4d87a00fc9960bf1 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Thu, 8 Nov 2007 22:12:42 -0500 Subject: Enable multi-value field support for some attributes on the edit pages Better error reporting in the GUI Include a document describing how multi-valued fields work --- ipa-python/ipaerror.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ipa-python/ipaerror.py') diff --git a/ipa-python/ipaerror.py b/ipa-python/ipaerror.py index 0106132c..b10a9a8f 100644 --- a/ipa-python/ipaerror.py +++ b/ipa-python/ipaerror.py @@ -28,6 +28,11 @@ class IPAError(exceptions.Exception): error.""" self.code = code self.message = message + # Fill this in as an empty LDAP error message so we don't have a lot + # of "if e.detail ..." everywhere + if detail is None: + detail = [] + detail.append({'desc':'','info':''}) self.detail = detail def __str__(self): -- cgit From 99b84bfd01e0b3f4e9e69ea7c2912545bef0d71a Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 9 Nov 2007 16:34:52 -0500 Subject: Handle ldap.UNWILLING_TO_PERFORM more gracefully --- ipa-python/ipaerror.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ipa-python/ipaerror.py') diff --git a/ipa-python/ipaerror.py b/ipa-python/ipaerror.py index b10a9a8f..f583322e 100644 --- a/ipa-python/ipaerror.py +++ b/ipa-python/ipaerror.py @@ -152,3 +152,8 @@ CONNECTION_GSSAPI_CREDENTIALS = gen_error_code( CONNECTION_CATEGORY, 0x0003, "GSSAPI Authorization error") + +CONNECTION_UNWILLING = gen_error_code( + CONNECTION_CATEGORY, + 0x0004, + "Account inactivated. Server is unwilling to perform.") -- cgit From 1967aafa3985fa87e02ae372164abe2524d9bd65 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 16 Nov 2007 12:59:32 -0500 Subject: Implement the password policy UI and finish IPA policy UI This includes a default password policy Custom fields are now read from LDAP. The format is a list of dicts with keys: label, field, required. The LDAP-based configuration now specifies: ipaUserSearchFields: uid,givenName,sn,telephoneNumber,ou,title ipaGroupSearchFields: cn,description ipaSearchTimeLimit: 2 ipaSearchRecordsLimit: 0 ipaCustomFields: ipaHomesRootDir: /home ipaDefaultLoginShell: /bin/sh ipaDefaultPrimaryGroup: ipausers ipaMaxUsernameLength: 8 ipaPwdExpAdvNotify: 4 This could use some optimization. --- ipa-python/ipaerror.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ipa-python/ipaerror.py') diff --git a/ipa-python/ipaerror.py b/ipa-python/ipaerror.py index f583322e..5391b3fd 100644 --- a/ipa-python/ipaerror.py +++ b/ipa-python/ipaerror.py @@ -123,6 +123,11 @@ LDAP_EMPTY_MODLIST = gen_error_code( 0x0006, "No modifications to be performed") +LDAP_NO_CONFIG = gen_error_code( + LDAP_CATEGORY, + 0x0007, + "IPA configuration not found") + # # Input errors (sample - replace me) # -- cgit