Bug 26516 - univention-join Fehler wenn man das Passwort mittels Datei mitliefert
univention-join Fehler wenn man das Passwort mittels Datei mitliefert
Status: RESOLVED DUPLICATE of bug 19430
Product: UCS
Classification: Unclassified
Component: Join (univention-join)
UCS 2.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Bugzilla Mailingliste
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-15 08:55 CET by rolandb
Modified: 2012-09-18 08:31 CEST (History)
3 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 rolandb 2012-03-15 08:55:39 CET
Hallo zusammen

Das Passwort mittels Datei bei "univention-join" mitgeben funktioniert nicht korrekt.

In der Datei /root/.pw.tmp steht ein falsches Passwort

root@srv-01:~# univention-join -dcname dc-master.local -dcaccount Administrator -dcpwd /root/.pw.tmp
univention-join: joins a computer to an ucs domain
copyright (c) 2001-2011 Univention GmbH, Germany

Check DC Master:

**************************************************************************
* Join failed!                                                           *
* Contact your system administrator                                      *
**************************************************************************
* Message:  ssh-login for Administrator@dc-master.local failed. Maybe you entered a wrong password.
**************************************************************************
root@srv-01:~#



In der Datei /root/.pw.tmp steht das korrekte Administrator Passwort

root@srv-01:~# univention-join -dcname dc-master.local -dcaccount Administrator -dcpwd /root/.pw.tmp
univention-join: joins a computer to an ucs domain
copyright (c) 2001-2011 Univention GmbH, Germany

Check DC Master:                                           done
Search ldap/base                                           done
Search LDAP binddn                                         done
Sync time                                                  done
Join Computer Account:                                     done


**************************************************************************
* Join failed!                                                           *
* Contact your system administrator                                      *
**************************************************************************
* Message:  univention-server-join: joins a server to an univention domain
copyright (c) 2001-2011 Univention GmbH, Germany

E: failed to create Member Server (2) [option --bindpwd requires argument]
**************************************************************************
root@srv-01:~#


Das Passwort wird nicht mittels Datei eingelesen sondern von Hand an der Console eingegeben

root@srv-01:~# univention-join -dcname dc-master.local -dcaccount Administrator
univention-join: joins a computer to an ucs domain
copyright (c) 2001-2011 Univention GmbH, Germany

Insert DC Master Password:

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                                  done
Configure 02univention-heimdal-member.inst                 done
...

Vielen Dank für eine baldige Hilfe.

mfg, Roland
Comment 1 rolandb 2012-03-15 10:03:29 CET
Hinweis, hier gibt es keinen Fehler wenn man eine Datei verwedet:
univention-run-join-scripts -dcaccount Administrator -dcpwd /root/.pw.tmp
Comment 2 Jan Christoph Ebersbach univentionstaff 2012-04-19 14:02:21 CEST
Hallo Roland, welche Paketversion von univention-join ist installiert und wie lautet die vollständige UCS-Versionsnummer?

Tritt das Problem nur auf Memberservern auf, oder sind davon auch DC Slaves betroffen?

Die explizite Angabe des Masters ist normalerweise nicht notwendig. Ändert sich das Verhalten, wenn das Argument -dcname weggelassen wird?
Comment 3 Philipp Hahn univentionstaff 2012-08-13 16:06:37 CEST
Vermutlich ein Duplikat von Bug #19430 comment 1:

(In reply to comment #0)
> In der Datei /root/.pw.tmp steht das korrekte Administrator Passwort
> 
> root@srv-01:~# univention-join -dcname dc-master.local -dcaccount Administrator -dcpwd /root/.pw.tmp
...
> E: failed to create Member Server (2) [option --bindpwd requires argument]

Das Problem ist hier, das hier eine Datei angegeben wird, die im /root/-Verzeichnis liegt und die "root" gehört. "univention-join" probiert die Datei 1:1 auf den DC_Master zu kopieren, auch in das Verzeichnis "/root/", allerdings dort als Benutzer "Administrator", was natürlich nicht erlaubt ist.

In /var/log/univention/join.log  sollte die zugehörige Fehlermeldung stehen.
Comment 4 Philipp Hahn univentionstaff 2012-09-18 08:31:16 CEST
Da hier keine weitere Rückmeldung erfolgt, schließe ich den Bug als Duplikat von Bug #19430, denn das Problenm wurde durch svn34833 korrigiert.

*** This bug has been marked as a duplicate of bug 19430 ***