C Configuring OpenLDAP Server to Use Oracle Net Naming Directory
This the steps to configure OpenLDAP server to work with Oracle Net Services LDAP schema.
OpenLDAP is an open source implementation of LDAP. Oracle Database client uses entries created using Oracle Net Services LDAP schema.
-
Download, install, and configure OpenLDAP server.
-
Add
$ORACLE_HOME/network/ldap/schema/openldap/orclnetnaming.schematoslapd.conf. If$ORACLE_HOMEis/opt/oracle, then include/opt/oracle/network/ldap/schema/openldap/orclnetnaming.schemainslapd.conf. -
Start OpenLDAP server.
-
Add
oracleContextin preferred naming context. The following example shows thecreateorclctx.ldiffile contents to add OracleContext, assumingdc=my-domain,dc=comis the chosen naming context.$ cat createorclctx.ldif dn: cn=oracleContext,dc=my-domain,dc=com objectclass: orclContext cn: oracleContext -
Add the entry created in Step 4 to OpenLDAP server using
ldapadd.ldapaddexample:`$ ldapadd -H \<OpenLDAP Server Name and Port> -D \<DN of user having privileges to add> -f createorclctx.ldif \<applicable authentication flags>` -
Create LDAP entry for storing connection descriptor. The following example shows
sales.ldifentry details, assumingoracleContextis created underdc=my-dmain,dc=com.$ cat sales.ldif dn: cn=sales,cn=oraclecontext,dc=my-domain,dc=com objectclass: top objectclass: orclNetService orclnetdescstring: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=databasehost)(PORT=1521)) (CONNECT_DATA=(SERVICE_NAME=mydbservice.us.example.com))) cn: sales -
Add the entry created in Step 6 to OpenLDAP server using
ldapadd.ldapaddexample:`$ ldapadd -H \<OpenLDAP Server Name and Port> -D \<DN of user having privileges to add> -f sales.ldif \<applicable authentication flags>`
Related Topics