06.03.2013 Views

opsi Version 3.3.1 - opsi Download - uib

opsi Version 3.3.1 - opsi Download - uib

opsi Version 3.3.1 - opsi Download - uib

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.

9.2.1. Integrating the LDAP-backend<br />

9. <strong>opsi</strong> data storage (backend)<br />

To activate the LDAP-backend change the following settings in<br />

'/etc/<strong>opsi</strong>/backendmanager.conf':<br />

Settings for the file-backend:<br />

self.backends[BACKEND_FILE] = { 'load': True }<br />

self.backends[BACKEND_LDAP] = { 'load': False }<br />

Settings for the LDAP-backend:<br />

self.backends[BACKEND_FILE] = { 'load': False }<br />

self.backends[BACKEND_LDAP] = { 'load': True }<br />

9.2.2. Configuring the LDAP-backend<br />

self.backends[BACKEND_LDAP]['config'] = {<br />

"host": "localhost",<br />

"bindDn": "cn=admin,%s" % baseDn,<br />

"bindPw": "password",<br />

}<br />

9.2.3. Assign the LDAP-backend to methods<br />

self.defaultBackend = BACKEND_LDAP<br />

self.clientManagingBackend = [ BACKEND_DHCPD, BACKEND_LDAP ]<br />

self.pxebootconfBackend = BACKEND_OPSIPXECONFD<br />

self.passwordBackend = BACKEND_FILE31<br />

self.pckeyBackend = BACKEND_FILE31<br />

self.swinventBackend = BACKEND_MYSQL<br />

self.hwinventBackend = BACKEND_MYSQL<br />

self.loggingBackend = BACKEND_FILE31<br />

In this example the LDAP backend is set as the default backend. The PC-keys and the<br />

pcpatch-passwords are still administrated as files.<br />

Now restart the <strong>opsi</strong> config daemon '<strong>opsi</strong>confd':<br />

/etc/init.d/<strong>opsi</strong>confd restart<br />

The following command creates the LDAP base structure:<br />

<strong>opsi</strong>-admin -d method createOpsiBase<br />

Underneath the LDAP-base node is an organizationalRole cn=<strong>opsi</strong> (e.g. cn=<strong>opsi</strong>,<br />

dc=<strong>uib</strong>, dc=local). You find underneath the node <strong>opsi</strong> all of the <strong>opsi</strong> data. This structure<br />

113

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

Saved successfully!

Ooh no, something went wrong!