Red Hat Directory Server 8.2 Using the Directory Server Console



Similar documents
Red Hat Subscription Management All Subscription Docs Quick Registration for RHEL

Red Hat Enterprise Linux OpenStack Platform 7 OpenStack Data Processing

JBoss Developer Studio 6.0

Red Hat JBoss Core Services Apache HTTP Server 2.4 Apache HTTP Server Installation Guide

Red Hat Directory Server Red Hat Directory Server 9 Deployment Guide

Copyright 2012 Trend Micro Incorporated. All rights reserved.

Red Hat Enterprise Virtualization 3.0 User Portal Guide. Accessing and Using Virtual Machines from the User Portal Edition 1

SWsoft, Inc. Plesk File Server. Administrator's Guide. Plesk 7.5 Reloaded

XenClient Enterprise Synchronizer Installation Guide

Red Hat Enterprise Virtualization for Desktops 2.2 User Guide. A guide to accessing and using virtual desktops. Edition 2


NDA ISSUE 1 STOCK # CallCenterWorX-Enterprise IMX MAT Quick Reference Guide MAY, NEC America, Inc.

Managing Identities and Admin Access

Personal Call Manager User Guide. BCM Business Communications Manager


Ultimus and Microsoft Active Directory

Parallels Plesk Panel

Synchronizer Installation

Parallels Panel. Parallels Small Business Panel 10.2: User's Guide. Revision 1.0

FileMaker Server 11. FileMaker Server Help

NSi Mobile Installation Guide. Version 6.2

Using LDAP Authentication in a PowerCenter Domain

SC-T35/SC-T45/SC-T46/SC-T47 ViewSonic Device Manager User Guide

Connection Broker Managing User Connections to Workstations, Blades, VDI, and More. Quick Start with Microsoft Hyper-V

Adeptia Suite LDAP Integration Guide

Portions of this product were created using LEADTOOLS LEAD Technologies, Inc. ALL RIGHTS RESERVED.

Dashboard Admin Guide

SAS Business Data Network 3.1

Counter-Strike Game Server Management Module

Red Hat JBoss Developer Studio 7.0 User Guide

Attix5 Pro Server Edition

Copyright 2013 Trend Micro Incorporated. All rights reserved.

Tivoli Access Manager Agent for Windows Installation Guide

Horizon Debt Collect. User s and Administrator s Guide

Red Hat Customer Portal Current Customer Portal Subscription Management

User Management Guide

WhatsUp Gold v16.3 Installation and Configuration Guide

ECAT SWE Exchange Customer Administration Tool Web Interface User Guide Version 6.7

Cisco TelePresence Authenticating Cisco VCS Accounts Using LDAP

CTERA Agent for Linux

Virtual CD v10. Network Management Server Manual. H+H Software GmbH

Content Filtering Client Policy & Reporting Administrator s Guide

Remote Management System

Quick Start Guide for VMware and Windows 7

WhatsUp Gold v16.2 Installation and Configuration Guide

Novell ZENworks Asset Management 7.5

Quest ChangeAuditor 5.1 FOR ACTIVE DIRECTORY. User Guide

Installing Management Applications on VNX for File

EMC Documentum Webtop

WhatsUp Gold v16.1 Installation and Configuration Guide

Tool Tip. SyAM Management Utilities and Non-Admin Domain Users

Avaya Network Configuration Manager User Guide

LDAP User Guide PowerSchool Premier 5.1 Student Information System

VMware Identity Manager Administration

Managed Security Web Portal USER GUIDE

Delegated Administration Quick Start

Configuring Sponsor Authentication

DESLock+ Basic Setup Guide Version 1.20, rev: June 9th 2014

Flexible Identity. LDAP Synchronization Agent guide. Bronze. version 1.2

Your Question. Net Report Answer

StarTeam/CaliberRM LDAP QuickStart Manager Administration Guide

Quick Start Guide for Parallels Virtuozzo

Perforce Defect Tracking Gateway Guide

Red Hat Certificate System 8.0 Managing Smart Cards with the Enterprise Security Client

Red Hat Certificate System 8.1 Managing Smart Cards with the Enterprise Security Client

Infor ERP BaanIV / Baan 5.0 / LN 6.1. User's Guide for Worktop 2.4

User's Guide. Product Version: Publication Date: 7/25/2011

FileMaker Server 14. FileMaker Server Help

Active Directory Integration

WatchDox Administrator's Guide. Application Version 3.7.5

McAfee Asset Manager Console

FileMaker Server 12. FileMaker Server Help

Managing Servers with Netscape Console

Product Guide Revision A. McAfee Web Reporter 5.2.1

3 Setting up Databases on a Microsoft SQL 7.0 Server

Setting Up Specify to use a Shared Workstation as a Database Server

WebSpy Vantage Ultimate 2.2 Web Module Administrators Guide

Configuring Avaya Aura Communication Manager and Avaya Call Management System Release 16.3 with Avaya Contact Center Control Manager Issue 1.

Red Hat JBoss Developer Studio 4.1 Smooks Developer Tools Reference Guide

User Guide. Version 3.2. Copyright Snow Software AB. All rights reserved.

Dell KACE K1000 System Management Appliance Version 5.4. Service Desk Administrator Guide

NetIQ Sentinel Quick Start Guide

McAfee Directory Services Connector extension

SharePoint AD Information Sync Installation Instruction

Legal Notes. Regarding Trademarks KYOCERA Document Solutions Inc.

NetBackup Backup, Archive, and Restore Getting Started Guide

Extreme Control Center, NAC, and Purview Virtual Appliance Installation Guide

NETWORK PRINT MONITOR User Guide

How To Configure CU*BASE Encryption

LANDESK Service Desk. Desktop Manager

RSA Authentication Manager 7.1 Microsoft Active Directory Integration Guide

AssetWise Performance Management. APM Remote Upgrade Guide

VMware Mirage Web Manager Guide

Managing users. Account sources. Chapter 1

LDAP Implementation AP561x KVM Switches. All content in this presentation is protected 2008 American Power Conversion Corporation

Release Information. Copyright. Limit of Liability. Trademarks. Customer Support

Xerox Multifunction Devices. Verify Device Settings via the Configuration Report

Request Manager Installation and Configuration Guide

Using SQL Reporting Services with Amicus

How To Take Advantage Of Active Directory Support In Groupwise 2014

Transcription:

Red Hat Directory Server 8.2 Using the Directory Server Console Managing users and access within the Red Hat Directory Server 8.2 console Edition 8.2.1 Landmann

Red Hat Directory Server 8.2 Using the Directory Server Console Managing users and access within the Red Hat Directory Server 8.2 console Edition 8.2.1 Landmann rlandmann@redhat.co m

Legal Notice Copyright 2010 Red Hat, Inc.. T his document is licensed by Red Hat under the Creative Commons Attribution-ShareAlike 3.0 Unported License. If you distribute this document, or a modified version of it, you must provide attribution to Red Hat, Inc. and provide a link to the original. If the document is modified, all Red Hat trademarks must be removed. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, MetaMatrix, Fedora, the Infinity Logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the United States and other countries. Java is a registered trademark of Oracle and/or its affiliates. XFS is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js is an official trademark of Joyent. Red Hat Software Collections is not formally related to or endorsed by the official Joyent Node.js open source or commercial project. T he OpenStack Word Mark and OpenStack Logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community. All other trademarks are the property of their respective owners. Abstract Red Hat Directory Server and Admin Server have a special Java-based console which simplifies administering the directories. T his guide covers the basic structure of the Red Hat Console for both the Directory Server and the Admin Server and provides an overview of how to use the main Red Hat Console to manage users and access within the Console.

