[Freeipa-devel] [PATCH] 6 Sort password policy by priority

Ondrej Hamada ohamada at redhat.com
Tue Nov 29 15:05:37 UTC 2011


On 11/29/2011 03:46 PM, Ondrej Hamada wrote:
> https://fedorahosted.org/freeipa/ticket/2045
>
> 'ipa pwpolicy-find' output is now sorted by priority of the policies.
> Lower position means lower priority. Global policy is then at the bottom.
>
> The changes has also affected LDAPSearch class in baseldap.py:
> LDAPSearch class sorts the search results by primary key be default
> (which is usually 'cn'). Therefor a function pointer entries_sortfn
> was added. If no sorting function exists, default sorting by primary key
> is used.
>
> Sorting function had to be introduced due to the fact that pwpolicy's 
> primary
> key is also it's 'cn' and global policy is not allowed to have any 
> priority.
>
forget to attach the patch, sorry :-[

-- 
Regards,

Ondrej Hamada
FreeIPA team
jabber: ohama at jabbim.cz
IRC: ohamada

-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-ohamada-6-Sort-password-policy-by-priority.patch
Type: text/x-patch
Size: 3395 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20111129/845e89d3/attachment.bin>


More information about the Freeipa-devel mailing list