freeipa/ipalib/plugins
Rob Crittenden 0099ccbea8 Only apply validation rules when adding and updating.
There may be cases, for whatever reason, that an otherwise illegal
entry gets created that doesn't match the criteria for a valid
user/host/group name. If this happens (i.e. migration) there is no way
to remove this using the IPA tools because we always applied the name
pattern. So you can't, for example, delete a user with an illegal name.

Primary keys are cloned with query=True in PKQuery which causes no
rules to be applied on mod/show/find. This reverts a change from commit
3a5e26a0 which applies class rules when query=True (for enforcing no
white space).

Replace rdnattr with rdn_is_primary_key. This was meant to tell us when
an RDN change was necessary to do a rename. There could be a disconnect
where the rdnattr wasn't the primary key and in that case we don't
need to do an RDN change, so use a boolean instead so that it is
clear that RDN == primary key.

Add a test to ensure that nowhitespace is actually enforced.

https://fedorahosted.org/freeipa/ticket/2115

Related: https://fedorahosted.org/freeipa/ticket/2089

Whitespace tickets:
https://fedorahosted.org/freeipa/ticket/1285
https://fedorahosted.org/freeipa/ticket/1286
https://fedorahosted.org/freeipa/ticket/1287
2012-02-29 18:00:45 -05: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 Clean up i18n strings 2012-02-10 11:53:40 +01:00
automount.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
baseldap.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
batch.py Parse comma-separated lists of values in all parameter types. This can be enabled for a specific parameter by setting the "csv" option to True. 2011-11-30 17:08:35 +01:00
cert.py ticket 2022 - modify codebase to utilize IPALogManager, obsoletes logging 2011-11-23 09:36:18 +01:00
config.py Don't consider virtual attributes when validating custom objectclasses 2012-02-27 10:06:35 +01:00
delegation.py Switch --group and --membergroup in example for delegation 2012-02-06 14:13:33 +01:00
dns.py Improve FQDN handling in DNS and host plugins 2012-02-29 19:06:18 +01:00
entitle.py ticket 1669 - improve i18n docstring extraction 2011-08-24 23:13:16 -04:00
group.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
hbacrule.py Internationalization for HBAC and ipalib.output 2012-02-14 19:08:40 +01: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 Internationalization for HBAC and ipalib.output 2012-02-14 19:08:40 +01:00
host.py Improve FQDN handling in DNS and host plugins 2012-02-29 19:06:18 +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 Added logout button 2012-02-28 23:58:51 -05: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 Don't set migrated user's GID to that of default users group. 2012-02-29 18:05:31 +01:00
misc.py ticket 1669 - improve i18n docstring extraction 2011-08-24 23:13:16 -04:00
netgroup.py Limit allowed characters in a netgroup name to alpha, digit, -, _ and . 2012-02-27 00:06:44 -05:00
passwd.py Require current password when using passwd to change your own password. 2011-10-04 15:16:15 +02:00
permission.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05: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 Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
pwpolicy.py Sort password policy by priority 2011-12-01 18:04:30 -05:00
role.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05:00
selfservice.py Fix raw format for ACI commands 2012-02-03 17:04:51 +01:00
selinuxusermap.py Fix deletion of HBAC Rules when there are SELinux user maps defined 2012-01-24 21:09:09 -05:00
service.py Don't allow IPA master hosts or important services be deleted. 2012-02-23 20:17:12 +01: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 Clean up i18n strings 2012-02-10 11:53:40 +01:00
user.py Only apply validation rules when adding and updating. 2012-02-29 18:00:45 -05: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