freeipa/ipalib/plugins
Martin Kosek b137b71371 Sort password policies properly with --pkey-only
Password policy plugin sorts password policies by its COS priority.
However, when the pwpolicy-find command is run with --pkey-only,
the resulting entries do not contain COS priority and the sort
function crashes.

This patch makes sure that cospriority is present in the time
of the result sorting process and removes the cospriority again
when the sorting is done. This way, the entries are sorted properly
both with and without --pkey-only flag.

Previous entries_sortfn member attribute of LDAPSearch class
containing custom user sorting function was replaced just with
a flag indicating if a sorting in LDAPSearch shall be done at all.
This change makes it possible to sort entries in a custom
post_callback which is much more powerful (and essential for
sorting like in pwpolicy plugin) approach than a plain sorting
function.

https://fedorahosted.org/freeipa/ticket/2676
2012-04-26 14:31:53 +02:00
..
__init__.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
aci.py Memberof attribute control and update 2012-02-08 10:43:25 +01:00
automember.py Confusing default user groups 2012-04-08 16:48:54 -04:00
automount.py Raise proper exception when LDAP limits are exceeded 2012-04-16 23:23:57 -04:00
baseldap.py Sort password policies properly with --pkey-only 2012-04-26 14:31:53 +02:00
batch.py Test the batch plugin 2012-04-03 16:19:59 -04:00
cert.py Make revocation_reason required when revoking a certificate. 2012-04-05 08:51:30 +02:00
config.py Mark most config options as required 2012-03-12 17:16:57 +01:00
delegation.py Switch --group and --membergroup in example for delegation 2012-02-06 14:13:33 +01:00
dns.py Return correct record name in DNS plugin 2012-04-16 16:11:33 +02:00
entitle.py Refactor exc_callback invocation. 2012-04-26 09:00:30 +02:00
group.py Refactor exc_callback invocation. 2012-04-26 09:00:30 +02:00
hbacrule.py Netgroup nisdomain and hosts validation 2012-03-28 16:23:37 +02:00
hbacsvc.py ticket 1669 - improve i18n docstring extraction 2011-08-24 23:13:16 -04:00
hbacsvcgroup.py ticket 1669 - improve i18n docstring extraction 2011-08-24 23:13:16 -04:00
hbactest.py Fix name error in hbactest 2012-04-19 15:22:49 +02:00
host.py Don't allow hosts and services of IPA masters to be disabled. 2012-03-19 16:09:09 +01:00
hostgroup.py Limit allowed characters in a netgroup name to alpha, digit, -, _ and . 2012-02-27 00:06:44 -05:00
internal.py DNS forward policy: checkboxes changed to radio buttons 2012-04-10 15:44:05 +02:00
kerberos.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00
krbtpolicy.py ticket 1669 - improve i18n docstring extraction 2011-08-24 23:13:16 -04:00
migration.py Do not fail migration because of duplicate groups 2012-04-17 00:20:31 -04:00
misc.py ticket 1669 - improve i18n docstring extraction 2011-08-24 23:13:16 -04:00
netgroup.py Fix expected error messages in tests 2012-04-10 21:05:45 -04:00
passwd.py Change parameters to use only default_from for dynamic default values. 2012-03-28 14:04:31 +02:00
permission.py Refactor exc_callback invocation. 2012-04-26 09:00:30 +02:00
ping.py Document the ping plugin. 2012-01-12 05:46:09 -05:00
pkinit.py ticket 1669 - improve i18n docstring extraction 2011-08-24 23:13:16 -04:00
privilege.py Removal of memberofindirect_permissons from privileges 2012-04-09 22:12:39 -04:00
pwpolicy.py Sort password policies properly with --pkey-only 2012-04-26 14:31:53 +02:00
role.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
selfservice.py Limit permission and selfservice names to alphanumerics, -, _, space 2012-04-09 20:56:29 -04:00
selinuxusermap.py Typos in FreeIPA messages 2012-03-23 16:59:12 +01:00
service.py Add missing comma to list of services that cannot be disabled. 2012-04-05 22:18:27 +02:00
sudocmd.py Fix sudo help and summaries 2011-08-29 21:26:23 -04:00
sudocmdgroup.py Fix sudo help and summaries 2011-08-29 21:26:23 -04:00
sudorule.py Netgroup nisdomain and hosts validation 2012-03-28 16:23:37 +02:00
user.py Update docs for user-status, always show disabled, time for each server. 2012-04-23 10:20:34 +02:00
virtual.py Add default success/failure output logging. 2011-02-14 10:23:52 -05:00
xmlclient.py Change FreeIPA license to GPLv3+ 2010-12-20 17:19:53 -05:00