07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SLURPD_START=auto<br />

# slapd normally serves ldap only on all TCP-ports 389. slapd can also<br />

# service requests on TCP-port 636 (ldaps) and requests via unix<br />

# sockets.<br />

# Example usage:<br />

SLAPD_SERVICES="ldaps:/// ldapi:///"<br />

# Additional options to pass to slapd and slurpd<br />

SLAPD_OPTIONS=""<br />

SLURPD_OPTIONS=""<br />

Example 11.33<br />

The /etc/default/slapd file<br />

Configuring the Client On the client side, the configuration for the libpam-ldap and libnss-ldap<br />

modules needs to be modified by adding the ssl on directive to the /etc/pam_ldap.conf and<br />

/etc/libnss-ldap.conf configuration files.<br />

LDAP clients also need to be able to authenticate the server by knowing its public key. This<br />

requires installing a copy of the key (for instance as /etc/ssl/certs/ldap-cert.pem), and<br />

reference the location of this copy in the /etc/ldap/ldap.conf file.<br />

#<br />

# LDAP Defaults<br />

#<br />

# See ldap.conf(5) for details<br />

# This file should be world readable but not world writable.<br />

BASE<br />

URI<br />

dc=falcot,dc=com<br />

ldaps://ldap.falcot.com<br />

#SIZELIMIT 12<br />

#TIMELIMIT 15<br />

#DEREF<br />

never<br />

TLS_CACERT /etc/ssl/certs/ldap-cert.pem<br />

Example 11.34<br />

The /etc/ldap/ldap.conf file<br />

This chapter sampled only a fraction of the available server software; however, most of the common<br />

network services were described. Now it is time for an even more technical chapter: we'll<br />

294 The Debian Administrator's Handbook

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

Saved successfully!

Ooh no, something went wrong!