Bug 25375 - Heimatverzeichnis Freigaben werden nicht angelegt
Heimatverzeichnis Freigaben werden nicht angelegt
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: General
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.1
Assigned To: Felix Botner
Stefan Gohmann
: interim-3
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-12-09 13:50 CET by Stefan Gohmann
Modified: 2012-12-12 21:07 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 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".