This topic provides the steps required to install the OpenLDAP
packages when you plan to use OpenLDAP as your LDAP architecture.
Steps
- Determine the Red Hat Linux™ release that is installed. The release
number is stored in the /etc/redhat-release file. If you are running SUSE Linux,
then the release number is in the /etc/SUSE-release file.
- Determine the version of OpenLDAP that is currently installed by
entering the rpm -qa | grep openldap command at the Linux prompt:
# rpm -qa |grep openldap
openldap-2.0.27-8
openldap-clients-2.0.27-8
openldap-servers-2.0.27-8
If a default Red Hat Linux installation
was used, there is at least one OpenLDAP Red Hat Package Manager (RPM) installed.
If you have the correct version installed, continue with Configure the OpenLDAP client. If no OpenLDAP RPMs are installed or an RPM is not a
valid version, you need to install the correct version.The required RPMs
for an LDAP server on Red Hat Linux are openldap- 2.0.xx-F, openldap-client-2.0.xx-F,
and openldap-server-2.0.xx.F, where 2.0.xx-F corresponds to
Table 1.
Table 1. OpenLDAP
versionsRed Hat Linux release |
OpenLDAP build version |
AS2.1 |
2.0.21 |
7.3 |
2.0.23 |
8.0 |
2.0.25 |
9.0 |
2.0.275 |
- The LDAP RPMs can either be found on the Red
Hat CD or downloaded from one of the following RPM download sources:
- www.rpmfind.net, search on openldap and select the RPM based on the distribution.
- www.redhat.com, select Download, and then search on openldap. Other
distributions might not be listed here.
Tip: You only need to download RPMs that are not installed.
For example, if you have openldap-2.0.xx and openldap-client-2.0.xx installed
but not openldap-server-2.0.xx, then you only need to download the openldap-server-2.0.xx
package.
- After downloading the RPMs to the Linux server, change to the download directory
and start the installation using the rpm command.
# rpm -ivh openldap*
The RPMs are installed, with a hash-mark progress bar. If the RPMs are
not installed due to any missing prerequisite RPMs, find the RPMs using step 3. If,
however, the RPMs do not install because of missing prerequisite files or
mismatched file versions, the RPM version selected is not appropriate for
the Red Hat Linux installation.
Investigate the specific files in conflict, and confirm which OpenLDAP RPM
version matches those files.
- Verify that the OpenLDAP RPMs have been installed with the rpm
-qa | grep openldap command at the Linux prompt.
# rpm -qa | grep openldap
openldap-2.0.27-8
openldap-clients-2.0.27-8
openldap-servers-2.0.27-8
Result
The three RPMs are installed: the base, the clients, and the servers.
Postrequisites
Continue with Configure the OpenLDAP client.