Table of Contents Table of Contents. Preface........................................................................................... 4.......... 1. Purpose of This Guide 4 2. Examples and Formatting 4 2.1. Command and File Examples 4 2.2. T ool Locations 4 2.3. LDAP Locations 4 2.4. T ext Formatting and Styles 5 3. Additional Reading 5 4. Giving Feedback 6 5. Documentation History 7. Chapter......... 1... Overview.......... of... Red.... Hat.... Console........................................................... 8.......... 1.1. How the Console, Directory Server, and Admin Server Work T ogether 8 1.2. Red Hat Management Console Menus 10 1.3. Red Hat Management Console T abs 12 1.3.1. The Servers and Applications Tab 12 1.3.2. The Users and Groups Tab 12 1.4. Server-Specific Consoles 13 1.4.1. T he Directory Server Console 13 1.4.2. T he Admin Server Console 14. Chapter......... 2... Basic...... Tasks....... in.. the.... Red..... Hat.... Console................................................... 16........... 2.1. Installing the Console 16 2.2. Launching the Console 16 2.3. Opening a Directory or Admin Server Window 17 2.4. Changing the Console Appearance 18 2.4.1. Changing Profile Locations 18 2.4.2. Restoring Default Font Settings 19 2.4.3. Changing Console Fonts 20 2.4.4. Reordering T able Columns 21 2.4.5. Customizing the Main Window 22 2.4.6. Working with Custom Views 23 2.4.6.1. Creating Custom Views 23 2.4.6.2. Switching to a Custom View 24 2.4.6.3. Setting Access Permissions for a Public View 25. Chapter......... 3... Managing.......... Server........ Instances............................................................. 27........... 3.1. Editing Domain, Host, Server Group, and Instance Information 27 3.2. Creating and Removing Admin Domains 27 3.2.1. Creating and Editing an Admin Domain 28 3.2.2. Removing an Admin Domain 28 3.3. Creating a New Directory Server Instance 29 3.4. Deleting a Directory Server Instance 30. Chapter......... 4.. Managing........... Directory.......... Server....... Users....... and.... Groups........................................ 31........... 4.1. Searching for Users and Groups 31 4.2. Creating Directory Entries 32 4.2.1. Directory and Administrative Users 32 4.2.2. Groups 34 4.2.3. Organizational Units 36 4.3. Modifying Directory Entries 37 4.3.1. Editing Entries 37 4.3.2. Allowing Sync Attributes for Entries 38 1

Red Hat Directory Server 8.2 Using the Directory Server Console 4.3.3. Changing Administrator Entries 4.3.3.1. Changing the Configuration Administrator and Password 4.3.3.2. Changing the Admin Password 4.3.3.3. Adding Users to the Configuration Administrators Group 4.3.4. Removing an Entry from the Directory 39 39 41 41 42. Chapter......... 5... Setting........ Access........ Controls............................................................... 4. 3.......... 5.1. Granting Admin Privileges to Users for Directory Server and Admin Server 43 5.2. Setting Access Permissions on Console Elements 44. Chapter......... 6... Using...... SSL/T...... LS.... with..... Red.... Hat.... Management.............. Console................................... 4.. 8.......... 6.1. Overview of SSL/T LS 48 6.2. Installing Certificates Used by the Server 49 6.2.1. Generating a Certificate Request 49 6.2.2. Installing the Certificate 51 6.2.3. T rusting a Certificate Authority or Adding a Certificate Chain 53 6.3. Managing Certificates Used by the Directory Server Console 55 6.4. Enabling T LS/SSL 56 6.5. Creating Password Files 61 6.5.1. Creating a Password File for the Directory Server 62 6.5.2. Creating a Password File for the Admin Server 62. Index.......................................................................................... 63........... A 63 C 64 D 64 E 65 F 65 G 65 H 65 L 65 M 65 N 65 O 66 P 66 R 66 S 66 T 67 U 67 2

Table of Contents 3

Red Hat Directory Server 8.2 Using the Directory Server Console Preface Welcome to the Managing Servers with Red Hat Management Console Guide. Red Hat Directory Server and Admin Server have a special Java-based console which simplifies administering the directories. T his guide covers the basic structure of the Red Hat Console for both the Directory Server and the Admin Server and provides an overview of how to use the main Red Hat Console to manage users and access within the Console. 1. Purpose of This Guide T here are three Java consoles bundled together to manage the servers in Red Hat Directory Server: The Red Hat Management Console, which is the first console to open. This has a unified view of all Admin Server and Directory Server instances being managed and can perform basic user and group tasks, like adding, searching, editing, and deleting entries. T he Admin Server, which manages the Admin Server local instance, including viewing logs and changing the Admin Server configuration. T he Directory Server Console, a separate window for each Directory Server instance with manages the server through changing configuration and viewing logs and performance monitors and manages the directory and directory policies. This guide provides a basic overview of how to use and navigate through Red Hat Management Console so that managing servers through the consoles is easy and effective. 2. Examples and Formatting Each of the examples used in this guide, such as file locations and commands, have certain defined conventions. 2.1. Command and File Examples All of the examples for Red Hat Directory Server commands, file locations, and other usage are given for Red Hat Enterprise Linux 5 (64-bit) systems. Be certain to use the appropriate commands and files for your platform. Example 1. Example Command To start the Red Hat Directory Server: service dirsrv start 2.2. Tool Locations T he tools for Red Hat Directory Server are located in the /usr/bin and the /usr/sbin directories. T hese tools can be run from any location without specifying the tool location. 2.3. LDAP Locations T here is an important consideration with the Red Hat Directory Server tools. T he LDAP tools referenced in this guide are Mozilla LDAP, installed with Red Hat Directory Server in the /usr/lib64/m ozldap directory on Red Hat Enterprise Linux 5 (64-bit) (or /usr/lib/m ozldap for Red Hat Enterprise Linux 5 4

Preface (32-bit) systems). However, Red Hat Enterprise Linux systems also include LDAP tools from OpenLDAP in the /usr/bin directory. It is possible to use the OpenLDAP commands as shown in the examples, but you must use the -x argument to disable SASL, which OpenLDAP tools use by default. 2.4. Text Formatting and Styles Certain words are represented in different fonts, styles, and weights. Different character formatting is used to indicate the function or purpose of the phrase being highlighted. Formatting Style Monospace font Monospace with a background Purpose Monospace is used for commands, package names, files and directory paths, and any text displayed in a prompt. This type of formatting is used for anything entered or returned in a command prompt. Italicized text Bolded text Any text which is italicized is a variable, such as instance_name or hostname. Occasionally, this is also used to emphasize a new term or other phrase. Most phrases which are in bold are application names, such as Cygwin, or are fields or options in a user interface, such as a User Name Here: field or Save button. Other formatting styles draw attention to important text. NOTE A note provides additional information that can help illustrate the behavior of the system or provide more detail for a specific issue. IMPORTANT Important information is necessary, but possibly unexpected, such as a configuration change that will not persist after a reboot. WARNING A warning indicates potential data loss, as may happen when tuning hardware for maximum performance. 3. Additional Reading 5

Red Hat Directory Server 8.2 Using the Directory Server Console T he Directory Server Administrator's Guide describes how to set up, configure, and administer Red Hat Directory Server and its contents. this manual does not describe many of the basic directory and architectural concepts that you need to deploy, install, and administer a directory service successfully. T hose concepts are contained in the Red Hat Directory Server Deployment Guide. You should read that book before continuing with this manual. When you are familiar with Directory Server concepts and have done some preliminary planning for your directory service, install the Directory Server. T he instructions for installing the various Directory Server components are contained in the Red Hat Directory Server Installation Guide. Many of the scripts and commands used to install and administer the Directory Server are explained in detail in the Red Hat Directory Server Configuration, Command, and File Reference. Also, Managing Servers with Red Hat Console contains general background information on how to use the Red Hat Console. You should read and understand the concepts in that book before you attempt to administer Directory Server. T he document set for Directory Server contains the following guides: Red Hat Directory Server Release Notes contain important information on new features, fixed bugs, known issues and workarounds, and other important deployment information for this specific version of Directory Server. Red Hat Directory Server Deployment Guide provides an overview for planning a deployment of the Directory Server. Red Hat Directory Server Administrator's Guide contains procedures for the day-to-day maintenance of the directory service. Includes information on configuring server-side plug-ins. Red Hat Directory Server Configuration, Command, and File Reference provides reference information on the command-line scripts, configuration attributes, and log files shipped with Directory Server. Red Hat Directory Server Installation Guide contains procedures for installing your Directory Server as well as procedures for migrating from a previous installation of Directory Server. Red Hat Directory Server Schema Reference provides reference information about the Directory Server schema. Red Hat Directory Server Plug-in Programmer's Guide describes how to write server plug-ins in order to customize and extend the capabilities of Directory Server. Using Red Hat Console gives an overview of the primary user interface and how it interacts with the Directory Server and Admin Server, as well as how to perform basic management tasks through the main Console window. Using the Admin Server describes the different tasks and tools associated with the Admin Server and how to use the Admin Server with the Configuration and User Directory Server instances. For the latest information about Directory Server, including current release notes, complete product documentation, technical notes, and deployment information, see the Red Hat Directory Server documentation site at http://www.redhat.com/docs/manuals/dir-server/. 4. Giving Feedback If there is any error in this Using Red Hat Console or there is any way to improve the documentation, please let us know. Bugs can be filed against the documentation for Red Hat Directory Server through Bugzilla, http://bugzilla.redhat.com/bugzilla. Make the bug report as specific as possible, so we can be more effective in correcting any issues: 1. Select the Red Hat Directory Server product. 6

Preface 2. Set the component to Doc - m anaging-servers. 3. Set the version number to 8.2. 4. For errors, give the page number (for the PDF) or URL (for the HTML), and give a succinct description of the problem, such as incorrect procedure or typo. For enhancements, put in what information needs to be added and why. 5. Give a clear title for the bug. For example, "Incorrect command example for setup script options" is better than "Bad exam ple". We appreciate receiving any feedback requests for new sections, corrections, improvements, enhancements, even new ways of delivering the documentation or new styles of docs. You are welcome to contact Red Hat Content Services directly at docs@redhat.com. 5. Documentation History Revision 8.2.1-1.2.33.4 00 2013-10-31 Rüdiger Landmann Rebuild with publican 4.0.0 Revision 8.2.1-1.2.33 July 24 2012 Ruediger Landmann Rebuild for Publican 3.0 Revision 8.2.1-0 November 19, 2010 Ella Deon Lackey Added warning note and updated procedure for configuring SSL in the Console, per Bugzilla #488951. Added information on loading certificates in the Console security databases, per Bugzilla #632420. Revision 8.2.0-0 August 2, 2010 Ella Deon Lackey Initial draft for Red Hat Directory Server version 1. 7

Red Hat Directory Server 8.2 Using the Directory Server Console Chapter 1. Overview of Red Hat Console Red Hat Management Console is the user interface to manage Red Hat Directory Server and Admin Server configuration and directory information. T here is a single main Console window which administers the servers (collected and identified in administration domains). T he main Console allows you to open server-specific Consoles to manage the settings and information in individual instances. T his chapter provides an overview of how the Console interacts with the Directory Server and Admin Server and walks through the Console windows and options. 1.1. How the Console, Directory Server, and Admin Server Work Together T he Red Hat Console is an independent Java application which works in conjunction with instances of Red Hat Directory Server and Admin Server. Most server management functions are carried out in server-specific console windows for the Directory Server and Admin Server. Red Hat Console is part of a system that manages Red Hat Directory Server instances and the Admin Server and, therefore, information in the directory. Although Red Hat Directory Server, Red Hat Management Console, and Red Hat Admin Server work tightly with one another, each plays a specific role in managing servers, applications, and users. Red Hat Management Console is the front-end management application for Red Hat Directory Server. It finds all servers and applications registered in the configuration directory, displays them in a graphical interface, and can manage and configure them. The Main Console can also search for, create, and edit user and group entries in the user directory. Figure 1.1. T he Red Hat Management Console Interface When a user logs into Red Hat Management Console, the Console connects to the Admin Server over Hypertext T ransfer Protocol (HT T P). T he Admin Server receives requests to administer the different Directory Server instances and performs the changes to the configuration, such as changing a port number. When a request is sent to the Red Hat Management Console to add or edit user entries, the Console sends a Lightweight Directory Access Protocol (LDAP) message directly to Directory Server to update the user directory. 8

Chapter 1. Overview of Red Hat Console Figure 1.2. Simple System Using Red Hat Management Console Red Hat Directory Server stores server and application configuration settings as well as user information. T ypically, application and server configuration information is stored in one subtree of Red Hat Directory Server while user and group entries are stored in another subtree. With a large enterprise, however, configuration and user information can be stored in separate instances of Directory Server (which can be on the same host machine or on two different host machines). Figure 1.2, Simple System Using Red Hat Management Console illustrates a relatively simple Red Hat Directory Server system. As an enterprise grows and needs change, additional hosts and Directory and Admin Servers can be added to the administration domain in the Console, so that a single Console can manage multiple Directory and Admin Servers. 9

Red Hat Directory Server 8.2 Using the Directory Server Console Figure 1.3. A More Complex System NOTE When the terms configuration directory and user directory are used in this guide, they refer to where the configuration information and the user information is stored, regardless of whether that is in the subtrees of a single instance of Directory Server or in two separate instances of Directory Server. 1.2. Red Hat Management Console Menus There are five menu items in the top menu the Console. The options for each of these menus varies depending on the Console window open (the main Console, Directory Server Console, or Admin Server Console) and the types of objects available in that server area. 10

Chapter 1. Overview of Red Hat Console Figure 1.4. Main Console Menus T able 1.1. Console Menus Menu Console Description Manages the Console session, such as closing the window or exiting the session entirely. For the main window, this menu also can be used to add and remove admin domain. For the Directory Server Console, this allows people to log in as a different user. For the Admin Server Console, it manages security issues, such as certificates and tokens. Edit View Object Sets display preferences, for all three Consoles. For the Directory Server Console, this also provides ways to copy, paste, and delete directory entries or text. Sets whether to display certain parts of the Console window, such as the top banner, menus, and side navigation panes. T his also refreshes the current display. For the Directory Server Console, this menu also sets what parts of the directory or which databases to view. Provides available operations for the active object; this is the same as the right-click menu for the active area or entry. For the main window, this menu simply opens or deletes a server instance. For the Directory Server Console, this provides all of the configuration options for the directory entries, such as advanced property editors or creating new entries. For the Admin Server Console, this opens a configuration editor, starts, and stops the server. Help Opens context-specific help for the current Console area. 11

Red Hat Directory Server 8.2 Using the Directory Server Console 1.3. Red Hat Management Console Tabs There are two tabs in the main Console window: Servers and Applications, for managing the Directory Server and Admin Server instances Users and Groups, for searching for and creating user and group entries within the Directory Server 1.3.1. The Servers and Applications Tab T he Servers and Applications tab, by default, has a navigation tree on the left for viewing hosts and Directory and Admin Servers and a center information panel. T o access the Directory Server instance, directory information, or Admin Server, open the server resource listed in the navigation tree. The information for the server instance, such as the build number and port number, T he navigation tree displays the Red Hat Directory Server topology, a hierarchical representation of all the resources (such as servers and hosts), that are registered in a configuration directory. Figure 1.5. The Servers and Applications Tab T he top of the topology is the administration domain. An administration domain is a collection of host systems and servers that share the same user directory. T he server which hosts Directory Server or Admin Server instances belongs to the admin domain; that is the host. A server group consists of all Directory Servers that are managed by a common Admin Server. A number of server groups can exist within an administration domain. 1.3.2. The Users and Groups Tab T he Users and Groups tab can search for user and group entries in any Directory Server administered by the Console. Any of the returned entries can be edited or deleted through this tab, assuming that the users has the proper access permissions. New entries can also be created through the Users and Groups tab. 12

Chapter 1. Overview of Red Hat Console Figure 1.6. The Users and Groups Tab Switch the directory being searched or where the entries are added through the options in the Users menu, as described in Section 4.1, Searching for Users and Groups. 1.4. Server-Specific Consoles T he main Console can open into two server-specific windows to manage the Admin Server and Directory Server. T hese windows are opened by clicking the server name in the navigation area, and then clicking the Open button in the resources area. 1.4.1. The Directory Server Console T he Directory Server Console manages the specific Directory Server instance configuration, including the port number, SSL settings, and logging. T he Directory Server Console also manages the directory information (entries) and directory operations like importing and exporting databases, creating suffixes, and extending the schema. 13

Red Hat Directory Server 8.2 Using the Directory Server Console Figure 1.7. T he Directory Server Console There are four tabs in the Directory Server Console: T asks, which has shortcuts to common server operations, including starting and stopping the Directory Server instance, importing and exporting databases, and managing SSL certificates Configuration, which defines all of the server configuration settings, including SASL and SSL authentication, port numbers, schema, replication and synchronization, databases and suffixes, logging, and plug-ins Directory, which access and manages the directory information, including user entries and all group entries, including roles, classes of service, views, and groups Status, which monitors the server performance and displays the different monitoring and performance counters for the Directory Server and databases Similar to the main Console, the Directory Server Console tabs have a navigation area on the left and a center panel that displays information about the active setting, entry, or database. T he procedures for using the Directory Server Console to manage the Directory Server configuration and directory entries is covered in the Directory Server Administrator's Guide. 1.4.2. The Admin Server Console T he Admin Server itself administers the configuration of other servers, especially the configuration and user directories for the server group. T he Admin Server Console manages the Admin Server settings and the settings for these two Directory Server directories; whenever the settings are changed in the Directory Server configuration, the modifications must be carried into the Admin Server configuration for the server to properly manage those servers. 14

