LDAP (Lightweight Directory Access Protocol) is an application protocol for querying and modifying attributes in directory service providers like Active Directory, which supports LDAP.

Active Directory is a database-based system that provides authentication, directory, policy, and other services in a Windows environment.

This section explains about the Access and Layout information pertaining to the directory server, which is required to authenticate and authorize users using LDAP Directory Server.

Setting up

The basic set up is done in the eStudio application. To set up LDAP security, perform the following actions: 

  1. Open the profile for off-line editing through the Profile Manager using eStudio by clicking on the Profile Manager pane.
  2. Modify the Implementation property of ACL Manager and Principal Manager and to LDAP.

    Reference

    Icon

    For more information on how to modify ACL Manager and Principal Manager, refer to the 7.4 Modifying ACLManager Implementation section and the 7.5 Modifying Principal Manager Implementation section respectively in the FioranoMQ documentation.

  3. Configure the Principal Manager as per the desired Directory Server. Sample configuration for Netscape Directory Server is as shown in the figure below in section LDAP Provider DN.
  4. LDAP-based ACL manager depends on Timer Service. Specify the Instance of TimerService.


Figure 1:
Instance property under TimeService for LDAPSecurity Realm

5. Right-click on the FES/FPS node and select Save from the pop-up menu.

Sample Configuration – ApacheDS1.5.4

Apache Directory Studio is a complete directory tooling platform intended to be used with any LDAP server however it is particularly designed for use with ApacheDS. Hence, the steps mentioned here require the installation of Apache Directory Studio.

Setting up the Directory Service

Setting up Apacheds1.5.4 involves two steps—Starting ApacheDS server and Creating the LDAPConnection.

Starting Apacheds1.5.4 Server

The server can be started in two ways

  • From Apacheds1.5.4
  • From Apache Directory Studio
From Apacheds1.5.4

This method needs Apacheds1.5.4 to be installed and configured. Once you have this ready, perform the following actions:

  1. Stop any running instance of apacheds.
  2. Take backup of server.xml

    Icon

    Default path is /var/lib/apacheds-1.5.4/default/conf/server.xml. If the DS instances were installed in a different location then server.xml will be available inside that directory.)

  3. Modify server.xml as follows, add the following line within the tag </partitions> ... </partitions>

  4. Run apacheds using the following command:

From Apache Directory Studio
  1. Login through Apache Directory Studio.
    • User ID: uid=admin,ou=system (Default)
    • Password: secret (Default)
  2. For creating a new Server Instance, navigate to File > New > LDAPServer
  3. Under Servers browser window double click on the server created above to see a window with the tile server.xml
  4. Configure default LDAP port as 10389 under General category in server.xml
  5. Navigate to Partitions category in the server.xml file using 'Add'.
  6. Set following partition parameters
    • ID: fiorano
    • Cache Size: 100
    • Suffix: o=fiorano,c=US
    • Select the options: Enable Optimizer, Synchronization on write
  7. Save (File > Save) the server configuration.
Creating LDAP Connection

An LDAP Connection is required to bind to an LDAP server and perform the tasks. This section explains how to create a connection to your LDAP directory using Apache Directory Studio.

To create a connection to your LDAP Directory, perform the following actions:

  1. Login through Apache Directory Studio.
    • User ID: uid=admin,ou=system (Default)
    • Password: secret (Default)
  2. Import the following LDIF content using Apache Directory Studio. (LDAP > New LDIF File)

  3. Save the file in any local directory.
  4. Create a new LDAP connection by navigating to File > New > LDAPConnection
  5. Enter the details of running server.
  6. Right-click on the created connection and navigate through Import > LDIF Import.
  7. Browse and select the LDIF file created in the Step 2.
    Once the file in imported, the added entries can be found in LDAP Browser window > DIT > Root DSE > o=fiorano,c=US

Re-login through Apache Directory Studio to see the added children.

Setting up the profile to use with ApacheDS1.5.4

Now set up a profile to use with ApacheDS1.5.4 by performing the following actions:

Icon

Make sure that the steps mentioned in section LDAP Security Realm  have been completed before moving on to these steps

  1. Open the profile for off-line editing through the Profile Manager using Studio by clicking on the Profile Manager pane
  2. Make sure that all the properties except the LdapProviderUrl are reset to their original value.
  3. In the LDAP Provider URL, the port number has to be 10389 and the IP address has to be that of the server that is running ApacheDS.

Sample Configuration – Active Directory LDAP

