Enable Connection to Active Directory

In order to enable the use of Active Directory you need to create a configuration file defining how to connect to Active Directory, and deploy it together with the Content Store as follows:

  1. Login as escenic on your assembly-host (see the CUE Content Store Installation Guide for an explanation of this term).

  2. Go to the location of the assembly tool's classes folder:

    $ cd /opt/escenic/assemblytool/classes/
  3. Create a new directory structure:

    $ mkdir -p com/escenic/jaas
  4. Create a new file named shiro.conf in the new directory and open it in an editor. Enter the following configuration settings:

    [main]
    activeDirectoryRealm = org.apache.shiro.realm.activedirectory.ActiveDirectoryRealm
    activeDirectoryRealm.url=ldap://my_server:3268/
    activeDirectoryRealm.searchBase=dc=my,dc=company
    activeDirectoryRealm.systemUsername=my_username
    activeDirectoryRealm.systemPassword=my_password

    Set the parameters to match your Active Directory set up:

    activeDirectoryRealm.url

    The URL of your Active Directory server.

    activeDirectoryRealm.searchBase

    The base dn of your Active Directory.

    activeDirectoryRealm.systemUsername

    The user name to use when connection to Active Directory.

    activeDirectoryRealm.systemPassword

    The password to use when connecting to Active Directory.

  5. Save the file and build a new ear file by entering:

    $ ece clean assemble
  6. Deploy the ear file to your engine-hosts.