Bug 25375

Summary: Heimatverzeichnis Freigaben werden nicht angelegt
Product: UCS Reporter: Stefan Gohmann <gohmann>
Component: GeneralAssignee: Felix Botner <botner>
Status: CLOSED FIXED QA Contact: Stefan Gohmann <gohmann>
Severity: normal    
Priority: P5 CC: botner
Version: UCS 3.0Keywords: interim-3
Target Milestone: UCS 3.1   
Hardware: Other   
OS: Linux   
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:

Description Stefan Gohmann univentionstaff 2011-12-09 13:50:21 CET
Wird für einen neuen Benutzer eine Heimatverzeichnisfreigabe eingebunden, dann wird diese nicht automatisch eingebunden, wenn das Verzeichnis auf dem NFS Server noch nicht angelegt wurde.
Comment 1 Stefan Gohmann univentionstaff 2012-07-17 17:09:36 CEST
UCS 3.1 will be the next release.
Comment 2 Felix Botner univentionstaff 2012-11-01 12:19:16 CET
Es gibt nun ein listener Modul nfs-homes, das den homeSharePath eines Benutzers auf dem Freigabe Server anlegt. 

Danach kann univention-mount-homedir diese Verzeichnis über nfs auf des Home des Benutzers mounten.

Verzeichnisse werden nur angelegt, wenn der FQDN gleich dem Freigabe Host ist.

Abschalten kann man das ganze mit

 nfs/create/homesharepath=false
Comment 3 Stefan Gohmann univentionstaff 2012-11-15 12:18:53 CET
Funktioniert soweit. Einzig wenn im Benutzer Pfadnamen Leerzeichen sind funktioniert es nicht:

Traceback (most recent call last):
  File "/usr/lib/univention-directory-listener/system/nfs-homes.py", line 84, in handler
    flags, unc = re.split(' *', automountInformation)
ValueError: too many values to unpack

Changelog: OK
Comment 4 Felix Botner univentionstaff 2012-11-15 12:42:48 CET
(In reply to comment #3)
> Funktioniert soweit. Einzig wenn im Benutzer Pfadnamen Leerzeichen sind
> funktioniert es nicht:
> 
> Traceback (most recent call last):
>   File "/usr/lib/univention-directory-listener/system/nfs-homes.py", line 84,
> in handler
>     flags, unc = re.split(' *', automountInformation)
> ValueError: too many values to unpack
> 
> Changelog: OK

wurde nochmal angepasst

-               flags, unc = re.split(' *', automountInformation)
+               unc = automountInformation
+               if " " in automountInformation:
+                       flags, unc = automountInformation.split(" ", 1)
                if ":" in unc:
-                       host, path = unc.split(':')
+                       host, path = unc.split(':', 1)
Comment 5 Stefan Gohmann univentionstaff 2012-11-15 13:26:43 CET
Funktioniert jetzt.
Comment 6 Stefan Gohmann univentionstaff 2012-12-12 21:07:50 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".