OID – Custom Schema

# Add attribute – llcSecretAttr :

cat > ~/add_attr1_to_schema.ldif

dn: cn=subschemasubentry
changetype: modify
add: attributetypes
attributetypes: ( 99.99.99.99.98 NAME ‘llcSecretAttr’ EQUALITY caseIgnoreMatch SYNTAX ‘1.3.6.1.4.1.1466.115.121.1.44’ )

$ ldapmodify -h llcau3.oracle.com -p 3060 -D cn=orcladmin -w mypasswd -v -f ~/add_attr1_to_schema.ldif
# Add attribute to an objectclass

cat > ~/add_obj1_to_schema.ldif

dn: cn=subschemasubentry
changetype: modify
add: objectclasses
objectclasses: ( 99.99.99.99.99 NAME ‘llcTestObj’ SUP top STRUCTURAL MAY llcSecretAttr )
$ ldapmodify -h llcau3.oracle.com -p 3060 -D cn=orcladmin -w mypasswd -v -f ~/add_obj1_to_schema.ldif

Advertisements

OID – Generating Alert Logs

$ cat addPlugin.ldif
dn : cn=BindPlugInTest,cn=plugin,cn=subconfigsubentry
objectclass : top
objectclass : orclPluginConfig
cn : BindPlugInTest
orclpluginclassreloadenabled : 1
orclpluginenable : 1
orclpluginisreplace : 0
orclpluginkind : java
orclpluginldapoperation : ldapbind
orclpluginname : PostBind
orclpluginsubscriberdnlist : cn=users,dc=us,dc=oracle,dc=com
orclplugintiming : post
orclplugintype : operational
orclpluginversion : 1.0

-bash-4.1$ cat ~/plugindisable.ldif
dn: cn=BindPlugInTest,cn=plugin,cn=subconfigsubentry
changetype: modify
replace: orclpluginenable
orclpluginenable: 1

dn: cn=BindPlugInTest,cn=plugin,cn=subconfigsubentry
changetype: modify
replace: orclpluginenable
orclpluginenable: 0

# execute ~/plugindisable.ldif within ldapmodify to generate the logs.

OID log Format

# Logic :

oidldapd{nn}s{PID}-{nnnn}.log 
alert{nn}s{PID}-{nnnn}.log

# Example :

$ ls -ltr
-rw-r—– 1 oracle oracle      51 5 Oct 10:53 console~OID~1.log
-rw-r—– 1 oracle oracle       0 5 Oct 10:53 alert-0000.log
-rw-r—– 1 oracle oracle    3128 5 Oct 10:53 oidmon-0000.log
-rw-r—– 1 oracle oracle    3881 5 Oct 10:53 oiddispd01-0000.log
-rw-r—– 1 oracle oracle  490793 5 Oct 11:03 oidldapd01s13520-0000.log
-rw-r—– 1 oracle oracle 4280961 5 Oct 11:31 alert01s13520-0000.log


Directory server (oidldapd)

ORACLE_INSTANCE/diagnostics/logs/OID/componentName/oidldapd01sPID-XXXX.log where:

01 is the instance number, which is 01 by default

s stands for server

PID is the server process identifier

XXXX is a number from 0000 to orclmaxlogfilesconfigured

Reference : https://docs.oracle.com/cd/E28280_01/admin.1111/e10029/logging.htm#OIDAG151