07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

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.

Question<br />

Answer<br />

X.500 naming context dc=falcot,dc=com<br />

LDAP server hostname<br />

localhost<br />

Manager DN<br />

cn=admin,dc=falcot,dc=com<br />

Bind credentials<br />

the administrative password<br />

Create DUAConfigProfile<br />

no<br />

Table 11.1<br />

Answers to questions asked by the migrate_all_online.sh script<br />

Should we want to integrate this data into the directory, the /etc/ldap/schema/misc.schema<br />

file should be added to the standard schema.<br />

TOOL<br />

Browsing an LDAP directory<br />

The luma command (in the package of the same name) is a graphical tool<br />

allowing to browse and edit an LDAP database. It's an interesting tool that<br />

provides an administrator with a good overview of the hierarchical structure<br />

of the LDAP data.<br />

Also note the use of the -c option to the ldapadd command; this option requests that processing<br />

doesn't stop in case of error. Using this option is required because converting the<br />

/etc/services often generates a few errors that can safely be ignored.<br />

11.7.3. Managing Accounts with LDAP<br />

Now the LDAP database contains some useful information, the time has come to make use of<br />

this data. This section focuses on how to configure a Linux system so that the various system<br />

directories use the LDAP database.<br />

11.7.3.1. Configuring NSS<br />

The NSS system (Name Service Switch, see sidebar “NSS and system databases” (page 156)) is<br />

a modular system designed to define or fetch information for system directories. Using LDAP<br />

as a source of data for NSS requires installing the libnss-ldap package. Its installation asks a few<br />

questions; the answers are summarized in Table 11.2 .<br />

The /etc/nsswitch.conf file then needs to be modified, so as to configure NSS to use the<br />

freshly-installed ldap module.<br />

# /etc/nsswitch.conf<br />

#<br />

# Example configuration of GNU Name Service Switch functionality.<br />

# If you have the `glibc-doc' and `info' packages installed, try:<br />

# `info libc "Name Service Switch"' for information about this file.<br />

290 The Debian Administrator's Handbook

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

Saved successfully!

Ooh no, something went wrong!