Chapter 1. Overview of Red Hat Console Figure 1.8. T he Admin Server Console T he Admin Server Console is simpler than the Directory Server Console, with only two tabs: T asks, which has shortcuts to common server operations, including starting and stopping the Admin Server instance, setting up logging, and managing SSL certificates Configuration, which defines all of the Admin Server configuration settings, including SSL authentication, port numbers, and logging, as well as the Configuration Directory Server and User Directory Server settings which the Admin Server uses to connect to the directory services T he procedures for using the Admin Server Console to manage the Admin Server configuration and associated directory services is covered in the Using the Admin Server guide. 15

Red Hat Directory Server 8.2 Using the Directory Server Console Chapter 2. Basic Tasks in the Red Hat Console While most server management functions are carried out in server-specific console windows for the Red Hat Directory Server and Admin Server, the main Red Hat Console itself has some basic management functions, such as creating server instances, searching the directory, setting some access controls, and allowing some entry modifications. T his chapter covers basic tasks in the Red Hat Console, including installing the Console, creating and editing server instances, and configuring the Console appearance. 2.1. Installing the Console T he Red Hat Console package, redhat-ds-console.noarch, can be installed on Red Hat Enterprise Linux systems using tools like yum. For example: yum install redhat-idm-console The Red Hat Console package and also be downloaded through Red Hat Network and installed using package management tools such as rpm and pkgadd. For example: rpm -ivh redhat-idm-console-1.0.0-22.el4idm.i386.rpm 2.2. Launching the Console 1. Run the redhat-idm-console command. For example: redhat-idm-console -a http://server.example.com:9830 The different options for the redhat-idm-console command are listed in Table 2.1, Arguments for redhat-idm-console. 2. Enter the user name and password. Also, enter or select the URL for the instance of Admin Server, if one was not passed with the command. The URL can be either the hostname or the IP address of the Admin Server host. The Admin Server port number must be given, as well. The five most recent Admin Server URLs accessed are available as a drop-down menu option. 16

Chapter 2. Basic Tasks in the Red Hat Console T able 2.1. Arguments for redhat-idm-console Argument Description Example -a adminurl Specifies a base URL for the instance of Admin Server to log into. -f filename Writes errors and system messages to filename. -h Prints out the help message for redhat-idm-console. -s Specifies the directory instance to access, either by specifying the DN of the server instance entry (SIE) or the instance name, such as slapdexam ple. -u Gives the user DN to use to log into the Console. -w Gives the password to use to log into the Console. -w - Reads the password from the standard output. -x options Specifies extra options. T here are three values for extraoptions: nowinpos, which puts the Console window in the upper left corner of the screen nologo, which keeps the splash screen from being displayed and only opens the login dialog javalaf, which uses the Java look and feel for the Console interface rather than the platform-specific styles -a http://eastcoast.example.com:98 7 -f system.out -s slapd-example -u "cn=directory Manager" -w secret -x nologo,nowinpos T o use multiple options, separate them with a comma. -y file Reads the password from the specified input file. -y password.txt 2.3. Opening a Directory or Admin Server Window T he Red Hat Management Console is the avenue to access instance-specific management windows for the Directory Server and Admin Server. To open a console window for a specific server instance: 1. Open the Red Hat Console. 17

Red Hat Directory Server 8.2 Using the Directory Server Console redhat-idm-console 2. Click the Servers and Applications tab, which lists all of the Directory Server and Admin Server instances within the configured Directory Server domain. 3. In the navigation tree, click a server to select it. 4. In the the right-hand panel, click Open. Alternatively, double-click the server icon in the navigation tree. 2.4. Changing the Console Appearance The fonts used for different elements in the Console can be edited. The font settings and the location where the font profiles are stored can be customized. T he default font settings can be restored easily. This section also describes how to control other aspects of the appearance of the Console. For example, table columns can be easily rearranged. It is also possible to control which server instances are displayed (called a navigation view) which makes it easy to sort and find server instances. Access control instructions can be applied to user interface elements, which is discussed in Chapter 5, Setting Access Controls. Section 2.4.1, Changing Profile Locations Section 2.4.2, Restoring Default Font Settings Section 2.4.3, Changing Console Fonts Section 2.4.4, Reordering T able Columns Section 2.4.5, Customizing the Main Window 2.4.1. Changing Profile Locations T he Console formatting is stored in profiles. An entry's profiles can be stored locally, which means that they are only available at a specific workstation, or can be stored in the configuration directory, so they are accessible anywhere. To set the profile location: 1. Click Edit in the top menu, and choose Preferences. 18

Chapter 2. Basic Tasks in the Red Hat Console 2. Click the Settings tab. 3. Select the radio button for the location to save the settings. 4. Click OK. In your configuration directory means that the settings are stored in the Directory Server configuration, making them available no matter where you log into the Console. On your computer's hard disk stores the setting profiles locally. This is mainly useful if you want specific, different settings used by default on different Consoles, such as a workstation and a laptop. 2.4.2. Restoring Default Font Settings 1. Click Edit in the top menu, and choose Preferences. 2. Click the Settings tab. 3. Click the Restore Defaults button to revert to the default display settings. 19

Red Hat Directory Server 8.2 Using the Directory Server Console 4. Click OK. 2.4.3. Changing Console Fonts Different parts of the Console, such as table headings and regular text, have different font settings. T he font settings are stored in profiles. T he profiles define the font family, size, and formatting for every text element. There can be multiple font profiles available, and the font profiles can be private, such as settings for a specific user or group, or public, so that any user can access them. T he default profile can be edited without having to create new profiles. To edit or create a font profile: 1. In the main Red Hat Management Console window, from the Edit menu, choose Preferences. 2. Click the Fonts tab. 3. To save the new settings as a new profile, click the Save As button, and fill in the profile name. T o edit the default (or current) profile, simply begin editing the fonts. 4. In the Screen Elem ent column, click a screen element to edit, then click the Change Font button. 5. Edit the font for that specific element. There are three settings which can be changed: the font family, the size, and the formatting (bold or italic). 20

Chapter 2. Basic Tasks in the Red Hat Console 6. Click OK to save the profile. 7. Restart the Console to apply the changes. To load and use a saved font profile, open the Font tab in the Preference dialog, and simply select the font profile to use and click OK. To delete a font profile, simply make sure that it is selected from the drop-down menu in the Fonts tab, and click the Remove button. 2.4.4. Reordering Table Columns The columns in a table can be rearranged by dragging them into a new position. 1. Click in the table heading. 21

Red Hat Directory Server 8.2 Using the Directory Server Console 2. Still holding down the left mouse button, drag the column to its new location. The other table columns will automatically shift down to their new positions. 3. When you release the mouse button, the column snaps into its new position. 2.4.5. Customizing the Main Window Different elements of the main Red Hat Management Console window can be displayed or hidden; this is set by check boxes in the View menu. 22

Chapter 2. Basic Tasks in the Red Hat Console set by check boxes in the View menu. There are three parts of the Console which can be hidden: the navigation tree (the smaller panel on the left of the Console window); the decorative background and banner at the top of the Console window; and the status bar at the bottom of the Console. 2.4.6. Working with Custom Views The Console allows different views to be created to show different server and domain entries in the Red Hat Management Console window. Views show only a defined set of server entries; this makes it easier to maintain large numbers of instances or to have a quick way to perform specific tasks. 2.4.6.1. Creating Custom Views Custom views show different, defined server instances. Views are either public or private. A public view is visible to any user, while a private view is visible only to the person who created it. 1. In the View menu, choose Custom View Configuration. 2. Click New. 23

Red Hat Directory Server 8.2 Using the Directory Server Console 3. Choose whether the new view will be public or private, then click OK. A public view is visible to all Console users by default, but access control instructions (ACIs) can be set to restrict access. For more information, see Section 2.4.6.3, Setting Access Permissions for a Public View. A private view is only visible to the user who sets it, and ACIs cannot be set to change the access to it. 4. In the Edit View window, enter a descriptive name for this view. 5. Select a resource from the Default View navigation tree on the left. Click Copy to list it in the panel on the right and include it in the view. To select a range of resources, click the SHIFT key and select the first and last entries; select multiple, separate resources by holding down the Ctrl key and selecting the entries. To edit a custom view, select it from the list, click the Edit button, and make the changes to the name or resources. To delete a custom view, select it from the list, and click the Remove button. 2.4.6.2. Switching to a Custom View Choose the desired custom view from the drop-down list on the Servers and Applications tab. 24

Chapter 2. Basic Tasks in the Red Hat Console T o return to the default view, choose Default View from the drop-down list. 2.4.6.3. Setting Access Permissions for a Public View 1. From the View m enu, choose Custom View Configuration. 2. Choose a public Custom View from the list and click Access. 3. Set the access control instructions. 25

Red Hat Directory Server 8.2 Using the Directory Server Console 4. Click OK to save the ACI. For more information on setting access permissions and creating access control instructions, see Chapter 5, Setting Access Controls. 26

Chapter 3. Managing Server Instances Chapter 3. Managing Server Instances The server instances managed by the Red Hat Management Console are arranged in a hierarchy. At the top is the admin domain. Within the domain are hosts, representing different server machines. Each host has server groups, which identifies an inter-related group of Directory Servers using the same Admin Server instance. T he individual Directory Server instances and a single Admin Server instance belong withing a server group. There can only be one Admin Server instance per server group. These high level entries can be created and managed in the Red Hat Management Console. 3.1. Editing Domain, Host, Server Group, and Instance Information T he Red Hat Console displays some information about every admin domain, host, group, and server instances. Most of this information such as the installation date and build number are not editable, but some information is. 1. In the Servers and Applications tab, select the entry to modify. 2. Click Edit. 3. Edit the instance's information. Every entry has the option to change its name and description. The host, which is the physical machine on which the instances are installed, also has the option of changing the location. 4. Click OK. 3.2. Creating and Removing Admin Domains An admin domain is a container entry for server groups (and each server group contains Directory 27

Red Hat Directory Server 8.2 Using the Directory Server Console Server instances which are configured to work with the same Configuration Directory Server and the same Admin Server, which is also in the server group). 3.2.1. Creating and Editing an Admin Domain To create a new admin domain: 1. In the top menu, click the Console menu item. 2. Select Create New Administration Domain. 3. Fill in the admin domain's information, including information for a new Directory Server instance. 4. Click OK. To edit an admin domain, select the entry in the server window and click the Edit button. WARNING The admin domain settings affect all servers within the domain. Making any changes to the admin domain settings means that all servers in the domain must be restarted. 3.2.2. Removing an Admin Domain To remove an admin domain: 1. Highlight the admin domain to remove in the navigation tree. 2. In the top menu, click the Console menu item. 3. Select Remove Administration Domain. 28

Chapter 3. Managing Server Instances 4. Click Yes. NOTE Any server group and servers within the domain must be removed before the domain can be deleted. 3.3. Creating a New Directory Server Instance After the default Red Hat Directory Server and Admin Server instances are installed and configured, additional Directory Server instances can be created using the same schema and configuration and in the same installation directory, /etc/dirsrv. Having multiple instances on the same host makes it easier to maintain divisions between directories while simplifying administering multiple directories. 1. In Red Hat Management Console, select the server group that will contain the new server instance. 2. Right-click on the server group entry, and select Create Instance Of, and then Red Hat Directory Server. Alternatively, click Object in the top menu bar, and select Create Instance Of. 3. Fill in the information for the new instance of Directory Server, including the base DN, Directory Manager, and port. 29

Red Hat Directory Server 8.2 Using the Directory Server Console 4. Click OK. 3.4. Deleting a Directory Server Instance 1. In the Red Hat Management Console, select the instance to delete. 2. Right-click the server instance, and select Rem ove Server. 3. Click Yes to confirm the deletion. 30

Chapter 4. Managing Directory Server Users and Groups Chapter 4. Managing Directory Server Users and Groups Users for both multiple Red Hat Directory Server instances and Admin Server can be created, edited, and searched for in the Red Hat Management Console. The main Console window can also be used to create organizational units and groups and to add entries to the new ous and groups. Chapter 5, Setting Access Controls describes how to work with user and group information when setting access privileges and other security information. 4.1. Searching for Users and Groups T he Users and Groups searches for directory entries; by default, it looks in the default user directory configured for the Admin Server, but the directory can be changed to any Red Hat Directory Server instance. T o search the directory: 1. Click the Users and Groups tab. 2. Enter the search criteria, and click Search. For a simple search, enter all or part of an entry name in the text box. To return all entries, leave the search field blank or enter an asterisk (*). For a more complex or focused search, click the Advanced button, and enter the attributes to search (such as cn, givenname, or ou), the kind of search, and the search term. To add or remove search criteria, click the More and Fewer buttons. 3. Click Search. Results are displayed in the list box. T o change the search directory: 1. Click the Users and Groups tab. 2. In the top menu, select the User menu item, and choose Change Directory. 31

Red Hat Directory Server 8.2 Using the Directory Server Console 3. Fill in the user directory information. 4. Click OK. User Directory Host. T he fully qualified hostname for the Directory Server instance. User Directory Port and Secure Connection. T he port number for the connection and whether this is an SSL (LDAPS). User Directory Subtree. The DN of the subtree to search in the directory; for example, dc=exam ple,dc=com for the base DN or ou=marketing,dc=exam ple,dc=com for a subtree. Bind DN and Bind Password. T he credentials to use to authenticate to the directory. 4.2. Creating Directory Entries The Red Hat Management Console can be used to add, edit, and delete users, groups, and organization units in the Users and Groups tab. T he different kinds of entries and options for creating entries is explained in more detail in the Directory Server Administrator's Guide. 4.2.1. Directory and Administrative Users 32

Chapter 4. Managing Directory Server Users and Groups NOTE A user can be added to the Directory Server user database through the Console or a user can be added as an Admin Server administrator. T he process is almost identical, with two exceptions: A Directory Server user is added by clicking the Create button, then the Users option, while an administrator is created by selecting the Administrator option. An administrator doesn't require selecting an organization unit, while the Directory Server user does, because the administrator is automatically added to ou=groups,ou=t opology,o=netscaperoot. 1. Click the Users and Groups tab. 2. Click the Create button, and choose User. Alternatively, open the User option in the top menu, and choose Create > User. 3. Select the are in the directory tree under which the entry is created. NOTE When creating an administrator, there is no option to select the ou to which to add the user as there is with a regular Directory Server user. This is because the administrator is added to ou=groups,ou=t opology,o=netscaperoot, with the admin users. The entry can be added to an ou or a view, if views have been added to the directory. 4. In the Create User window, enter user information. The Common Name and User ID fields 33

Red Hat Directory Server 8.2 Using the Directory Server Console In the Create User window, enter user information. The Common Name and User ID fields are automatically filled in with the combined values the First Nam e and Last Nam e fields. These first, last, and common name fields are required; a password is also required for the user to be able to log into the Directory Server and the Console, but is not a required attribute. 5. Optionally, click the Languages link on the left, select an alternate language and fill in internationalized values for common attributes. T his option allows international users to select a language other than English and to represent their names in their preferred language. T he pronunciation attribute allows for phonetic searching against the international name attributes. 6. Click OK. 4.2.2. Groups A group consists of users who share a common attribute or are part of a list. Red Hat Directory Server supports three types of groups: static, dynamic, and certificate. Each group differs by the way in which users, or members, are added to it: A static group has members who are manually added to it, so it is static because the members do not change unless an administrator manually adds or removes users. A dynamic group automatically includes users based on one or more attributes in their entries; the 34

Chapter 4. Managing Directory Server Users and Groups attributes and values are determined using LDAP URLs. For example, a dynamic group can use an LDAP filter which searches for entries which contain the attributes and values st=california and departm ent=sales. As entries are added to the directory with those two attributes, the users are automatically added as members to the dynamic group. If those attributes are removed from the entry, the entry is removed from the group. A certificate group includes all users who have a specific attribute-value pair in the subject name of the certificate. For example, the certificate group could be based on having the string st=california,ou=sales,ou=west in the subject name. If a user logs onto a server using a certificate with those attributes in his certificate, the user is automatically added to the group and is granted all of the access privileges of that group. To create a group: 1. Click the Users and Groups tab. 2. Click the Create button, and choose Group. Alternatively, open the User option in the top menu, and choose Create > Group. 3. Select the are in the directory tree under which the entry is created. The subtree entry can be an ou or a view, if views have been added to the directory. 4. Enter the group's name and description. 35

Red Hat Directory Server 8.2 Using the Directory Server Console It is possible to save the new group entry at this point, without adding members. Click OK. 5. Click the Members link to add members to the group, and click the tab of the type of group membership, Static, Dynam ic, or Certificate. 6. Configure the members. For static groups, manually search for and add users; for dynamic groups, construct the LDAP URL to use to find entries; and for certificate groups, enter the values to search for in user certificate subject names. NOTE The different kinds of groups and how to configure their members are explained in more detail in the Directory Server Administrator's Guide. 4.2.3. Organizational Units An organizational unit can include a number of groups and users. An org unit usually represents a distinct, logical division in an organization, such as different departments or geographical locations. Each organizationalunitname (ou) is a new subtree branch in the directory tree. T his is reflected in the relative distinguished name of the ou, such as ou=people,dc=exam ple,dc=com, which becomes part of the distinguished names of its sub-entries. 36