As a directory service; an Active Directory instance consists of a database and corresponding executable code responsible for servicing requests and maintaining the database. Active Directory makes use of LDAP version 2 and 3. This section illustrates the Active Directory LDAP configuration.

Icon

The steps mentioned here require the installation of  ADSI Edit Studio in Windows machine.

Setting up the Directory Service

Setting up ActiveDirectory involves two steps starting ADLDS (Active Directory Light weight Directory Service) instance and creating the LDAPConnection.

Starting ADLDS Instance

Install Windows update for running ADLDS instance and follow the below steps for configuring the ADLDS startup:

  1. Create an ADLDS instance by navigating through Run > Active Directory Light Weight Directory Service Setup wizard. Specify the instance name for ADLDS
  2. Configure the LDAP and SSL port numbers and create a new Partition “O=Fiorano,C=US”
  3. Use Network Service Account for starting the instance.
  4. Import the LDIF files Ms-InetOrgPerson.LDF and Ms-User.LDF, which are necessary. Other ldf files can also be included if needed.

Once created, you can see the instance with the specified name running in services.msc (CTRL+R)

Creating LDAPConnection

To create LDAP connection, perform the following actions:

  1. Open ADSI Edit Studio.
  2. Right-click  ADSI Edit  and select connect to
  3. Enter name of the ADLDS instance under Name
  4. Provide the partition name “O=Fiorano,C=US” for Distinguished Name which is under ConnectionPoint.
  5. Computer credentials will be localhost:389, if instance is running in localmachine with Tcp port 389.
  6. Finally provide 'Ok' to connect to the ADLDS Instance.
Creating Admin Credentials to Access LDAP server

After creating the connection, create admin credentials to access LDAP server by performing the following actions:

  1. In ADSI Edit, navigate to ADSI Edit > ADLDS instance > “O=Fiorano,C=US”, some default Objects will be already created.
  2. Add FMQRoot object as user type, under “O=Fiorano,C=US”.
  3. Right-click on FMQRoot and reset the password as secret
  4. Under CN=Roles,O=Fiorano,C=US, Right-click on CN= Administrators > Properties add the FMQRoot user under member of CN=Administrators.
  5. For using LDAP in Fiorano, Active Directory should be preloaded with java schema (Refer: http://docs.oracle.com/javase/tutorial/jndi/software/content.html#SCHEMA )
  6. Enable Schema Permissions for FMQRoot
    1. Open Active Directory Schema
    2. Right-click on Active Directory Schema > Change Active Directory Domain Controller and specify <LDAP Server Ip>:<LDAP Port>
    3. Right-click on Active Directory Schema > Permissions
    4. Give all permissions for Authenticated user
  7. Get the java file from the link   http://docs.oracle.com/javase/tutorial/jndi/software/config/CreateJavaSchema.java.
    Compile and run the java file with the following command which will add the required java schema to Active Directory instance:

  8. Add following objects as container type, under O=Fiorano,C=US
    FMQServerConfigFiles, FioranoMQUsers, FioranoMQGroups, ACL
  9. Now specify the user credentials to access the LDAP server, which can be configured from Fiorano Studio(Figure 4.1).
Icon

In the above configuration, the default password is secret for cn=FMQRoot,o=Fiorano,c=US, which is can be changed and provide the same credentials while configuring LDAP setting in Fiorano Profile.

Sample Configuration – Netscape Directory Server

This directory server is yet another robust, scalable server designed to manage an enterprise-wide directory of users and resources. This section illustrates the Netscape LDAP configuration.

Setting the Name

This name has to be the admin of the LDAP server, as you have to start the Initial Context with the Admin. 
PRINCIPAL = uid=admin, ou=Administrators, ou=TopologyManagement, o=NetscapeRoot

Setting the password

Enter the password of the Admin of the LDAP Server to whom you want to connect as shown in the Figure below


Figure 2: iPlanet Console Login Dialog Box

LDAP Initial Context Factory

The Initial Context Factory to be used, corresponding to the directory server. 
LdapInitialCtxFactory = com.sun.jndi.ldap.LdapCtxFactory

LDAP Provider URL

This can be set according to the directory server being used.
LdapProviderUrl = ldap://ldapserver:389

LDAP Provider DN

This variable needs to be set to the suffix variable that you have set up while installing the LDAP Server as shown in the figure:
LdapProviderDn = dc=modena, dc=stpn, dc=soft, dc=net


Figure 3: Directory Server Settings

LDAP security authentication

Set this variable to:
LdapSecurityAuthentication = Simple LDAP User and Group Object classes

Adaptavist ThemeBuilder EngineAtlassian Confluence