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

📄 referrals.sdf

📁 OpenLdap是LDAP的开源项目
💻 SDF
字号:
# $OpenLDAP: pkg/openldap-guide/admin/referrals.sdf,v 1.24.2.2 2007/01/02 21:43:43 kurt Exp $# Copyright 1999-2007 The OpenLDAP Foundation, All Rights Reserved.# COPYING RESTRICTIONS APPLY, see COPYRIGHT.H1: Constructing a Distributed Directory ServiceFor many sites, running one or more {{slapd}}(8) that hold anentire subtree of data is sufficient. But often it is desirableto have one {{slapd}} refer to other directory services for acertain part of the tree (which may or may not be running {{slapd}}).!if 0{{slapd}} supports {{subordinate}}, {{immediate superior}},and {{superior}} knowledge information.!else{{slapd}} supports {{subordinate}} and {{superior}} knowledge information.Subordinate knowledge information is held in {{EX:referral}}objects ({{REF:RFC3296}}).!endifH2: Subordinate Knowledge InformationSubordinate knowledge information may be provided to delegatea subtree.Subordinate knowledge information is maintained in the directoryas a special {{referral}} object at the delegate point.The referral object acts as a delegation point, gluing two servicestogether.This mechanism allows for hierarchical directory services to beconstructed.A referral object has a structural object class of{{EX:referral}} and has the same {{TERM[expand]DN}} as thedelegated subtree.  Generally, the referral object will alsoprovide the auxiliary object class {{EX:extensibleObject}}.This allows the entry to contain appropriate {{TERM[expand]RDN}}values.  This is best demonstrated by example.If the server {{EX:a.example.net}} holds {{EX:dc=example,dc=net}}and wished to delegate the subtree {{EX:ou=subtree,dc=example,dc=net}}to another server {{EX:b.example.net}}, the following named referralobject would be added to {{EX:a.example.net}}:>	dn: dc=subtree,dc=example,dc=net>	objectClass: referral>	objectClass: extensibleObject>	dc: subtree>	ref: ldap://b.example.net/dc=subtree,dc=example,dc=netThe server uses this information to generate referrals andsearch continuations to subordinate servers.For those familiar with X.500, a {{named referral}} object issimilar to an X.500 knowledge reference held in a {{subr}}{{TERM:DSE}}.!if 0H2: Immediate Superior Knowledge InformationImmediate superior knowledge information may be provided in theentry at the root of a delegated subtree.  The knowledge informationis contained with {{EX:ref}} operational attribute.Extending the example above, a {{ref}} attribute can be addedto the entry {{EX:dc=subtree,dc=example,dc=net}} in server B indicatingthat A holds the immediate superior naming context.>	dn: dc=subtree,dc=example,dc=net>	changetype: modify>	add: ref>	ref: ldap://a.example.net/The server uses this information to generate referrals tomanagement operations.For those familiar with X.500, this use of the {{EX:ref}} attributeis similar to an X.500 knowledge reference held in a{{immSupr}} {{TERM:DSE}}.!endifH2: Superior Knowledge InformationSuperior knowledge information may be specified using the {{EX:referral}}directive.  The value is a list of {{TERM:URI}}s referring tosuperior directory services.  For servers without immediate superiors,such as for {{EX:a.example.net}} in the example above, the servercan be configured to use a directory service with {{global knowledge}},such as the {{OpenLDAP Root Service}}({{URL:http://www.openldap.org/faq/index.cgi?file=393}}).>	referral	ldap://root.openldap.org/However, as {{EX:a.example.net}} is the {{immediate superior}}to {{EX:b.example.net}}, {{b.example.net}} would be configuredas follows:>	referral	ldap://a.example.net/The server uses this information to generate referrals foroperations acting upon entries not within or subordinateto any of the naming contexts held by the server.For those familiar with X.500, this use of the {{EX:ref}} attributeis similar to an X.500 knowledge reference held in a{{Supr}} {{TERM:DSE}}.H2: The ManageDsaIT ControlAdding, modifying, and deleting referral objects is generally doneusing {{ldapmodify}}(1) or similar tools which support the ManageDsaITcontrol.  The ManageDsaIT control informs the server that you intendto manage the referral object as a regular entry.  This keeps theserver from sending a referral result for requests which interrogateor update referral objects.The ManageDsaIT control should not be specified when managing regularentries.The {{EX:-M}} option of {{ldapmodify}}(1) (and other tools) enablesManageDsaIT.  For example:>	ldapmodify -M -f referral.ldif -x -D "cn=Manager,dc=example,dc=net" -Wor with {{ldapsearch}}(1):>	ldapsearch -M -b "dc=example,dc=net" -x "(objectclass=referral)" '*' refNote: the {{EX:ref}} attribute is operational and must be explicitlyrequested when desired in search results.

⌨️ 快捷键说明

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