Chapter 4. Managing Directory Server Users and Groups 1. Click the Users and Groups tab. 2. Click the Create button, and choose Organizational Unit. Alternatively, open the User option in the top menu, and choose Create > Organizational Unit. 3. Select the directory subtree under which to locate the new organizational unit. 4. Fill in the organizational unit information. T he Alias offers an alternative name for the organizational unit that can be used instead of the full name. 5. Click OK. 4.3. Modifying Directory Entries 4.3.1. Editing Entries 1. Search for the entry to edit. See Section 4.1, Searching for Users and Groups for more information on searching for entries. 2. Select the entry, and click Edit. 37

Red Hat Directory Server 8.2 Using the Directory Server Console 3. Edit the entry information, and click OK to save the changes. 4.3.2. Allowing Sync Attributes for Entries Red Hat Directory Server and Active Directory synchronization unify some Unix and Windows-specific directory attributes; to carry over a Directory Server entry to Active Directory, the entry must have ntuser attributes. (Likewise, Windows entries must have posixaccount attributes.) Windows (NT) attributes must an be enabled on entries. By default, these attributes are added manually to individual entries. The user edit windows have links on the left for NT User to allow Directory Server entries to contain Windows-specific attributes for synchronization. It is also possible to configure the server so that all new entries will automatically possess the ntuser object class; this is described in the Directory Server Active Directory synchronization chapter of the Directory Server Administrator's Guide. NOTE Any Red Hat Directory Server entry must have the ntuser object class and required attributes added in order to be synchronized to Active Directory. T o enable synchronization: 1. Select or create a user, and click the NT User link. 2. Enable the NT account, and check how the entry will be synchronized (meaning, whether a new entry will be created and whether that entry should be deleted on Active Directory if it is delete on Directory Server). 38

Chapter 4. Managing Directory Server Users and Groups 3. Click OK. 4.3.3. Changing Administrator Entries When the Admin Server is installed, two entries are created with administrator access in the Console. T he main entry is the Configuration Administrator, who is authorized to access and modify the entire configuration directory (o=netscaperoot). The Configuration Administrator entry is stored in the uid=username, ou=adm inistrators,ou=t opologymanagem ent,o=netscaperoot entry. T he Configuration Administrator's username and password are automatically used to create the Admin Server Administrator, who can perform a limited number of tasks, such as starting, stopping, and restarting servers. The Admin Server Administrator is created so that a user can log into the Red Hat Management Console when the Directory Server is not running. T he Admin Server Administrator does not have an LDAP entry; it exists in the Admin Server's configuration file, /usr/share/dirsrv/properties/adm pw. IMPORTANT Even though they are created at the same time during installation, and are identical at that time, the Configuration Administrator and Admin Server Administrator are two separate entities. If the username or password is changed for one, Red Hat Management Console does not automatically make the same changes for the other. Section 4.3.3.1, Changing the Configuration Administrator and Password Section 4.3.3.2, Changing the Admin Password Section 4.3.3.3, Adding Users to the Configuration Administrators Group 4.3.3.1. Changing the Configuration Administrator and Password 1. In the Users and Groups, click Advanced. 2. Search for the Configuration Administrator. Select the Administrators object, and enter the administrator's username, Configuration Adm inistrator by default. 39

Red Hat Directory Server 8.2 Using the Directory Server Console 3. Select the Configuration Administrator from the list of search results, and then click Edit. 4. Change the administrator's uid and password. T he uid is the naming attribute used to log into the Console and run commands. 5. Click OK. NOTE If you are logged into the Console as the Configuration Administrator when you edited the Configuration Administrator entry, update the login information for the directory. 1. In the Users and Groups tab, click the User menu in the top menu and select Change Directory. 2. Update the Bind DN and Bind Password fields with the new information for the Configuration Administrator, and click OK. 4 0

Chapter 4. Managing Directory Server Users and Groups 4.3.3.2. Changing the Admin Password 1. Select the Admin Server in the Servers and Applications tab, and click Open. 2. Click the Configuration tab, and open the Access tab. 3. Set the new password. CAUTION Do not change the admin username. 4. Click Save. 5. Restart the Admin Server. service dirsrv-admin restart 4.3.3.3. Adding Users to the Configuration Administrators Group 1. In the Users and Groups tab, click the User menu in the top menu and select Change Directory. 2. Change to the o=netscaperoot subtree, which contains the configuration information and the Configuration Administrators group. 3. Search for the Configuration Adm inistrators group, and click Edit. 4. Click the Members link in the left of the edit window. 5. Click Add, and search for the user to add to the group. 4 1

Red Hat Directory Server 8.2 Using the Directory Server Console NOTE Only users in the o=netscaperoot database can be added to the Configuration Administrators group. T his means that the entry must be created as an administrator, not a regular user, when added through the Console. See Section 4.2.1, Directory and Administrative Users. 4.3.4. Removing an Entry from the Directory 1. Search for the entry to deleted. See Section 4.1, Searching for Users and Groups for more information on searching for entries. NOTE All entries must be removed from under an organization unit before it can be deleted. 2. Select the entry in the results list, and click Delete. Click OK to confirm the deletion. 4 2

Chapter 5. Setting Access Controls Chapter 5. Setting Access Controls Access control instructions (ACIs) can be set in the Red Hat Management Console to set limits on what users can see and what operations they can perform on Red Hat Directory Server and Admin Server instances managed in the Console. ACIs define what operations users can do with a specific instance of Red Hat Directory Server or Admin Server. ACIs set rules on areas of the subtree which can be accessed or modified, what operations are allowed, even what hosts can be used to access the server and what times of day access is allowed. For Red Hat Management Console, access controls can be used to grant administrative privileges very easily to specific users and to set restrictions on different aspects of the main Console, such as searching the directory, adding and editing users and groups, and editing server or Console settings. ACIs and access control lists (ACLs) are described in much more detail in the Directory Server Administrator's Guide. 5.1. Granting Admin Privileges to Users for Directory Server and Admin Server Users can be granted administrative privileges, the same as the admin user for the Admin Server and similar to the cn=directory Manager user in Directory Server (though not exactly the same as the Directory Manager, which is a special user). 1. Highlight a server in the Console navigation tree. 2. Select the Object menu, and choose Set Access Perm issions. Alternatively, right-click the entry, and choose Set Access Perm issions. 3. Click Add to add a new user to the list of administrators for the server. The default users, Directory Manager for the Directory Server and adm in for the Admin Server, are not listed in the Set Perm issions Dialog box. 4 3

Red Hat Directory Server 8.2 Using the Directory Server Console 4. Search for the users to add as an administrators. In the results, highlight the selected users, and click Add to add them to the administrators list. For more information on searching for users and groups, see Section 4.1, Searching for Users and Groups. 5. Click OK to add the names to the Set Perm issions Dialog list, then click OK again to save the changes and close the dialog. NOTE Granting a user the right to administer a server does not automatically allow that user to give others the same right. To allow a user to grant administrative rights to other users, add that user to the Configuration Administrators group, as described in Section 4.3.3.3, Adding Users to the Configuration Administrators Group. 5.2. Setting Access Permissions on Console Elements T here are five elements defined in the Console for access control rules: User and Groups Tab (viewing) User and Groups Tab (editing) Topology Tab (editing) Custom View T ab (editing) 4 4

Chapter 5. Setting Access Controls Server Security (editing) By default, each of these Console elements has five inherited ACIs: Enabling anonymous access Default anonymous access Configuration administrator's modifications Enabling group expansions SIE (host) group permissions These inherited ACIs cannot be edited, but new ACIs can be added for each Console element in addition to these defaults. Additional ACIs can limit anonymous access, for example, and change other permissions within the Red Hat Management Console, which, in turn, affects access to the Directory Server and Admin Server instances. To create new ACIs: 1. In the top menu, select Edit and then Preferences. 2. Select the Console element from the list, and click the Perm issions button. 3. In the ACI Manager window, click the New button. 4 5

Red Hat Directory Server 8.2 Using the Directory Server Console The five inherited ACIs are not displayed by default; to see them listed, click the Show inherited ACIs checkbox. 4. Configure the ACI by setting, at a minimum, the users to which it applies and the rights which are allowed. T o configure the ACI in the wizard (visually): a. Enter a name for the ACI in the ACI Name field. b. In the Users/Groups tab, click the Add button to open the search window. Search for and add the users to which apply the ACI. Select the users from the results list and click the Add button to include them. Click OK to save the list. c. In the Rights tab, specify which operations are permitted as part of this ACI. 4 6

Chapter 5. Setting Access Controls T o hide a Console element entirely from the selected users, groups, and hosts, click Check None to block any access. d. Optionally, set the target entry in the subtree, hostnames, or times of day where the ACI is in effect. More complex ACIs may not be able to be edited visually; in those cases, click the Edit Manually button, and configure the ACI entry directly. Use the Check syntax button to validate the ACI. 5. Click OK to save the ACI. 6. Restart Red Hat Management Console to apply the new ACI. 4 7

Red Hat Directory Server 8.2 Using the Directory Server Console Chapter 6. Using SSL/TLS with Red Hat Management Console Secure Sockets Layer (SSL) and T ransport Layer Security (T LS) are protocols which set up secure, encrypted communication between an SSL/TLS server and a client which connects to it. In Red Hat Directory Server, the Directory Server can be configured to communicate with LDAP over SSL, LDAPS. Likewise, the Admin Server can be configured to run over secure HTTP (HTTPS) rather than standard HTTP. Both the Directory Server and Admin Server are SSL servers. The Red Hat Management Console can be configured as an SSL client, which connects to the servers over SSL, and can be configured so that all Console operations are over SSL. 6.1. Overview of SSL/TLS T ransport Layer Security (T LS) and its predecessor Secure Sockets Layer (SSL) set rules that govern authentication (identity verification) between two entities and set up encrypted communication between servers and clients. For Red Hat Directory Server and Admin Server, T LS/SSL means that directory operations run over LDAPS (secure LDAP) and HTTPS (secure HTTP), respectively. Secure communication depends on the ability to hide and uncover information by disguising it with complex codes. Both the TLS server (the application which is being contacted) and the TLS client (the user or application which contacts the server) have to be able to understand the encoded information. Cryptography encrypts and protects information using recognized algorithms and ciphers, or mathematical equations which can scramble information; sets of related algorithms and ciphers are called cipher suites. The equations are also used to unscramble the information as long as a server has the right information to decode the data; the decoder information is called a key. Keys come in two halves; the private key is held by only one entity and encrypts (wraps) the information. The public key matches the private key and can be used to decrypt information wrapped by the private key. A certificate contains a public key which can be used to decrypt information, algorithms used for a digital signature (similar to a fingerprint), and identity information for the server or user. In server authentication (the T LS method allowed by the Red Hat Management Console), the server presents a certificate (containing a public key, algorithms used for the digital signature, and server identity information) to the client. T he client may be validated (authenticated) to the server through simple authentication, such as a username and password, or no authentication. With client authentication, both the server and client present certificates proving their identity. T LS/SSL communication has two major parts: the SSL/TLS handshake (where the server and client authenticate their identities) and secure communication (the encrypted session between the client and server). Authentication and encryption are performed using secure materials, called certificates and keys. The TLS handshake is when the server and client negotiate the parameters of the connection and generate the keys which will be used for secure communication: 1. The TLS client initiates contact with the TLS server. The client sends information about its TLS configuration to help the server negotiate the connection parameters: The TLS/SSL version the client is using (all TLS/SSL versions are backward compatible) A list of acceptable cipher suites A list of acceptable compression methods A randomly-generated number 2. T he server responds to the client: The chosen TLS/SSL version (this is the highest version in common with both the server and [1] 4 8

Chapter 6. Using SSL/TLS with Red Hat Management Console client) The selected cipher suite (the most secure version the server and client have in common) T he selected compression method (the most secure version the server and client have in common) A randomly-generated number of its own 3. The server then sends its certificate. The server and client will use the public key in the certificate to decrypt messages once the handshake ends and the secure session is established. 4. T he client verifies the identity of the server using the information in the server certificate: T he validity period (the expiration date of the server certificate) Whether the client possesses a copy of the CA certificate for the authority which issued the server's certificate (whether the certificate was issued by a trusted CA) Verifying the digital signature of the issuing CA for the server certificate Whether the domain name for the server in the certificate subject name matches the actual domain name of the server 5. Depending on the cipher suite being used, the client sends the server key material to use to generate session keys to encrypt data. This key material can be public key or a master key secret which is used to derive the encryption keys. 6. Using the key material sent by the client, the randomly-generated numbers from the client and server, and the selected cipher, the server and client independently derive the same encryption keys. 7. T he client sends a notification to the server that all subsequent messages from it will be encrypted. It also sends a hash and a message authentication key which are wrapped in the client's encryption key. 8. T he server successfully decrypts the client's message using its derived encryption keys. 9. The server then sends a hash and a MAC key to the client, wrapped in the server's encryption key. 10. T he client successfully decrypts the server's message using its derived encryption keys. 11. The TLS handshake closes, and the secure channel opens between the server and the client. The Red Hat Management Console can be configured to be encrypted by SSL/TLS by configuring the Red Hat Directory Server to enable SSL in the Console. 6.2. Installing Certificates Used by the Server Before the Directory Server can be set to run in TLS/SSL, server and CA certificates must be properly installed in the servers. Obtaining and installing certificates consists of the following steps: 1. Generate a certificate request. 2. Send the certificate request to a certificate authority. 3. Install the server certificate. 4. Set the Directory Server to trust the certificate authority. T he Directory Server Console has two wizards to make it easier to request and install certificates. 6.2.1. Generating a Certificate Request 1. In the Directory Server Console, select the T asks tab, and click Manage Certificates. 4 9

Red Hat Directory Server 8.2 Using the Directory Server Console 2. Select the Server Certs tab, and click the Request button. T his opens the Certificate Request Wizard. 3. Click Next. 4. Enter the Requester Inform ation in the blank text fields, then click Next. Server Name. Enter the fully qualified hostname of the Directory Server as it is used in DNS and reverse DNS lookups; for example, dir.example.com. The server name is critical for client-side validation to work, which prevents man-in-the-middle attacks. IMPORTANT This must be a valid hostname that can be resolved correctly by all server clients, or TLS/SSL will not work. Organization. Enter the legal name of the company or institution. Most CAs require this information to be verified with legal documents such as a copy of a business license. Organizational Unit. Optional. Enter a descriptive name for the organization within the company. Locality. Optional. Enter the company's city name. State or Province. Enter the full name of the company's state or province (no abbreviations). Country. Select the two-character abbreviation for the country's name (ISO format). T he country code for the United States is US. 5. Enter the password that will be used to protect the private key, and click Next. 50

Chapter 6. Using SSL/TLS with Red Hat Management Console The Next button is grayed out until a password is supplied. 6. The Request Submission dialog box provides two ways to submit a request: directly to the CA (if there is one internally) or manually. T o submit the request manually, select Copy to Clipboard or Save to File to save the certificate request which will be submitted to the CA. 7. Click Done to dismiss the Certificate Request Wizard. After generating the certificate request, send it to the CA, and wait for the CA to issue the server certificate. When the CA issues the certificate, save it to a text file that is local to the Red Hat Directory Server. The certificate must be available to install in the Directory Server. This file can also be used as a backup to re-install the certificate in the server in case the certificate is ever lost. 6.2.2. Installing the Certificate 1. In the Directory Server Console, select the T asks tab, and click Manage Certificates. 51

Red Hat Directory Server 8.2 Using the Directory Server Console 2. Select the Server Certs tab, and click Install. 3. Give the certificate location or paste the certificate text in the text box, then click Next. In this file. Enter the absolute path to the certificate in this field. In the following encoded text block. Copy the text from the CA's email or from the created text file, and paste it in this field. 4. Check that the certificate information displayed is correct, and click Next. 5. Give a name to the certificate, and click Next. 52

Chapter 6. Using SSL/TLS with Red Hat Management Console 6. Provide the password that protects the private key. This password is the same as the one provided in step 5 in Section 6.2.1, Generating a Certificate Request. After installing the server certificate, it is listed in the Certificates tab. If necessary, configure the Directory Server to trust the CA which issued the server's certificate. 6.2.3. Trusting a Certificate Authority or Adding a Certificate Chain Configuring the Directory Server to trust the certificate authority consists of obtaining the CA's certificate (a process which varies, depending on the CA) and installing it in the server's certificate database. Instead of a single CA certificate, some sites have a certificate chain, which is several CA certificates in a single certificate blob. Certificate chains are treated the same as CA certificates. 1. In the Directory Server Console, select the T asks tab, and click Manage Certificates. 2. Go to the CA Certs tab, and click Install. 3. If the CA's certificate is saved to a file, enter the path in the field provided. Alternatively, copy and 53

Red Hat Directory Server 8.2 Using the Directory Server Console paste the certificate, including the headers, into the text box. Click Next. 4. Check that the certificate information that opens is correct, and click Next. 5. Name the certificate, and click Next. 6. Select the purpose of trusting this certificate authority; it is possible to select both options: Accepting connections from clients (Client Authentication). T he server checks that the client's certificate has been issued by a trusted certificate authority. Accepting connections to other servers (Server Authentication). T his server checks that the directory to which it is making a connection (for replication updates, for example) has a certificate that has been issued by a trusted certificate authority. 7. Click Done. 54

Chapter 6. Using SSL/TLS with Red Hat Management Console After installing the CA certificate, it is listed in the CA Certificates tab. NOTE If a CA certificate is incorrectly generated, it is listed in the Server Certificates tab in the Console rather than the CA Certificates tab. T he certificate still works as a CA certificate, even though it is listed in the wrong tab. Still, request certificates from a real certificate authority to minimize the risk of using an incorrectly generated certificate and breaking SSL/T LS in the Admin Server. 6.3. Managing Certificates Used by the Directory Server Console The certificates and keys used by the server are stored in NSS security databases in the /etc/dirsrv/slapd-instance_name directory. T he Directory Server Console itself also uses certificates and keys for SSL/T LS connections; these certificates are stored in a separate database in a separate location, $HOME/redhat-idm-console. If the Directory Server Console is used to connect to multiple instances of Directory Server over SSL, then it is necessary to trust every CA which issued the certificates for every Directory Server instance. When SSL/T LS is enabled for the Directory Server Console (Section 6.4, Enabling T LS/SSL ), the Directory Server Console must have a copy of the issuing CA certificate for it to trust the server's SSL client certificates. Otherwise, the Console will return errors about not trusting the CA which issued the certificate. NOTE Only the CA certificates for the CA which issued the server's SSL certificate is required. The Directory Server Console does not require its own SSL client certificate. T he Console's security databases are managed directly using certutil. T he certutil tool is described in more detail in the NSS tool manpages and in Table 6.1, certutil Options. T o list the certificates in the security database: certutil -d $HOME/.redhat-idm-console -L To add a CA certificate to the database: certutil -d $HOME/.redhat-idm-console -A -t CT,, -a -i /path/to/cacert.asc 55

Red Hat Directory Server 8.2 Using the Directory Server Console T able 6.1. certutil Options Options Description -x Creates a self-signed CA certificate. -S Creates a server or client certificate. -R Generates a certificate request. -N Creates new security databases. -L Lists all of the certificates in the database. -A Adds a certificate to the certificate database. -n Gives the name of the certificate. -d Certificate database directory; this is the directory for the subsystem instance. -m T he serial number for the certificate. -k The key type to use; the only option is rsa. -g The key size. The recommended size for RSA keys is 2048. -s T he subject name of the certificate. -t T he trust arguments for the certificate, meaning the purposes for which the certificate is allowed to be used. -v T he validity period, in months. numbers 1-8 T hese set the available certificate extensions. Only eight can be specified through the certutil tool: Key Usage: 1 Basic Constraints: 2 Certificate Authority Key ID: 3 CRL Distribution Point: 4 Netscape Certificate T ype: 5 Extended Key Usage: 6 Email Subject Alternative Name: 7 DNS Subject Alternative Name: 8 -a Outputs the certificate request to an ASCII file instead of binary. -o The output file to which to save the certificate request. -i An input file containing a certificate. -f The path to a password file for the security databases password. 6.4. Enabling TLS/SSL In order to run the Red Hat Management Console over TLS/SSL, the Directory Server must also be configured to run in TLS/SSL. Optionally, the Admin Server can also be configured to run in SSL. Setting up an SSL/T LS environment has three basic steps (performed in order): 56

Chapter 6. Using SSL/TLS with Red Hat Management Console 1. Enable SSL/T LS for the Directory Server. 2. Enable SSL/T LS for the Directory Server Console. 3. Enable SSL/T LS for the Admin Server. WARNING The Directory Server must already be configured to run in SSL and the server must already have been restarted before the Directory Server Console can be configured to use SSL. Configuring SSL/T LS for the server requires a server restart to load the new configuration, including the new secure port assignment. However, enabling SSL/T LS for the Console takes effect immediately. T herefore, if the Console has SSL/T LS enabled before the server is running in SSL/T LS, then the Console loses the connection to the server and cannot reconnect. To disable SSL/TLS in the Directory Server Console, use ldapmodify to edit the nsserversecurity attribute: nsserversecurity: off T his configures server authentication for the Console and the Red Hat Directory Server and Admin Server. 1. Obtain server certificates and CA certs, and install them on the Directory Server. T his is described in Section 6.2, Installing Certificates Used by the Server. 2. Obtain and install server and CA certificates on the Admin Server. This is a similar process as for the Directory Server. NOTE It is important that the Admin Server and Directory Server have a CA certificate in common so that they can trust the other's certificates. 3. If the default port number of 636 is not used, change the secure port setting. In the Configuration tab, open the Settings area and set the new number. 4. In the Configuration tab of the Directory Server Console, highlight the server name at the top of the table, and select the Encryption tab. 5. Select the Enable SSL checkbox. 57

Red Hat Directory Server 8.2 Using the Directory Server Console 6. Check the Use this Cipher Fam ily checkbox. 7. Select the certificate to use from the drop-down menu. 8. Click Cipher Settings. By default, all ciphers are selected. 9. Set the preferences for client authentication. Do not allow client authentication. With this option, the server ignores the client's certificate. This does not mean that the bind will fail. Allow client authentication. T his is the default setting. With this option, authentication is performed on the client's request. Require client authentication. With this option, the server requests authentication from the client. With this option, all clients must use a certificate to authenticate to the server, and no simple authentication (username/password) is allowed. 58

Chapter 6. Using SSL/TLS with Red Hat Management Console NOTE T o use client certificate-based authentication with replication, configure the consumer server either to allow or to require client authentication. 10. T o verify the authenticity of requests, select the Check hostnam e against nam e in certificate for outbound SSL connections option. T he server does this verification by matching the hostname against the value assigned to the common name (cn) attribute of the subject name in the being presented for authentication. T he hostname that is checked in the certificate is the same one set in the server name field in the request in Section 6.2.1, Generating a Certificate Request. By default, this feature is disabled. If it's enabled and if the hostname does not match the cn attribute of the certificate, appropriate error and audit messages are logged. Red Hat recommends enabling this option to protect Directory Server's outbound T LS/SSL connections against a manin-the-middle (MIT M) attack. 11. Click Save. 12. Restart the Directory Server. T he Directory Server must be restarted from the command line. service dirsrv restart instance When the server restarts, it prompts for the PIN or password to unlock the key database. This is the same password used when the server certificate and key were imported into the database. To restart the Directory Server without the password prompt, create a PIN file or use a hardware crypto device. See Section 6.5.1, Creating a Password File for the Directory Server for information on how to create a PIN file. 13. Require SSL/T LS to connect to the Directory Server Console. WARNING The Directory Server must already be configured to run in SSL and the server must already have been restarted before the Directory Server Console can be configured to use SSL. Configuring SSL/TLS for the server requires a server restart to load the new configuration, including the new secure port assignment. However, enabling SSL/T LS for the Console takes effect immediately. T herefore, if the Console has SSL/T LS enabled before the server is running in SSL/TLS, then the Console loses the connection to the server and cannot reconnect. To disable SSL/TLS in the Directory Server Console, use ldapmodify to edit the nsserversecurity attribute: nsserversecurity: off a. Reopen the Directory Server Console. b. In the Configuration tab, select the server, and open the Encryption tab. c. Check the Use SSL in the Console box. 59

Red Hat Directory Server 8.2 Using the Directory Server Console 14. In the Admin Server Console, select the Configuration tab. Select the Encryption tab, check the Enable SSL checkbox, and fill in the appropriate certificate information. After TLS/SSL is enabled, then the Admin Server can only be connected to using HTTPS. All of the previous HTTP (standard) URLs for connecting to the Admin Server and its services no longer work. This is true whether connecting to the Admin Server using the Console or using a web browser. 15. In the Configuration DS tab, change the port number to the new Directory Server secure port information, even if the default port of 636 is used. Check the Secure Connection checkbox. 16. In the User DS tab, select the Set User Directory radio button, and fill in the Directory Server secure port information, the LDAP URL, and the user database information. Check the Secure Connection checkbox. 60