What is LDAP Adapter:
The Oracle LDAP adapter provides bi-directional connectivity with LDAP V3- compliant directory servers. The chapter provides information on how to model the LDAP adapter as a reference to perform CRUD (Create, Read, Update and Delete) operations and how to model the LDAP adapter as an inbound publication service on a directory server. Information describing various users, applications, files, printers, and other resources accessible from a network is often collected into a special database called an LDAP directory. Access to LDAP directories is a basic requirement of enterprise workflows. The LDAP Adapter Configuration Wizard provides a graphical and intuitive interface to model LDAP services to send requests to and receive responses from LDAP servers.
The Oracle LDAP adapter provides bi-directional connectivity with LDAP V3- compliant directory servers. The chapter provides information on how to model the LDAP adapter as a reference to perform CRUD (Create, Read, Update and Delete) operations and how to model the LDAP adapter as an inbound publication service on a directory server. Information describing various users, applications, files, printers, and other resources accessible from a network is often collected into a special database called an LDAP directory. Access to LDAP directories is a basic requirement of enterprise workflows. The LDAP Adapter Configuration Wizard provides a graphical and intuitive interface to model LDAP services to send requests to and receive responses from LDAP servers.
LDAP (Lightweight Directory Access Protocol), is an Internet protocol for accessing information directories. A directory service is a distributed database application designed to manage the entries and attributes in a directory. LDAP runs over TCP/IP. LDAP enables clients to access different directory services based on entries. It makes the entries, along with their attributes and values, available to users and other applications, on a controlled-access basis.
The Oracle Adapter for LDAP provides rich support for LDAPv3 defined operations in addition to support for extensions. It also supports DSMLv2 and can be used as a DSML gateway service. The adapter can be configured to listen and publish change events from a source directory server. In addition, the adapter guarantees once and only once message delivery, high-availability, policy-based retry and fault-handling, automatic fail-over and several other features.
Oracle SOA Project Setup for LDAP Adapter:
- Create one SOA project.
- Create LDAP connection factory in LdapAdapter deployment eg.eis/ldap/LDAPUAT
- Save it and update Ldap Adapter.
- Go Back to SOA Project.
- Drag & Drop LDAP adapter in SOA Project.
- Create LDAP server connection in JDEV with same details by which we created LDAP Connection factory.
- In above image, you have to select all attributes which you need inside your SOA Service response.
- There are two ways to select attributes:
- Search attributes one by one in object from SOA LDAP browser (Last screen shot)
- You can login into OID/OUD server and can search attributes where you will get attribute class and with help of object class you can select same into SOA LDAP adapter (lot of time saving), Screen shot is below.
- Click Next & Finish
- Save All.
Special Req: In our case we needed CreatedTimeStamp & ModifyTimeStamp in our response, You can find same attributes over OID/OUD but can't find these attributes in LDAP Adapter.
To involve both attributes you have to modify your ****LDAP***.JCA and ****LDAP****.XSD file and need to add manually.
- SOA LDAP Adapter Advance Search:
- In few cases you will be having req to search for a particular value based on some value or you will be needed some data after a particular date.
- I am going to see how we can select all users which are created/updated after a date.
- I created a X-query which assign BASE DN value where search will be executed.
- In same X-query custom search parameters are defined.
- Same X-query, Accept a date with Format "2018-09-19T00:37:04.475-04:00".
Xquery Code:
<get:searchRequest>
<baseDN>{'cn=Users,dc=OID,dc=com'}</baseDN>
<searchFilter>{fn:concat('(&(objectclass=person)(|(modifytimestamp>=',fn:replace(fn:substring-before($inputVariable.part1,'T'),'-',''),fn:replace(fn:substring-before(fn:substring-after($inputVariable.part1,'T'),'.'),':',''),'Z)(createTimestamp>=',fn:replace(fn:substring-before($inputVariable.part1,'T'),'-',''),fn:replace(fn:substring-before(fn:substring-after($inputVariable.part1,'T'),'.'),':',''),'Z',')))')}</searchFilter>
</get:searchRequest>
Xquery Response:
<get:searchRequest xmlns:get="http://platform.integration.oracle/blocks/adapter/fw/metadata/GetLdapUser">
<baseDN>cn=Users,dc=OID,dc=com</baseDN>
<searchFilter>(&(objectclass=person)(|(modifytimestamp>=20180919003704Z)(createTimestamp>=20180919003704Z)))</searchFilter>
</get:searchRequest>
- 20180919003704Z, It's converted date format which is needed for LDAP Adapter.
- Object Class person is where search will be executed.
- As we need modify & create date in search so both are added with | (OR).
Sample response:
Thanks for the good information.
ReplyDeleteOracle Integration Cloud Service Online Training
Good blog
ReplyDeleteSSIS training
SSRS training
tableau training
Excellant Information
ReplyDelete