[Freeipa-devel] [PATCH] Correctly handle EmptyModlist exception in pwpolicy2-mod.

Pavel Zůna pzuna at redhat.com
Wed May 12 17:22:18 UTC 2010


On 2010-05-10 15:44, Pavel Zuna wrote:
> EmptyModlist exception was generated by pwpolicy2-mod when modifying
> policy priority only. It was because the priority attribute is stored
> outside of the policy entry (in a CoS entry) and there was nothing left
> to be changed in the policy entry.
>
> This patch uses the new exception callbacks in baseldap.py classes
> (introduced in my recent patch no. 0004) to catch the EmptyModlist
> exception and checks if there was really nothing to be modified before
> reraising the exception.
>
> Pavel
>
Improved version attached:
- there a bug that Rob pointed out in another thread - exceptions other 
than EmptyModlist were suppressed unintentionally
- the GLOBAL password policy was always displayed in searches using 
pwpolicy2-find, now it's only displayed if searching without criteria

Pavel
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pzuna-freeipa-0005-pwpolicy2.patch
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20100512/8d872422/attachment.ksh>


More information about the Freeipa-devel mailing list