Oracle® Internet Directory Administrator's Guide 10g (9.0.4) Part Number B12118-01 |
|
Oracle Internet Directory Plug-in Framework, 3 of 3
To enable the directory server to call a plug-in at the right moment, you must register the plug-in with the directory server. Do this by creating a configuration entry for the plug-in under cn=plugin,cn=subconfigsubentry
. This plug-in must have orclPluginConfig
as one of its object classes.
See Also:
"Plug-in Schema Elements" for details about the attributes in the |
This section contains these topics:
This section provides examples of how to create, modify, and delete plug-in configuration entries by using Oracle Directory manager.
To register a plug-in:
To edit a plug-in entry:
To delete a plug-in:
This section provides examples of how to create, modify, and delete plug-in configuration entries by using command-line tools.
See Also:
Plug-in Schema Elements for information about the attributes in the orclPluginConfig object class |
In the following examples, an entry is created for an operation-based plug-in called my_plugin1
. The LDIF file is named my_ldif_file.ldif
.
The following is an example LDIF file to create such an object:
cn=when_comp,cn=plugin,cn=subconfigsubentry objectclass=orclPluginConfig objectclass=top orclPluginName=my_plugin1 orclPluginType=operational orclPluginTiming=when orclPluginLDAPOperation=ldapcompare orclPluginEnable=1 orclPluginVersion=1.0.1 orclPluginIsReplace=1 cn=when_comp orclPluginKind=PLSQL orclPluginSubscriberDNList=dc=COM,c=us;dc=us,dc=oracle,dc=com;dc=org,dc=us;
o=IMC,c=US
The following is an example LDIF file to create such an object:
cn=post_mod_plugin,cn=plugin,cn=subconfigsubentry objectclass=orclPluginConfig objectclass=top orclPluginName=my_plugin1 orclPluginType=operational orclPluginTiming=post orclPluginLDAPOperation=ldapmodify orclPluginEnable=1 orclPluginVersion=1.0.1 cn=post_mod_plugin orclPluginKind=PLSQL
Add this file to the directory with the following command:
ldapadd -p 389 -h myhost -D binddn -w password -f my_ldif_file.ldif
When you have added this entry to the directory, the directory server validates the plug-in by quickly executing it and checking for compilation or access privilege errors. It then gathers more information about this plug-in--such as timing and the type of LDAP operation related to the plug-in.
This is an example of disabling a plug-in:
ldapmodify -h host_name -p port_number -D cn=orcladmin -w orcladminpwd <<EOF dn: cn=post_mod_plugin,cn=plugin,cn=subconfigsubentry changetype: modify replace: orclPluginEnable orclPluginEnable: 0 EOF
This is an example of deleting a plug-in:
ldapdelete -h host_name -p port_number -D cn=orcladmin -w orcladminpwd "cn=post_mod_plugin,cn=plugin,cn=subconfigsubentry"
|
![]() Copyright © 1999, 2003 Oracle Corporation. All Rights Reserved. |
|