Configuring the LDAP for the sample

The sample requires an Lightweight Directory Access Protocol (LDAP) with some specific entries.

About this task

The elements and properties must be defined when configuring the LDAP.
Note: Do not change these passwords.

As an alternative to the manual configuration steps, extract the content of the following .zip file, containing two LDIF files containing the configuration details provided in this task, and use these files to update the LDAP server: soaSamples.zip.

Procedure

Create an LDAP with the following elements:

  1. Define the suffix:
    dc=ibm.com
  2. Define the domain dc=ibm.com with the following properties:
    dn: dc=ibm.com
    dc: ibm.com
    objectclass: domain
    objectclass: top
  3. Define the containers:
    1. Define the container groups:
      dn: cn=groups,dc=ibm.com
      objectclass: container
      objectclass: top
      cn: groups
    2. Define the container users:
      dn: cn=users,dc=ibm.com
      objectclass: container
      objectclass: top
      cn: users
  4. Define the following users:
    1. User ConsumerA with the following properties:
      dn: uid=ConsumerA,cn=users,dc=ibm.com
      uid: ConsumerA
      objectclass: inetOrgPerson
      objectclass: organizationalPerson
      objectclass: person
      objectclass: top
      sn: ConsumerA
      cn: ConsumerA
      userpassword: passw0rd
    2. User ConsumerB with the following properties:
      dn: uid=ConsumerB,cn=users,dc=ibm.com
      uid: ConsumerB
      objectclass: inetOrgPerson
      objectclass: organizationalPerson
      objectclass: person
      objectclass: top
      sn: ConsumerB
      cn: ConsumerB
      userpassword: passw0rd
    3. User ConsumerX with the following properties:
      dn: uid=ConsumerX,cn=users,dc=ibm.com
      uid: ConsumerX
      objectclass: inetOrgPerson
      objectclass: organizationalPerson
      objectclass: person
      objectclass: top
      sn: ConsumerX
      cn: ConsumerX
      userpassword: passw0rd
  5. Define the following groups:
    1. Define the Group MANAGER with the following properties:
      dn: cn=MANAGER,cn=groups,dc=ibm.com
      objectclass: groupOfNames
      objectclass: top
      cn: MANAGER
      member: uid=ConsumerX,cn=users,dc=ibm.com
    2. Define the Group Clerk with the following properties:
      dn: cn=Clerk,cn=groups,dc=ibm.com
      objectclass: groupOfNames
      objectclass: top
      cn: Clerk
      member: uid=ConsumerA,cn=users,dc=ibm.com
    3. Define the Group Customer with the following properties:
      dn: cn=Customer,cn=groups,dc=ibm.com
      objectclass: groupOfNames
      objectclass: top
      cn: Customer
      member: uid=ConsumerB,cn=users,dc=ibm.com
  6. Make sure to collect the following information about the LDAP prior to running the sample:
    • The distinguished name (DN); for example cn=root.
    • The password; for example, passw0rd.
    • The non-secure port; for example, 389.
    • The LDAP Host name; for example, ldap.customer.com.

Task Task

Feedback

Timestamp icon Last updated: Thursday, 3 July 2014
http://publib.boulder.ibm.com/infocenter/prodconn/v1r0m0/topic/com.ibm.scenarios.soawdpwsrr.doc/topics/tsoa2_sample_configuring_ldap.htm