AIX and Linux Interoperability
Total Page:16
File Type:pdf, Size:1020Kb
Front cover AIX and Linux Interoperability Effective centralized user management in AIX 5L and Linux environments Sharing files and printers between AIX 5L and Linux systems Learn interoperable networking solutions Abhijit Chavan Dejan Muhamedagic Jackson Afonso Krainer Janethe Co KyeongWon Jeong ibm.com/redbooks International Technical Support Organization AIX and Linux Interoperability April 2003 SG24-6622-00 Note: Before using this information and the product it supports, read the information in “Notices” on page xi. First Edition (April 2003) This edition applies to IBM ^ pSeries and RS/6000 Systems for use with the AIX 5L for POWER Version 5.2 Operating System, Program Number 5765-E62, and is based on information available in November 2002. © Copyright International Business Machines Corporation 2003. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Figures . .ix Notices . .xi Trademarks . xii Preface . xiii The team that wrote this redbook. xiii Become a published author . xv Comments welcome. xv Chapter 1. Identification and authentication . 1 1.1 User security mechanisms . 2 1.1.1 AIX security . 2 1.1.2 Linux security . 4 1.2 Pluggable Authentication Modules (PAM). 5 1.2.1 PAM configuration. 5 1.2.2 PAM keywords . 6 1.3 Linux PAM implementation . 8 1.4 AIX PAM implementation . 9 1.4.1 PAM modules and AIX . 9 1.4.2 PAM applications and AIX. 12 Chapter 2. Centralized user management. 15 2.1 Lightweight Directory Access Protocol (LDAP) . 16 2.1.1 Introduction to LDAP . 16 2.1.2 Using LDAP for authentication . 17 2.2 Planning for LDAP authentication . 19 2.3 LDAP servers . 20 2.3.1 IBM Directory Server. 22 2.3.2 The OpenLDAP directory server . 26 2.4 Migrating user information to LDAP . 29 2.4.1 Migrating users on Linux . 30 2.4.2 Migrating users on AIX . 30 2.5 LDAP authentication clients . 34 2.5.1 AIX LDAP authentication client . 34 2.5.2 Linux LDAP authentication client . 35 2.5.3 PAM and NSS LDAP modules on AIX . 36 2.6 Deploying LDAP for authentication . 38 2.6.1 OpenLDAP server setup . 38 © Copyright IBM Corp. 2003. All rights reserved. iii 2.6.2 AIX LDAP client setup. 44 2.6.3 Linux LDAP client setup . 45 2.7 Security considerations . 47 2.7.1 Host access control. 47 2.7.2 LDAP servers access and database backup . 48 2.7.3 Encryption and PKI . 48 Chapter 3. Single sign-on . 51 3.1 The Kerberos way . 53 3.2 Kerberos configuration . 54 3.2.1 Kerberos configuration files. 55 3.2.2 Kerberos database . 57 3.2.3 Controlling access to Kerberos . 58 3.2.4 Starting Kerberos . 59 3.3 Kerberos administration . 59 3.3.1 Kerberos principals . 59 3.3.2 Kerberos policies. 61 3.3.3 Kerberos database management . 63 3.3.4 Kerberos database replication . 63 3.4 AIX Network Authentication Service (NAS). 64 3.4.1 Installing required packages . 65 3.4.2 AIX Kerberos master server . 65 3.5 Linux Kerberos support . 71 3.5.1 Red Hat Linux Kerberos packages . 71 3.5.2 Configuring Kerberos on Linux . 72 3.6 Discovering Kerberos services . 72 3.6.1 Discovering Kerberos services using AIX NAS and LDAP . 72 3.6.2 Discovering Kerberos services using DNS . 73 3.7 Integrating Kerberos authentication . 74 3.7.1 KDC setup. 74 3.7.2 Standard Kerberos services . 77 3.7.3 Kerberos authentication clients . 78 3.8 Migrating users to Kerberos . 81 3.9 Security considerations . 82 3.10 Enterprise Identity Mapping (EIM). 82 3.10.1 EIM concepts . 82 3.10.2 Using Enterprise Identity Mapping . 83 Chapter 4. Networking services. 85 4.1 Protocols . 86 4.1.1 Domain Name System (DNS) . 86 4.1.2 Dynamic Host Configuration Protocol (DHCP) . 94 4.1.3 Network Time Protocol (NTP) . 98 iv AIX and Linux Interoperability 4.1.4 Network Information Service (NIS) . 101 4.2 Data transfers . 102 4.2.1 rsync . 102 4.2.2 rdist . 105 4.3 Network management . 106 4.3.1 SNMP . 106 4.3.2 IBM Tivoli® Netview . 107 4.3.3 ntop . 109 4.3.4 UNIX network performance management commands . 112 Chapter 5. Sendmail . 113 5.1 Sendmail overview . ..