Bug 27809 - Warnung wenn Hostname == Windows-Domain
Warnung wenn Hostname == Windows-Domain
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UCS Installer
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0-2
Assigned To: Felix Botner
Florian Best
: interim-3
: 25083 (view as bug list)
Depends on:
Blocks: 27810
  Show dependency treegraph
 
Reported: 2012-07-04 08:44 CEST by Tim Petersen
Modified: 2012-07-20 15:24 CEST (History)
5 users (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Petersen univentionstaff 2012-07-04 08:44:20 CEST
Aufgefallen an Ticket #2012030521002896

Mindestens das Samba Provisioning von S4 schlägt fehl, wenn Hostname == Windows-Domain:

"ProvisioningError: guess_names: Domain 'UCS30' must not be equal to short host name 'UCS30'!"
[...]
"Samba4 does not seem to be provisioned, exiting /usr/share/univention-samba4/scripts/setup-dns-in-ucsldap.sh"
[...]
**************************************************************
* ERROR: Failed to configure Samba4 as backend for bind.     *
*        Please check the samba and the s4-connector logfile.*
**************************************************************
[...]
usw.


Das das imho ohnehin verboten ist, sollten wir diesen Fall im Installer abfangen.
Comment 1 Stefan Gohmann univentionstaff 2012-07-04 08:47:53 CEST
Für 3.0-2 ist eine angepasste DVD geplant.
Comment 2 Philipp Hahn univentionstaff 2012-07-09 15:44:43 CEST
*** Bug 25083 has been marked as a duplicate of this bug. ***
Comment 3 Felix Botner univentionstaff 2012-07-10 16:59:41 CEST
Warnung eingebaut, changelog angepasst.

Neue DVD muss noch gebaut/getestet werden.
Comment 4 Stefan Gohmann univentionstaff 2012-07-11 06:28:10 CEST
In der aktuellen Version sind zwei Syntaxfehler, Zeile 293 fehlt ein : am Ende und in Zeile 299 fehlt ) am Ende.
Comment 5 Stefan Gohmann univentionstaff 2012-07-11 08:12:19 CEST
(In reply to comment #4)
> In der aktuellen Version sind zwei Syntaxfehler, Zeile 293 fehlt ein : am Ende
> und in Zeile 299 fehlt ) am Ende.

Da ich den Installer eh neu gebaut habe, habe ich die beiden Punkte mit behoben.
Comment 6 Felix Botner univentionstaff 2012-07-11 08:55:21 CEST
Warnung sollte nun angezeigt werden, wenn Hostname und Windows Domäne gleich sind.
Comment 7 Philipp Hahn univentionstaff 2012-07-11 15:06:17 CEST
@@ -286,6 +287,15 @@ class object(content):
                                        self.move_focus( self.get_elem_id('IN_WINDOMAIN') )
                                return _("The length of the windows domain name is greater than 14 characters.")
 
+               if windows_domain.strip().lower() ==  hostname.strip().lower():
+                       if not self.ignore('windows_domain'):
+                               # The warning will be displayed only once
+                               if windows_domain != self.windomain_last_warning

Syntax Fehler: ':' fehlt am Zeilenende

+                                       self.windomain_last_warning = windows_domain
+                                       if focus:
+                                               self.move_focus( self.get_elem_id('IN_WINDOMAIN') )
+                                       return _("For Active Directory domains the hostname and the windows domain name may not be the same. This warning is shown only once, the installation can be continued with the name currently given."                                                                                                                         

Syntax Fehler: ')' fehlt am Zelenenede
Leerzeichen am Zeilenende.

+
                if hostname.strip() == '' or hostname.strip() in ['localhost', 'local'] or hostname.strip().find(' ') != -1 or not self.syntax_is_hostname(hostname):
                        if not self.ignore('hostname'):
                                if focus:
Comment 8 Felix Botner univentionstaff 2012-07-11 16:12:27 CEST
(In reply to comment #7)
Hat Stefan bereits behoben.
Comment 9 Florian Best univentionstaff 2012-07-13 11:29:29 CEST
(In reply to comment #8)
> (In reply to comment #7)
> Hat Stefan bereits behoben.
Ja.

Meldung wird angezeigt. Übersetzung ist auch OK.

Changelog OK
Comment 10 Stefan Gohmann univentionstaff 2012-07-20 15:24:04 CEST
UCS 3.0-2 has been released: 
  http://forum.univention.de/viewtopic.php?f=54&t=1905

If this error occurs again, please use "Clone This Bug".