Bug#1042083: Need more robust handling of fully-qualified hostnames when adding hosts
> cn=ws008,ou=workstations,ou=systems,dc=skole,dc=skolelinux,dc=no.
This is actually incorrect, it would rather be
cn=ws008.internal,ou=workstations,ou=systems,dc=skole,dc=skolelinux,dc=no
And gosa creates the following entry for DNS:
relativeDomainName=ws008,relativeDomainName=ws008,zoneName=intern,cn=tjener,ou=servers,ou=systems,dc=skole,dc=skolelinux,dc=no
The problem then is that gosa-create-host makes the following LDAP
query:
(&(objectClass=dNSZone)(relativeDomainName=ws008.intern))
assuming that the CN refers to an unqualified hostname.
If gosa should be allowed to create entries with fully qualified hostnames
under ou=workstations,ou=systems,dc=skole,dc=skolelinux,dc=no the script
could also be adapted to skip qualifying the hostname if it contains a ".".
--
Guido Berhoerster
Reply to: