Bug 21262 - Samba Password Mindestlänge entspricht nicht UCS Passwort Policy und Docs
Samba Password Mindestlänge entspricht nicht UCS Passwort Policy und Docs
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Samba
UCS 2.4
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Tobias Peters
Stefan Gohmann
: interim-1
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-21 10:00 CET by Arvid Requate
Modified: 2012-12-12 21:08 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 Arvid Requate univentionstaff 2011-01-21 10:00:04 CET
Die default-settings für domtrust.local:/policies/users/pwhistory/ geben als Passwort-Länge 8 Zeichen vor, die Samba Domänen Policy jedoch 5:

root@qamaster:~# pdbedit -P "min password length"
account policy "min password length" description: Minimal password length (default: 5)
account policy "min password length" value is: 5

Da im Hnadbuch Abschnitt 8.4.5.6 "Passwort-Eigenschaften für Windows-Clients" dokumentiert ist, dass die Voreinstellung 8 ist und empfohlen wird beide Einstellungen konsistent zu halten, sollte hier etwas angepasst werden.
Comment 1 Arvid Requate univentionstaff 2012-08-09 18:31:55 CEST
Fixed durch patch gegen samba 3.6 und Erweiterung von unviention-samba.

Changelog:

"The default for the minimal password length Samba domain policy has been increased from 5 to 8 characters to match the standard UCS password policy default. Additionally during update it is checked if the old value is still active and if there is a unique UCS password policy connected to the LDAP basis of the domain. If both is true and the policies differ, the value for the minimal password length in the Samba domain policy is set to the current UCS policy value.
In all other cases, e.g. if UCS password policies have been customized, the old default value for the minimal password length will stay in the Samba domain policy and should be checked manually."
Comment 2 Stefan Gohmann univentionstaff 2012-09-10 13:44:02 CEST
(In reply to comment #1)
> Fixed durch patch gegen samba 3.6 und Erweiterung von unviention-samba.
> 
> Changelog:
> 
> "The default for the minimal password length Samba domain policy has been
> increased from 5 to 8 characters to match the standard UCS password policy
> default. Additionally during update it is checked if the old value is still
> active and if there is a unique UCS password policy connected to the LDAP basis
> of the domain. If both is true and the policies differ, the value for the
> minimal password length in the Samba domain policy is set to the current UCS
> policy value.
> In all other cases, e.g. if UCS password policies have been customized, the old
> default value for the minimal password length will stay in the Samba domain
> policy and should be checked manually."

Ich bin dagegen das im Update automatisch anzupassen. Ggf. haben die Kunden sich bewusst gegen unsere Empfehlung gestellt und es dann im Update anzugleichen finde ich ungünstig.

Bei Neuinstallationen ist es aber sinnvoll.
Comment 3 Tobias Peters univentionstaff 2012-09-11 10:13:36 CEST
Der default Wert wird weiterhin von 5 auf 8 erhöht. Der eigentliche Wert wird allerdings nun nicht mehr bei einem Update erhöht, sondern stattdessen bei einer Neuinstallation ohne weitere Überprüfungen auf 8 gesetzt.

Der UCS 3.1-0 Changelog wurde dementsprechend angepasst.
Comment 4 Stefan Gohmann univentionstaff 2012-09-12 11:10:51 CEST
Das könne wir so nicht machen, da der Wert auch auf 8 gesetzt wird, wenn ein weiteres Samba 3 System installiert wird.

Sinnvoll kann das daher wohl nur im base.ldif angepasst werden (Paket univention-ldap):
 sambaMinPwdLength: 4
Comment 5 Tobias Peters univentionstaff 2012-09-12 16:52:24 CEST
'sambaMinPwdLength: 8' wurde in base.ldif hinzugefügt.
Comment 6 Stefan Gohmann univentionstaff 2012-09-14 07:27:51 CEST
Für eine Neuinstallation ist es OK (Wert ist auf 8).

Nach einem Update wird angezeigt, dass der Default 8 ist, der Wert aber 5. Ich denke das ist OK.

Changelog leicht angepasst.
Comment 7 Stefan Gohmann univentionstaff 2012-09-14 07:39:51 CEST
(In reply to comment #6)
> Nach einem Update wird angezeigt, dass der Default 8 ist, der Wert aber 5. Ich
> denke das ist OK.

Doch noch wieder auf. Wenn der Wert vorher nicht per pdbedit abgefragt wurde, dann ist dieser noch nicht im LDAP und der Default Wert wird bei der ersten Nachfrage verwendet.

Deshalb sollte der Patch 92_default_min_password_length.patch entfernt und samba neu gebaut werden.
Comment 8 Tobias Peters univentionstaff 2012-09-14 13:11:37 CEST
Der Patch wurde entfernt und samba neu gebaut.
Comment 9 Stefan Gohmann univentionstaff 2012-09-17 09:19:51 CEST
Ich habe univention-ldap noch neu gebaut, jetzt funktioniert es wie gewünscht für Updates und Neuinstallationen.
Comment 10 Stefan Gohmann univentionstaff 2012-12-12 21:08:35 CET
UCS 3.1-0 has been released: 
 http://forum.univention.de/viewtopic.php?f=54&t=2125

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