Bug 28029 - Join eines UCC
Join eines UCC
Status: CLOSED FIXED
Product: Z_Univention Corporate Client (UCC)
Classification: Unclassified
Component: General
unspecified
Other Linux
: P5 enhancement
: UCC 1.0
Assigned To: Moritz Muehlenhoff
Stefan Gohmann
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-23 16:19 CEST by Stefan Gohmann
Modified: 2013-03-26 09:14 CET (History)
1 user (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 Stefan Gohmann univentionstaff 2012-07-23 16:19:27 CEST
Für UCC muss es eine Art univention-join geben, so dass ein UCC der Domäne beitreten kann.
Comment 1 Moritz Muehlenhoff univentionstaff 2012-10-17 14:16:51 CEST
Es gibt jetzt ein neues Source-Paket univention-ucc-join, das mit dem Befehl univention-join einen Domänenbeitritt ermöglicht. 

Auf UCS-Seite muss wg. nötiger Anpassungen an univention-server-join und univention-ssl eine aktuelle Version von 3.1 installiert sein.

Vor dem Join muss nameserver1 auf einen Nameserver der UCS-Domäne gesetzt werden.

Es wird ein Rechnerkonto angelegt, das SSL-Zertifikat heruntergeladen, /etc/machine.secret erstellt und die folgenden UCR-Variablen gesetzt:

kerberos/realm
ldap/server/name
ldap/server/port
ldap/master
ldap/master/port
kerberos/adminserver

Am Ende des Joins wird "auth-client-config -t nss -p lac_ldap" aufgerufen.

Aktuell wird der Rechnername und der Domänenname noch explizit abgefragt, das erfolgt durch Bug 28090 später automatisch.
Comment 2 Stefan Gohmann univentionstaff 2012-10-25 19:54:58 CEST
Auf meinem Testsystem funktioniert das noch nicht:

root@ucc:~# univention-join
Insert hostname of client: ucc
Insert domain name of client: deadlock70.local
Insert DC Master Account : Administrator
Insert DC Master Password: 

Search DC Master:                                          done
Check DC Master:                                           done
Search ldap/base                                           done
Search LDAP binddn                                         done
Sync time                                                  done
Join Computer Account:                                     done
Check TLS connection                                       done
Download host certificate root@ucc:~# 

root@ucc:~# cat /var/log/univention/join.log 
Setting hostname
Multifile: /etc/hosts
File: /etc/hostname
File: /etc/ldap.conf
Setting domainname
Multifile: /etc/hosts
File: /etc/resolv.conf
Setting hostname
Multifile: /etc/hosts
File: /etc/hostname
File: /etc/ldap.conf
Setting domainname
Multifile: /etc/hosts
File: /etc/resolv.conf
Warning: Permanently added 'master701.deadlock70.local,10.201.70.1' (RSA) to the list of known hosts.
'10.201.66.7/10.201.255.255' does not appear to be an IPv4 or IPv6 network
Join result = [univention-server-join: joins a server to an univention domain
copyright (c) 2001-2012 Univention GmbH, Germany

ldap_dn="cn=ucc,cn=computers,dc=deadlock70,dc=local" 
 ]
Create ldap/hostdn
Create ldap/master/port
File: /etc/ldap.conf
File: /etc/ldap/ldap.conf
File: /etc/default/ntpdate
File: /etc/ntp.conf
Could not chdir to home directory /dev/null: Not a directory
bash: /dev/null/.bashrc: Ist kein Verzeichnis
Could not chdir to home directory /dev/null: Not a directory
bash: /dev/null/.bashrc: Ist kein Verzeichnis
Create ldap/server/name
Create ldap/server/port
Create ldap/master
File: /etc/ldap.conf
File: /etc/ldap/ldap.conf
File: /etc/default/ntpdate
File: /etc/ntp.conf
Create kerberos/adminserver
File: /etc/krb5.conf
Create kerberos/kdc
File: /etc/krb5.conf
Create kerberos/realm
File: /etc/krb5.conf
File: /etc/resolv.conf
root@ucc:~# 

univention-join       1.0-6.5.201210191228
Comment 3 Moritz Muehlenhoff univentionstaff 2012-10-26 11:48:44 CEST
(In reply to comment #2)
> Auf meinem Testsystem funktioniert das noch nicht:

Ich habe noch eine Status-Meldung "Joined successfully" eingebaut. 

Ausserdem wird bei nicht auflösbarem SRV-Record jetzt ein Hinweis ausgegeben, die /etc/resolv.conf zu prüfen.

Der Join-Account defaultet jetzt auf "Administrator"
Comment 4 Stefan Gohmann univentionstaff 2012-10-26 22:22:14 CEST
Ich habe zunächst mit -forced-hostname gejoint. Später habe ich nochmal gejoint, allerdings ohne -forced-hostname und dann wurde ein neuer Rechnername generiert.

Sollte der Parameter nicht besser nur -hostname sein? Dann ist es einheitlich mit -domainname usw.
Comment 5 Moritz Muehlenhoff univentionstaff 2012-10-29 16:45:55 CET
(In reply to comment #4)
> Ich habe zunächst mit -forced-hostname gejoint. Später habe ich nochmal
> gejoint, allerdings ohne -forced-hostname und dann wurde ein neuer Rechnername
> generiert.
> 
> Sollte der Parameter nicht besser nur -hostname sein? Dann ist es einheitlich
> mit -domainname usw.

Beides wurde mit ein paar weiteren Änderungen angepasst/korrigiert.
Comment 6 Stefan Gohmann univentionstaff 2012-10-30 20:27:53 CET
Der Join funktioniert, allerdings werden die Joinskripte nicht ausgeführt.
Comment 7 Stefan Gohmann univentionstaff 2012-10-30 20:44:41 CET
(In reply to comment #6)
> Der Join funktioniert, allerdings werden die Joinskripte nicht ausgeführt.

Vielleicht kann am Ende einfach univention-run-join-scripts mit den entsprechenden Parametern aufgerufen werden.
Comment 8 Moritz Muehlenhoff univentionstaff 2012-10-31 09:09:31 CET
univention-run-join-scripts wurde hinzugefügt und wird jetzt am Ende des Join-Vorgangs aufgerufen.

Einziges Join-Skript ist bislang 20univention-directory-policy, das noch gepatcht werden musste.
Comment 9 Stefan Gohmann univentionstaff 2012-10-31 17:22:39 CET
Das funktioniert noch nicht:

Search DC Master:                                          done
Check DC Master:                                           done
Search ldap/base                                           done
Search LDAP binddn                                         done
Sync time                                                  done
Initial join of this UCC system, using hostname ucc669
Join Computer Account:                                     done
Check TLS connection                                       done
Download host certificate                                  done
univention-run-join-scripts: runs all join scripts existing on local computer.
copyright (c) 2001-2012 Univention GmbH, Germany

The system hasn't been joined yet. univention-run-join-scripts can only be
used after an initial, successful join. You should run univention-join instead.
Starting NSCD:                                             done
Joined successfully
Comment 10 Moritz Muehlenhoff univentionstaff 2012-11-01 10:24:06 CET
(In reply to comment #9)
> Das funktioniert noch nicht:
> 
> Search DC Master:                                          done
> Check DC Master:                                           done
> Search ldap/base                                           done
> Search LDAP binddn                                         done
> Sync time                                                  done
> Initial join of this UCC system, using hostname ucc669
> Join Computer Account:                                     done
> Check TLS connection                                       done
> Download host certificate                                  done
> univention-run-join-scripts: runs all join scripts existing on local computer.
> copyright (c) 2001-2012 Univention GmbH, Germany
> 
> The system hasn't been joined yet. univention-run-join-scripts can only be
> used after an initial, successful join. You should run univention-join instead.
> Starting NSCD:                                             done
> Joined successfully

Fixed.
Comment 11 Stefan Gohmann univentionstaff 2012-12-21 09:48:48 CET
OK, Joinen von UCC Clients und Terminalserver war in meinen Tests erfolgreich.
Comment 12 Moritz Muehlenhoff univentionstaff 2013-03-26 09:14:41 CET
UCC 1.0 has been released: 
http://forum.univention.de/viewtopic.php?f=26&t=2417
http://forum.univention.de/viewtopic.php?f=54&t=2418

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