Q&A: Can I set values with spaces in Policies for UCR variables?

Question:

Can I set values with spaces in policies for UCR variables?

Answer

Yes you can. See below example.

Step 1:

Value set as policy in UMC web frontend:

grafik

Step 2:

Re-read policy on the server assigned with the policy just created:


root@ucs:~# systemctl restart univention-directory-policy.service
root@ucs:~# ucr dump| grep socke
samba/socket_options: TCP_NODELAY SO_RCVBUF=32768 SO_SNDBUF=32768

Step 3:

Re-write configuration file and check if the parameters are set correctly. Finally restart service:

root@ucs:~# ucr commit /etc/samba/smb.conf
Multifile: /etc/samba/smb.conf

root@ucs:~# grep TCP_ /etc/samba/smb.conf
    socket options    = TCP_NODELAY SO_RCVBUF=32768 SO_SNDBUF=32768
root@ucs:~# /etc/init.d/restart samba
Mastodon