diff options
author | John Dennis <jdennis@redhat.com> | 2012-04-16 08:33:26 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-04-16 08:35:03 +0200 |
commit | d317c2a0d1114cb0c53c9a333538f579624e4a9b (patch) | |
tree | b7a25b9ce35a8ad4ff3e0cf3c6f0efda3e391a37 /ipalib/plugins/dns.py | |
parent | 98e662b96f4e533693465131675ae01f777bde4e (diff) | |
download | freeipa.git-d317c2a0d1114cb0c53c9a333538f579624e4a9b.tar.gz freeipa.git-d317c2a0d1114cb0c53c9a333538f579624e4a9b.tar.xz freeipa.git-d317c2a0d1114cb0c53c9a333538f579624e4a9b.zip |
Validate DN & RDN parameters for migrate command
Ticket #2555
We were generating a traceback (server error) if a malformed RDN was
passed as a parameter to the migrate command.
* add parameter validation functions validate_dn_param() and
validate_rdn_param() to ipalib.util. Those functions simply invoke
the DN or RDN constructor from our dn module passing it the string
representation. If the constructor does not throw an error it's
valid.
* Add the parameter validation function pointers to the Param objects
in the migrate command.
* Make the usercontainer and groupcontainer parameters required.
passing --usercontainer= on the command line will produce
ipa: ERROR: 'user_container' is required
* Fix _get_search_bases() so if a container dn is empty it it just
uses the base dn alone instead of faulting (currently
bullet-proofing because now the containers are required).
* Update the doc for usercontainer and groupcontainer to reflect the
fact they are DN's not RDN's. A RDN can only be one level and it
should be possible to have a container more than one RDN removed
from the base.
Diffstat (limited to 'ipalib/plugins/dns.py')
0 files changed, 0 insertions, 0 deletions