Creating a custom OID ldap attribute to use in a ldapsearch



When wanting to implement your own attribute on which you like to perform a exact search. You will need to add the EQUALITY attribute and on top of this you need to index this attribute for it to be used in a ldapsearch. Firstoff we will create a custom attribute using an EQUALITY attribute.


[oracle@ssoserver]$ ldapadd -h ssoserver -p 389 -D "cn=orcladmin" -q -f ldap_contactId_creation.ldap

add: attributetypes
attributetypes: ( 99.2.1.1.1.1 NAME 'contactId' EQUALITY integerMatch SYNTAX '1.3.6.1.4.1.1466.115.121.1.36' )

After creation of the attribute as described above , you can use this command to create an index on it :


[oracle@ssoserver]$ ./catalog connect="OIDDB" add=true attribute=contractid
This tool can only be executed if you know database user password for OID
Enter OID Password ::

------------------------------------------------------------
Creating catalog for "contractId" ...
------------------------------------------------------------

------------------------------------------------------------
Catalog created for "contractId" ...
------------------------------------------------------------

------------------------------------------------------------
Adding data to catalog table(s) ..
------------------------------------------------------------

------------------------------------------------------------
Creating indexes on catalog table "contractId" and collecting statistics...
------------------------------------------------------------
oracle@ssoserver]$

Now you are able to use this custom attribute in your search pattern. Only records which are equal (EQUALITY) will be returned using the index.

Comments are closed.

Algemeen (9)
GlassFish (49)
Java (58)
Managed Services (10)
Oracle (120)
Private Cloud Hosting (2)
SOA/BPEL/ESB (11)
Software development (92)
Strategie (7)
WSO2 (2)

WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.

  • 071 - 82 000 82
  • Rijndijk 137 | 2394 AG Hazerswoude-Rijndijk
Oracle SOA specialized partner
Java
GlassFish
WSO2
DEMO
i-bridge
Rabobank
Greencat
Jan de Rijk
Reuma Revalidatie Rotterdam
Robeco
VU Medisch Centrum
CHS
LUMC
TomTom
TKP
NCCW
Erasmus MC
UMCG
VIR
ANWB
BVA Auctions
D-Reizen
STEDIN