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

📄 readme

📁 ldap服务器源码
💻
字号:
Relay backend sets up a relay virtual database that allowsto access other databases in the same instance of slapdthrough different naming contexts and remapping attribute values.The DN rewrite, filter rewrite and attributeType/objectClassmapping is done by means of the rewrite-remap overlay.The database containing the real naming context can beexplicitly selected by means of the "relay" directive,which must contain the naming context of the target database.  This also causes the rewrite-remap overlay to be automatically instantiated.  If the optional keyword "massage" is present, the rewrite-remap overlay is automatically configured to map the virtual to the real naming context and vice-versa.Otherwise, the rewrite-remap overlay must be explicitlyinstantiated, by using the "overlay" directive, as illustrated below.  This allows much more freedom in target database selection and DN rewriting.If the "relay" directive is not present, the backend isnot bound to a single target database; on the contrary,the target database is selected on a per-operation basis.This allows, for instance, to relay one database for authentication and anotheir for search/modify, or allowsto use one target for persons and another for groupsand so on.To summarize: the "relay" directive:- explicitly bounds the database to a single database   holding the real naming context;- automatically instantiates the rewrite-remap overlay;- automatically configures the naming context massaging  if the optional "massage" keyword is addedIf the "relay" directive is not used, the rewrite-remapoverlay must be explicitly instantiated and the massagingmust be configured, either by using the "suffixmassage"directive, or by issuing more sophisticate rewrite instructions.AttributeType/objectClass mapping must be explicitlyrequired.Note that the rewrite-remap overlay is not complete nor production- ready yet.Examples are given of all the suggested usages. # automatically massage from virtual to real naming contextdatabase	relaysuffix		"dc=virtual,dc=naming,dc=context"relay		"dc=real,dc=naming,dc=context" massage# explicitly massage (same as above)database	relaysuffix		"dc=virtual,dc=naming,dc=context"relay		"dc=real,dc=naming,dc=context"suffixmassage	"dc=virtual,dc=naming,dc=context" \			"dc=real,dc=naming,dc=context"# explicitly massage (same as above, but dynamic backend resolution)database	relaysuffix		"dc=virtual,dc=naming,dc=context"overlay		rewrite-remapsuffixmassage	"dc=virtual,dc=naming,dc=context" \			"dc=real,dc=naming,dc=context"# old fashioned suffixalias, applied also to DN-valued attributes# from virtual to real naming context, but not the reverse...database	relaysuffix		"dc=virtual,dc=naming,dc=context"relay		"dc=real,dc=naming,dc=context"rewriteContext	defaultrewriteRule	"(.*)dc=virtual,dc=naming,dc=context$" \			"$1dc=real,dc=naming,dc=context"rewriteContext	searchFilterrewriteContext	searchResultrewriteContext	searchResultAttrDNrewriteContext	matchedDN

⌨️ 快捷键说明

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