📄 install.sdf
字号:
# $OpenLDAP: pkg/openldap-guide/admin/install.sdf,v 1.34.2.5 2007/01/02 21:43:43 kurt Exp $# Copyright 1999-2007 The OpenLDAP Foundation, All Rights Reserved.# COPYING RESTRICTIONS APPLY, see COPYRIGHT.H1: Building and Installing OpenLDAP SoftwareThis chapter details how to build and install the {{ORG:OpenLDAP}}Software package including {{slapd}}(8), the stand-alone LDAP daemonand {{slurpd}}(8), the stand-alone update replication daemon.Building and installing OpenLDAP Software requires several steps:installing prerequisite software, configuring OpenLDAP Softwareitself, making, and finally installing. The following sectionsdescribe this process in detail.H2: Obtaining and Extracting the SoftwareYou can obtain OpenLDAP Software from the project's downloadpage at {{URL: http://www.openldap.org/software/download/}} ordirectly from the project's {{TERM:FTP}} service at{{URL: ftp://ftp.openldap.org/pub/OpenLDAP/}}.The project makes available two series of packages for {{generaluse}}. The project makes {{releases}} as new features and bug fixescome available. Though the project takes steps to improve stablityof these releases, it is common for problems to arise only after{{release}}. The {{stable}} release is the latest {{release}} whichhas demonstrated stability through general use.Users of OpenLDAP Software can choose, depending on their desirefor the {{latest features}} versus {{demonstrated stability}}, themost appropriate series to install.After downloading OpenLDAP Software, you need to extract thedistribution from the compressed archive file and change your workingdirectory to the top directory of the distribution:.{{EX:gunzip -c openldap-VERSION.tgz | tar xf -}}.{{EX:cd openldap-VERSION}}You'll have to replace {{EX:VERSION}} with the version name ofthe release.You should now review the {{F:COPYRIGHT}}, {{F:LICENSE}}, {{F:README}}and {{F:INSTALL}} documents provided with the distribution. The{{F:COPYRIGHT}} and {{F:LICENSE}} provide information on acceptableuse, copying, and limitation of warranty of OpenLDAP Software. The{{F:README}} and {{F:INSTALL}} documents provide detailed informationon prerequisite software and installation procedures.H2: Prerequisite softwareOpenLDAP Software relies upon a number of software packages distributedby third parties. Depending on the features you intend to use, youmay have to download and install a number of additional softwarepackages. This section details commonly needed third party softwarepackages you might have to install. However, for an up-to-dateprerequisite information, the {{F:README}} document should beconsulted. Note that some of these third party packages may dependon additional software packages. Install each package per theinstallation instructions provided with it.H3: {{TERM[expand]TLS}}OpenLDAP clients and servers require installation of {{PRD:OpenSSL}}{{TERM:TLS}} libraries to provide {{TERM[expand]TLS}} services. Thoughsome operating systems may provide these libraries as part of thebase system or as an optional software component, OpenSSL oftenrequires separate installation.OpenSSL is available from {{URL: http://www.openssl.org/}}.OpenLDAP Software will not be fully LDAPv3 compliant unless OpenLDAP's{{EX:configure}} detects a usable OpenSSL installation.H3: Kerberos Authentication ServicesOpenLDAP clients and servers support Kerberos-based authenticationservices.In particular, OpenLDAP supports the {{TERM:SASL}}/{{TERM:GSSAPI}}authentication mechanism using either {{PRD:Heimdal}} or{{PRD:MIT Kerberos}} V packages.If you desire to use Kerberos-based SASL/GSSAPI authentication,you should install either Heimdal or MIT Kerberos V.Heimdal Kerberos is available from {{URL:http://www.pdc.kth.se/heimdal/}}.MIT Kerberos is available from {{URL:http://web.mit.edu/kerberos/www/}}.Use of strong authentication services, such as those provided byKerberos, is highly recommended.H3: {{TERM[expand]SASL}}OpenLDAP clients and servers require installation of {{PRD:Cyrus}}'s{{PRD:SASL}} libraries to provide {{TERM[expand]SASL}} services. Thoughsome operating systems may provide this library as part of thebase system or as an optional software component, Cyrus SASLoften requires separate installation.Cyrus SASL is available from{{URL:http://asg.web.cmu.edu/sasl/sasl-library.html}}.Cyrus SASL will make use of OpenSSL and Kerberos/GSSAPI librariesif preinstalled.OpenLDAP Software will not be fully LDAPv3 compliant unless OpenLDAP'sconfigure detects a usable Cyrus SASL installation.H3: Database SoftwareOpenLDAP's {{slapd}}(8) {{TERM:BDB}} and {{TERM:HDB}} primary database backendsrequire {{ORG[expand]Sleepycat}} {{PRD:Berkeley DB}}.If not available at configure time, you will not be able build{{slapd}}(8) with these primary database backends.Your operating system may provide a supported version of{{PRD:Berkeley DB}} in the base system or as an optionalsoftware component. If not, you'll have to obtain andinstall it yourself.{{PRD:Berkeley DB}} is available from {{ORG[expand]Sleepycat}}'sdownload page {{URL: http://www.sleepycat.com/download/}}. Thereare several versions available. Generally, the most recent release(with published patches) is recommended. This package is requiredif you wish to use the {{TERM:BDB}} or {{TERM:HDB}} database backends.OpenLDAP's {{slapd}}(8) LDBM backend supports a variety of database managers including {{PRD:Berkeley DB}} and {{PRD:GDBM}}.{{PRD:GDBM}} is available from {{ORG:FSF}}'s download site {{URL:ftp://ftp.gnu.org/pub/gnu/gdbm/}}.H3: ThreadsOpenLDAP is designed to take advantage of threads. OpenLDAPsupports POSIX {{pthreads}}, Mach {{CThreads}}, and a number ofother varieties. {{EX:configure}} will complain if it cannotfind a suitable thread subsystem. If this occurs, pleaseconsult the {{F:Software|Installation|Platform Hints}} sectionof the OpenLDAP FAQ {{URL: http://www.openldap.org/faq/}}.H3: TCP Wrappers{{slapd}}(8) supports TCP Wrappers (IP level access control filters)if preinstalled. Use of TCP Wrappers or other IP-level accessfilters (such as those provided by an IP-level firewall) is recommendedfor servers containing non-public information.H2: Running configureNow you should probably run the {{EX:configure}} script with the{{EX:--help}} option.This will give you a list of options that you can change when buildingOpenLDAP. Many of the features of OpenLDAP can be enabled or disabledusing this method.!if 0Please see the appendix for a more detailed list of configure options,and their usage.!endif> ./configure --helpThe {{EX:configure}} script will also look at various environment variablesfor certain settings. These environment variables include:!block table; align=Center; coltags="EX,N"; title="Table 4.1: Environment Variables"Variable DescriptionCC Specify alternative C CompilerCFLAGS Specify additional compiler flagsCPPFLAGS Specify C Preprocessor flagsLDFLAGS Specify linker flagsLIBS Specify additional libraries!endblockNow run the configure script with any desired configuration options orenvironment variables.> [[env] settings] ./configure [options]As an example, let's assume that we want to install OpenLDAP withBDB backend and TCP Wrappers support. By default, BDBis enabled and TCP Wrappers is not. So, we just need to specify{{EX:--with-wrappers}} to include TCP Wrappers support:> ./configure --with-wrappersHowever, this will fail to locate dependent software notinstalled in system directories. For example, if TCP Wrappersheaders and libraries are installed in {{F:/usr/local/include}}and {{F:/usr/local/lib}} respectively, the {{EX:configure}}script should be called as follows:> env CPPFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" \> ./configure --with-wrappersNote: Some shells, such as those derived from the Bourne {{sh}}(1),do not require use of the {{env}}(1) command. In some cases, environmentalvariables have to be specified using alternative syntaxes.The {{EX:configure}} script will normally auto-detect appropriatesettings. If you have problems at this stage, consult any platformspecific hints and check your {{EX:configure}} options, if any.H2: Building the SoftwareOnce you have run the {{EX:configure}} script the last line of outputshould be:> Please "make depend" to build dependenciesIf the last line of output does not match, {{EX:configure}} has failed,and you will need to review its output to determine what went wrong.You should not proceed until {{EX:configure}} completes successfully.To build dependencies, run:> make dependNow build the software, this step will actually compile OpenLDAP.> makeYou should examine the output of this command carefully to make sureeverything is built correctly. Note that this command builds the LDAPlibraries and associated clients as well as {{slapd}}(8) and {{slurpd}}(8).H2: Testing the SoftwareOnce the software has been properly configured and successfullymade, you should run the test suite to verify the build.> make testTests which apply to your configuration will run and they should pass.Some tests, such as the replication test, may be skipped if not supportedby your configuration.H2: Installing the SoftwareOnce you have successfully tested the software, you are ready toinstall it. You will need to have write permission to the installationdirectories you specified when you ran configure. By defaultOpenLDAP Software is installed in {{F:/usr/local}}. If you changedthis setting with the {{EX:--prefix}} configure option, it will beinstalled in the location you provided.Typically, the installation requires {{super-user}} privileges.From the top level OpenLDAP source directory, type:> su root -c 'make install'and enter the appropriate password when requested.You should examine the output of this command carefully to make sureeverything is installed correctly. You will find the configuration filesfor {{slapd}}(8) in {{F:/usr/local/etc/openldap}} by default. See thechapter {{SECT:Configuring slapd}} for additional information.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -