PracticalLPIC-3 300 Prepare for the Highest Level Professional Linux Certif ication Antonio Vazquez Practical LPIC-3 300Prepare for the Highest LevelProfessional Linux CertificationAntonio VazquezPractical LPIC-3 300 Antonio Vazquez Mostoles, Spain ISBN-13 (pbk): 978-1-4842-4472-2 ISBN-13 (electronic): 978-1-4842-4473-9 https://doi.org/10.1007/978-1-4842-4473-9 Copyright 2019 by Antonio Vazquez This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights. While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made.
The publisher makes no warranty, express or implied, with respect to the material contained herein. Managing Director, Apress LLC: Welmoed Spahr Acquisitions Editor: Louise Corrigan Development Editor: James Markham Coordinating Editor: Nancy Chen Cover designed by eStudioCalamar Distributed to the book trade worldwide by Springer Science+Business Media New York, 233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a California LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation. For information on translations, please e-mail rights@apress.com, or visit http://www.apress.com/ rights-permissions.
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Print and eBook Bulk Sales web page at http://www.apress.com/bulk-sales. Any source code or other supplementary material referenced by the author in this book is available to readers on GitHub via the books product page, located at www.apress.com/9781484244722. For more detailed information, please visit http://www.apress.com/source-code. Printed on acid-free paper This book is dedicated to my family, especially tomy daughter and my wife.Table of Contents v Table of ConTenTs vi Table of ConTenTs vii Table of ConTenTs viii Table of ConTenTs ix Table of ConTenTs x Table of ConTenTs xi Table of ConTenTs xii Table of ConTenTs xiii Table of ConTenTs xiv Table of ConTenTs xv About the AuthorAntonio Vazquez is an IT professional who has been working with Linux for more than a decade.
He studied computer engineering at Universidad Nacional de Educacin a Distancia (UNED) in Spain, and he currently holds many IT certifications from the main vendors in the industry. At present, he works for a public institution and is in charge of almost 1,000 Linux servers spread across the country, providing web services, FTP services, file services, virtualization, and more. He is also the author of LearnCentOS Linux Network Services (Apress, 2016). xvii About the Technical ReviewerThiago Magalhes is a Linux Infrastructure Analyst with more than ten years of experience in the IT industry. He also works in a DevOps role with hands-on experience in supporting, automating, and optimizing mission-critical deployments. A Linux lover at heart, he focuses on security, high availability, containers, and cloud.
He administrates and maintains Linux services including DNS, OpenLDAP, Samba, Mail, HTTPS, Apache Tomcat, Squid, DHCP, SMTP, SFTP, IMAP, NIS, and NFS. At present, he works for a private multinational mass media company, responsible for the ongoing maintenance, growth, and development of large-scale servers running primarily on Linux. In his spare time, he loves cooking for his friends and watching movies with his family. xix Acknowledgments I'd like to show my gratitude to the people at Apress, specially the team I worked with: Louise, Nancy, and James. Its been a pleasure working with you again. xxi Introduction When I started studying for the LPIC-3 certification a few years ago, I noticed how few resources were available. xxi Introduction When I started studying for the LPIC-3 certification a few years ago, I noticed how few resources were available.
In addition, some of the resources were also quite dated and thus they were not very useful. The aim of this book is to help fill that gap. The LPI certification program is platform independent, but as it is obviously impossible to check every single topic in every Linux distribution, I decided to use CentOS Linux as the main operating system throughout the book. The choice of this distribution is due to the fact that RedHat and its derivatives like CentOS are currently one of the main Linux distributions. Of course, most of the topics learned in the book can be equally applied to other major Linux distributions such as SUSE, Ubuntu, and so on. The topics covered in this book are those official for the LPIC-3 300 exam at the time of writing, as well as those topics planned to be included in the new revision of the exam.
If you have any suggestions, opinions, questions, or criticisms about this book you can contact me via LinkedIn at https://www.linkedin.com/in/antoniojosevazquez/. Note, however, that I cannot promise to answer everyone. xxiii PART IOpenLDAPCHAPTER 1Starting with OpenLDAP This chapter doesnt cover the topics you are supposed to be familiar with to apply for the LPIC-3 300 exam. Instead, it shows you how to perform a simple OpenLDAP installation that will be the base in the upcoming sections to study more advanced topics. If you are already familiar with OpenLDAP, feel free to skip this chapter and move on to the following chapters; if youre not, though, this chapter will show you how easy it is to deploy an OpenLDAP server in CentOS 7. The LDAP Protocol The Lightweight Directory Access Protocol (LDAP) is an open protocol for accessing distributed directory services over a network connection.
It is closely related with the X.500 Directory Access Protocol (DAP). It follows some of the same rules, such as these: An entry consists of a set of attributes. Every attribute has a name and one or more values. The attributes are defined in the schema. Each entry will have a full path associated with it, the
Next page