LDAP Binding Component Tutorial

Creating a WSDL Document

In this section, create a WSDL Document in the BPEL Module project using the Add feature. For this example, create AddWSDL.wsdl in the BPEL project. Use the Partner view of the WSDL editor to configure the components of the WSDL Document.

ProcedureTo Create a WSDL Document: Add Operation

  1. Expand the BPEL Module project node in the Projects tab.

  2. Right-click the project node or Process Files node. Select New —> WSDL Document.

    New WSDL Document

    This opens the New WSDL Document wizard.

  3. Type the File Name in the File Name field.

    For example, AddWSDL.wsdl

  4. Select Concrete WSDL Document.

  5. Choose the Binding — LDAP from the drop-down list.

  6. Choose any one of the following Types from the drop-down list.

    • From LDAP Server

    • From LDIF File

    WSDL Type Document Options
  7. Click Next.

  8. Enter the Root DN and LDAP Server URL.

    DN is the base object entry search relative to.

    In the figure below, the Root DN is dc=sun,dc=com. The format for the LDAP Server URL is ldap://hostname:port .

  9. Click Advanced.

    LDAP Server Options

    The Advanced Login dialog box appears.

    Advanced Options

    Field

    Description

    Required Value

    Principal 

    The principal needed when using an authentication mechanism other than the anonymous log-in (authentication = none). 

    The fully qualified Distinguished Name (DN) of the user. 

    For example: cn=Administrator,cn=Users,dc=stc,dc=com 

    Credentials 

    The credentials needed when using an authentication mechanism other than anonymous log-in (authentication = none). 

    The appropriate credentials, such as valid password. 

    SSL Connection Type 

    The SSL connection type. 

    Select None, Enable SSL, or TLS On Demand. Enter the desired value as follows: 

    • None: No SSL, simple plain connection.

    • Enable SSL: SSL is enabled. All communication to the LDAP server uses a secure communication channel.


      Note –

      If you are using the Enable SSL option, the ProviderURL property must point to a secure LDAP port.


    Authentication 

    The method authentication (none or simple). Select the desired authentication as follows: 

    • None: No authentication, that is, an anonymous log-on. If you use this setting, ensure that the LDAP server supports anonymous log-ons if you are using this setting.

    • Simple: Authentication is based on a user name and password. Provide the user name and password in the appropriate fields (Use the Principal and Credentials).

    Select None or Simple.

    The default is None.

    TrustStore 

    The default TrustStore. The TrustStore is used for CA certificate management when establishing SSL connections. 

    Click Browse to select the trust store file.

    A valid TrustStore file. 

    There is no default value. 

    TrustStore Type 

    The TrustStore type of the TrustStore used for CA certificate management while establishing an SSL connection. If the TrustStore type is not specified, the application uses JKS as the default TrustStore Type. 

    A valid TrustStore type. 

    TrustStore Password 

    The default TrustStore password. The password is meant to access the TrustStore used for CA certificate management while establishing SSL connections. 

    A valid TrustStore password. 

    There is no default value. 

    KeyStore 

    The default KeyStore file. The keystore is used for key/certificate management while establishing SSL connections. 

    Click Browse to select the key store file.

    A valid package location. 

    There is no default value. 

    KeyStore Type 

    The default KeyStore type. The keystore type is used for key/certificate management when establishing SSL connections. If the KeyStore type is not specified, the default KeyStore type is used. 

    A valid KeyStore type. 

    KeyStore Username 

    The user name for accessing the keystore used for key/certificate management when establishing SSL connections. 

    A valid KeyStore user name. 

    KeyStore Password 

    The default KeyStore password. The password is used to access the KeyStore used for key/certificate management when establishing SSL connections; there is no default. 

    A valid KeyStore password. 

    There is no default value. 

    TLS Security 

    An indicator of whether TLS security is enabled. 

    The default value is NO 

  10. Click OK to close the Advanced Login Dialog.

  11. Click Next.

    The New WSDL Document — Operation Setting dialog box opens.


    Note –

    You can perform any one of following operations.

    • Search

    • Add

    • Update

    • Delete


  12. Click the Add tab.

    Operation Setting

    Select the following Object Class:

    1. person

    2. inetOrgPerson

    Click the down arrow to move them from the top-left pane to the bottom-left pane.


    Note –

    The attributes related to the schema are selected.

    Each schema is made up of a set of attributes.


    For example,

    • person — person.sn and person.cn

    • inetOrgPerson — inetOrgPerson.uid and inetOrgPerson.mail

      They are represented as follows:

        schemaname.Attributename

      1. sn — Surname

      2. cn — Common Name

      3. uid — Unique id

      4. mail — Email


    Note –

    Use the down arrow to move the selected Object Class or Attributes from the top-left pane to the bottom-left pane. Use this to also move from the top-right pane to the bottom-right pane.


    Select Object Class
  13. Set any one of the Attributes to Relative Distinguished Name (RDN).

    A Relative Distinguished Name (RDN) is a component of the distinguished name.

    For example, cn=John Doe, ou=People is a RDN relative to the root RDN dc=sun.com.

    Set to RDN

    For example, Set inetOrgPerson.uid = RDN

  14. Click Finish.

    The illustration is as shown.

    Tree Structure

    A tree structure is formed as follows:

    1. AddWSDL.wsdl — Target WSDL

    2. AddWSDLAdd.xsd

    3. LdapBase.xsd