Using the LDAP Binding Component in a Project

ProcedureTo Create a WSDL Document : Add Feature

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

    For example, LDAPBpelModule

  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

  7. Choose Type — From LDAP Server from the drop-down list.

    WSDL Type Document Options
  8. Click Next.

  9. Enter the Root DN and LDAP Server URL.

    DN: base object entry search relative to

    For example, the Root DN is dc=sun,dc=com and LDAP Server URL is ldap://server ip address:port number.

  10. Click Advanced.

    LDAP Server Options

    This action displays the Advanced Login dialog box.

    Advanced Options

    For example,

    • Principal: cn=Manager,dc=sun,dc=com

    • Credentials: *******

    Field

    Description

    Required Value

    Principal 

    Allows you to specify 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 

    Allows you to enter 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 

    Allows you to specify 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 

    Allows you to select 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 

    Specifies 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 

    Allows you to specify 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 

    Allows you to specify 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 

    Specifies 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 

    Allows you to specify 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 

    Specifies 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 

    Specifies the default TLS password. 

    The default value is NO 

  11. Click OK to close the Advanced Login Dialog.

  12. Click Next.

    The New WSDL Document — Operation Setting dialog box opens.


    Note –

    You can perform any one of following operations.

    • Search

    • Add

    • Update

    • Delete


  13. 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
  14. 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

  15. 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