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

📄 slapd-perl.5

📁 OpenLdap是LDAP的开源项目
💻 5
字号:
.TH SLAPD-PERL 5 "RELEASEDATE" "OpenLDAP LDVERSION".\" $OpenLDAP: pkg/ldap/doc/man/man5/slapd-perl.5,v 1.5.4.2 2005/07/10 04:36:40 kurt Exp $.SH NAMEslapd-perl \- Perl backend to slapd.SH SYNOPSISETCDIR/slapd.conf.SH DESCRIPTIONThe Perl backend to.BR slapd (8)works by embedding a.BR perl (1)interpreter into.BR slapd (8).Any perl database section of the configuration file.BR slapd.conf (5)must then specify what Perl module to use..B Slapdthen creates a new Perl object that handles all the requests for thatparticular instance of the backend..LPYou will need to create a method for each one of thefollowing actions:.LP.nf  * new        # creates a new object,  * search     # performs the ldap search,  * compare    # does a compare,  * modify     # modifies an entry,  * add        # adds an entry to backend,  * modrdn     # modifies an entry's rdn,  * delete     # deletes an ldap entry,  * config     # process unknown config file lines,  * init       # called after backend is initialized..fi.LPUnless otherwise specified, the methods return the result codewhich will be returned to the client.  Unimplemented actionscan just return unwillingToPerform (53)..TP.B newThis method is called when the configuration file encounters a .B perlmodline.The module in that line is then effectively `use'd into the perlinterpreter, then the \fBnew\fR method is called to create a newobject.Note that multiple instances of that object may be instantiated, aswith any perl object..\" .LPThe.B newmethod receives the class name as argument..TP.B searchThis method is called when a search request comes from a client.It arguments are as follows:.nf  * object reference  * base DN  * scope  * alias dereferencing policy  * size limit  * time limit  * filter string  * attributes only flag (1 for yes)  * list of attributes to return (may be empty).fi.LPReturn value: (resultcode, ldif-entry, ldif-entry, ...).TP.B compareThis method is called when a compare request comes from a client.Its arguments are as follows..nf  * object reference  * dn  * attribute assertion string.fi.LP.TP.B modifyThis method is called when a modify request comes from a client.Its arguments are as follows..nf  * object reference  * dn  * a list formatted as follows    ({ "ADD" | "DELETE" | "REPLACE" },     attributetype, value...)....fi.LP.TP.B addThis method is called when a add request comes from a client.Its arguments are as follows..nf  * object reference  * entry in string format.fi.LP.TP.B modrdnThis method is called when a modrdn request comes from a client.Its arguments are as follows..nf  * object reference  * dn  * new rdn  * delete old dn flag (1 means yes).fi.LP.TP.B deleteThis method is called when a delete request comes from a client.Its arguments are as follows..nf  * object reference  * dn.fi.LP.TP.B configThis method is called with unknown.BR slapd.conf (5)configuration file lines.Its arguments are as follows..nf  * object reference  * array of arguments on line.fi.LPReturn value: nonzero if this is not a valid option..TP.B initThis method is called after backend is initialized.Its argument is as follows..nf  * object reference.fi.LPReturn value: nonzero if initialization failed..SH CONFIGURATIONThese.B slapd.confoptions apply to the PERL backend database.That is, they must follow a "database perl" line and come before anysubsequent "backend" or "database" lines.Other database options are described in the.BR slapd.conf (5)manual page..TP.B perlModulePath /path/to/libsAdd the path to the @INC variable..TP.B perlModule ModName`Use' the module name ModName from ModName.pm.TP.B filterSearchResultsSearch results are candidates that need to be filtered (with thefilter in the search request), rather than search results to bereturned directly to the client..SH EXAMPLEThere is an example Perl module `SampleLDAP' in the slapd/back-perl/directory in the OpenLDAP source tree..SH ACCESS CONTROLThe.B passwdbackend does not honor any of the access control semantics described in.BR slapd.access (5);all access control is delegated to the underlying PERL scripting.Only.B read (=r)access to the.B entrypseudo-attribute and to the other attribute values of the entriesreturned by the.B searchoperation is honored, which is performed by the frontend..SH WARNINGThe interface of this backend to the perl module MAY change.Any suggestions would greatly be appreciated..SH FILES.TPETCDIR/slapd.confdefault slapd configuration file.SH SEE ALSO.BR slapd.conf (5),.BR slapd (8),.BR perl (1).

⌨️ 快捷键说明

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