Bug 50787 - Setting ucsschool/userlogon/create_drive_mappings Does Not Trigger The Listener
Setting ucsschool/userlogon/create_drive_mappings Does Not Trigger The Listener
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: Listener modules
UCS@school 4.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-02-05 11:10 CET by Christian Völker
Modified: 2023-10-26 12:23 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.017
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2020012721000102
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 Christian Völker univentionstaff 2020-02-05 11:10:04 CET
ucr set ucsschool/userlogon/create_drive_mappings=false

does not trigger the listener and therefore the mappings are not updated. It needs a manual update:

=====================================================================
root@lenaedu:/var/lib/samba/netlogon/user# ucr set ucsschool/userlogon/create_drive_mappings=false
Create ucsschool/userlogon/create_drive_mappings
root@lenaedu:/var/lib/samba/netlogon/user# sleep 30s; ls -al 
insgesamt 48
drwxr-xr-x 2 root root    20480 Feb  5 11:02 .
drwxr-xr-x 4 root root     4096 Aug 14 13:58 ..
-rw-r--r-- 1 root nogroup 10462 Dez  8  2018 univention-management-console.ico
-rw-r--r-- 1 root root     9662 Dez  8  2018 univention-portal.ico
root@lenaedu:/var/lib/samba/netlogon/user# univention-directory-listener-ctrl resync ucs-school-user-logonscript 
root@lenaedu:/var/lib/samba/netlogon/user# ls -alh | tail -n2
-rwxr-xr-x 1 root root    6,8K Feb  5 11:07 z.zuwiderhan2.vbs
-rwxr-xr-x 1 root root    6,8K Feb  5 11:07 z.zwickersle.vbs
==========================================================================
Comment 1 Daniel Tröder univentionstaff 2020-02-11 09:33:22 CET
UCR variable changes never trigger listener modules. Only changes to LDAP objects do that.

The manual section "7.3. Netlogon-Skripte für Samba4-Umgebung" is however missing a note about how and when to trigger a netlogon rebuild (listener resync).

IMHO this should be converted to a "docu bug", as automatically rebuilding all netlogon scripts after changing UCR variable(s) should be done manually.