Download An Administrators Guide to Networking

Transcript
Chapter 11
Administration Services
This chapter describes the services used in administration of the network.
This includes protecting the network with a firewall, backing up important
data, a central database for the user accounts, and balancing of the network
traffic.
11.1
Central User Database
As described in Section 4.5, OpenLDAP is installed on Fry with the basic
configuration. This section covers the design of the LDAP database and
configuration on the different systems using LDAP for authentication. To
use the LDAP service for authentication, modules supporting LDAP is installed, namely libnss-ldap and libpam-ldap. The first is a Name Service
Switch (NSS) module allowing name look ups to be directed to LDAP instead of the traditional /etc/passwd, /etc/groups, and /etc/shadow files.
The latter is a Pluggable Authentication Module (PAM) doing the actual
communication with the LDAP service. The file /etc/nsswitch.conf is
modified so the LDAP module is used for lookups, but still the original
files are consulted as an emergency procedure if the LDAP server for some
reason does not respond. nsswitch.conf contains information about the
host to contact, where the users are found in the database, and what LDAP
protocol version to use.
The PAM configuration is done in the three files, /etc/pam.d/common ←-account, /etc/pam.d/common-auth, and /etc/pam.d/common-password.
The Line password sufficient pam_LDAP.so is added to all these files,
to enable lookups using the LDAP database. This configuration makes the
system authenticate against LDAP, but to do this, users must exist in the
LDAP database. To aid the management of the LDAP database, the tool
LDAP Account Manager (LAM), is installed. This tool is useful for managing and configuring an LDAP database. This tool also supports Samba
specific options.
54