⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 intro.sdf

📁 OpenLdap是LDAP的开源项目
💻 SDF
📖 第 1 页 / 共 2 页
字号:
# $OpenLDAP: pkg/openldap-guide/admin/intro.sdf,v 1.40.2.4 2007/01/02 21:43:43 kurt Exp $# Copyright 1999-2007 The OpenLDAP Foundation, All Rights Reserved.# COPYING RESTRICTIONS APPLY, see COPYRIGHT.H1: Introduction to OpenLDAP Directory ServicesThis document describes how to build, configure, and operate OpenLDAPsoftware to provide directory services.  This includes details onhow to configure and run the stand-alone {{TERM:LDAP}} daemon,{{slapd}}(8) and the stand-alone LDAP update replication daemon,{{slurpd}}(8). It is intended for newcomers and experiencedadministrators alike.  This section provides a basic introductionto directory services and, in particular, the directory servicesprovided by {{slapd}}(8).H2: What is a directory service?A directory is a specialized database optimized for reading, browsingand searching.  Directories tend to contain descriptive, attribute-basedinformation and support sophisticated filtering capabilities.Directories generally do not support complicated transaction orroll-back schemes found in database management systems designedfor handling high-volume complex updates.  Directory updates aretypically simple all-or-nothing changes, if they are allowed atall.  Directories are tuned to give quick response to high-volumelookup or search operations. They may have the ability to replicateinformation widely in order to increase availability and reliability,while reducing response time.  When directory information isreplicated, temporary inconsistencies between the replicas may beokay, as long as they get in sync eventually.There are many different ways to provide a directory service.Different methods allow different kinds of information to be storedin the directory, place different requirements on how that informationcan be referenced, queried and updated, how it is protected fromunauthorized access, etc.  Some directory services are {{local}},providing service to a restricted context (e.g., the finger serviceon a single machine). Other services are global, providing serviceto a much broader context (e.g., the entire Internet).  Globalservices are usually {{distributed}}, meaning that the data theycontain is spread across many machines, all of which cooperate toprovide the directory service. Typically a global service definesa uniform {{namespace}} which gives the same view of the data nomatter where you are in relation to the data itself.  The Internet{{TERM[expand]DNS}} (DNS) is an example of a globally distributeddirectory service.H2: What is LDAP?{{TERM:LDAP}} stands for {{TERM[expand]LDAP}}.  As the name suggests,it is a lightweight protocol for accessing directory services,specifically {{TERM:X.500}}-based directory services.  LDAP runsover {{TERM:TCP}}/{{TERM:IP}} or other connection oriented transferservices.  The nitty-gritty details of LDAP are defined in{{REF:RFC2251}} "The Lightweight Directory Access Protocol (v3)"and other documents comprising the technical specification{{REF:RFC3377}}.  This section gives an overview of LDAP from auser's perspective.{{What kind of information can be stored in the directory?}} TheLDAP information model is based on {{entries}}. An entry is acollection of attributes that has a globally-unique {{TERM[expand]DN}}(DN).  The DN is used to refer to the entry unambiguously. Each ofthe entry's attributes has a {{type}} and one or more {{values}}.The types are typically mnemonic strings, like "{{EX:cn}}" forcommon name, or "{{EX:mail}}" for email address. The syntax ofvalues depend on the attribute type.  For example, a {{EX:cn}}attribute might contain the value {{EX:Babs Jensen}}.  A {{EX:mail}}attribute might contain the value "{{EX:babs@example.com}}". A{{EX:jpegPhoto}} attribute would contain a photograph in the JPEG(binary) format.{{How is the information arranged?}} In LDAP, directory entriesare arranged in a hierarchical tree-like structure.  Traditionally,this structure reflected the geographic and/or organizationalboundaries.  Entries representing countries appear at the top ofthe tree. Below them are entries representing states and nationalorganizations. Below them might be entries representing organizationalunits, people, printers, documents, or just about anything elseyou can think of.  Figure 1.1 shows an example LDAP directory treeusing traditional naming.!import "intro_tree.gif"; align="center"; \	title="LDAP directory tree (traditional naming)"FT[align="Center"] Figure 1.1: LDAP directory tree (traditional naming)The tree may also be arranged based upon Internet domain names.This naming approach is becoming increasing popular as it allowsfor directory services to be located using the {{DNS}}.Figure 1.2 shows an example LDAP directory tree using domain-basednaming.!import "intro_dctree.gif"; align="center"; \	title="LDAP directory tree (Internet naming)"FT[align="Center"] Figure 1.2: LDAP directory tree (Internet naming)In addition, LDAP allows you to control which attributes are requiredand allowed in an entry through the use of a special attributecalled {{EX:objectClass}}.  The values of the {{EX:objectClass}}attribute determine the {{schema}} rules the entry must obey.{{How is the information referenced?}} An entry is referenced byits distinguished name, which is constructed by taking the name ofthe entry itself (called the {{TERM[expand]RDN}} or RDN) andconcatenating the names of its ancestor entries. For example, theentry for Barbara Jensen in the Internet naming example above hasan RDN of {{EX:uid=babs}} and a DN of{{EX:uid=babs,ou=People,dc=example,dc=com}}. The full DN formatis described in {{REF:RFC2253}}, "Lightweight Directory AccessProtocol (v3):  UTF-8 String Representation of Distinguished Names."{{How is the information accessed?}} LDAP defines operations forinterrogating and updating the directory.  Operations are providedfor adding and deleting an entry from the directory, changing anexisting entry, and changing the name of an entry. Most of thetime, though, LDAP is used to search for information in the directory.The LDAP search operation allows some portion of the directory tobe searched for entries that match some criteria specified by asearch filter. Information can be requested from each entry thatmatches the criteria.For example, you might want to search the entire directory subtreeat and below {{EX:dc=example,dc=com}} for people with the name{{EX:Barbara Jensen}}, retrieving the email address of each entryfound. LDAP lets you do this easily.  Or you might want to searchthe entries directly below the {{EX:st=California,c=US}} entry fororganizations with the string {{EX:Acme}} in their name, and thathave a fax number. LDAP lets you do this too. The next sectiondescribes in more detail what you can do with LDAP and how it mightbe useful to you.{{How is the information protected from unauthorized access?}} Somedirectory services provide no protection, allowing anyone to seethe information. LDAP provides a mechanism for a client to authenticate,or prove its identity to a directory server, paving the way forrich access control to protect the information the server contains.LDAP also supports data security (integrity and confidentiality)services.H2: How does LDAP work?LDAP directory service is based on a {{client-server}} model. Oneor more LDAP servers contain the data making up the directoryinformation tree (DIT).  The client connects to servers andasks it a question.  The server responds with an answer and/or with a pointer to where the client can get additional information(typically, another LDAP server).  No matter which LDAP server aclient connects to, it sees the same view of the directory; a namepresented to one LDAP server references the same entry it would atanother LDAP server. This is an important feature of a globaldirectory service, like LDAP.H2: What about X.500?Technically, {{TERM:LDAP}} is a directory access protocol to an{{TERM:X.500}} directory service, the {{TERM:OSI}} directory service.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -