04.06.2013 Views

UCS 2.4 - Univention

UCS 2.4 - Univention

UCS 2.4 - Univention

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

14 <strong>Univention</strong> Configuration Registry<br />

LDAP server. Further settings and configuration files can be included in the <strong>Univention</strong> Configuration<br />

Registry mechanism if necessary.<br />

Apart from managing configuration files, <strong>Univention</strong> Configuration Registry variables can be used very<br />

efficiently in low-level shell scripts for accessing current settings. In combination with the <strong>Univention</strong> Con-<br />

figuration Registry command line in particular, there are a range of possibilities for managing a <strong>UCS</strong><br />

system.<br />

14.2 Displaying current settings<br />

The univention-config-registry command can be run with three different parameters to display the Uni-<br />

vention Configuration Registry variables and their current assignments. The short form ucr can also be<br />

given instead of univention-config-registry.<br />

The parameter dump can be used to display all currently registered variables.<br />

# univention-config-registry dump<br />

admin/cmd/debug/level: 0<br />

admin/cmd/timeout: 300<br />

admin/timeout: 300<br />

admin/web/debug/level: 0<br />

admin/web/language: de<br />

apache/accessfilename: .htaccess<br />

apache/documentroot: /var/www<br />

apache/userdir: public_html<br />

auth/admin/methods: krb5 ldap unix<br />

...<br />

One <strong>Univention</strong> Configuration Registry variable and the currently assigned value are displayed per line.<br />

The <strong>Univention</strong> Configuration Registry variables are named according to a tree structure with a forward<br />

slash being used to separate components of the name. For example, <strong>Univention</strong> Configuration Registry<br />

variables beginning with ldap are settings which apply to the local directory service.<br />

<strong>Univention</strong> Configuration Registry supports a variable name search function using the parameter search:<br />

univention-config-registry search <br />

This command searches for variable names which contain and displays these with their current<br />

assignments. Alternatively, searches can also be performed for set variable values:<br />

univention-config-registry search --value <br />

# univention-config-registry search debug<br />

admin/cmd/debug/level: 0<br />

console/web/debug/level: 0<br />

listener/debug/level: 2<br />

samba/debug/level: 0<br />

# univention-config-registry search --value yes<br />

nsswitch/ldap: yes<br />

pkgdb/scan: yes<br />

postfix/autostart: yes<br />

278

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!