3f50b0e Improve FQDN handling in DNS and host plugins

Authored and Committed by mkosek 12 years ago
    Improve FQDN handling in DNS and host plugins
    
    DNS and host plugin does not work well with domain names ending
    with dot. host plugin creates a record with two fqdn attributes
    when such hostname is created which then has to be manually fixed.
    DNS plugin handled zones with and without trailing dot as two
    distinct zones, which may lead to issues when both zones are
    created.
    
    This patch sanitizes approach to FQDNs in both DNS and host plugin.
    Hostnames are now always normalized to the form without trailing
    dot as this form did not work before and it would keep hostname
    form consistent without changes in our server/client enrollment
    process.
    
    As DNS zones always worked in both forms this patch rather makes
    sure that the plugin works with both forms of one zone and prevents
    creating 2 identical zones with just different format.
    
    https://fedorahosted.org/freeipa/ticket/2420
    
        
file modified
+23 -8
file modified
+17 -23