Question
Can Digital Hive leverage Active Directory as the authentication source so that existing AD users and groups can be used?
Answer
Digital Hive can be configured to use Active Directory authentication as long as the Digital Hive server is domain joined and part of the Active Directory.
It is highly recommended that Active Directory integration is configured BEFORE a user has logged into the Digital Hive application. If a user has previously logged into Digital Hive before Active Directory was configured, please contact the Customer Success team at
support@digitalhive.com.
Note: After completing these steps, the first user to log into Digital Hive will be the Super User so please make sure that the first user to access Digital Hive is the intended Super User.
- From within the Services panel, stop the DigitalHive-node1 service
- Using the Windows File Explorer, navigate to <install directory>\DigitalHive\app\node1\tomcat\bin
- Right click on the tomcat9w.exe file
- Select Create shortcut
- Drag the newly created tomcat9w.exe - Shortcut to the desktop
- Right click on the tomcat9w.exe - Shortcut
- Select Properties
- On the Shortcut tab, append //ES//DigitalHive-node1 to the Target making sure that there is a space between the value and the appended string
- Click OK
- Double click the Desktop tomcat9w.exe - Shortcut
- Click Yes
- Select the Java tab
- In the Java Options: section add -Dspring.profiles.active=ad_auth to the list of strings
- Click OK
- From within the Services panel, start the DigitalHive-node1 service
Digital Hive is now configured to use Active Directory for authentication.
Synchronizing User Attributes
Another benefit of leveraging Active Directory as the authentication source for Digital Hive, is being able to synchronize some of the user attributes like, Name, email address, phone number, etc. If this is not desired, skip to step 6. To complete the AD integration:
- On the Digital Hive file system, browse to the <DH_install_directory>\app\node1\tomcat\conf directory
- Open the theia.properties file in a text editor
- Locate or add the following lines to the properties file, making sure to replace the italics text with the correct values for your environment
motio.theia.ad.username=admin_user
motio.theia.ad.password=unencrypted:password
motio.theia.ad.url=server.domain.com:389
motio.theia.ad.domainName=AD_domain(that appears before the users' account name)
- Using the unencrypted: flag as part of the password will encrypt the password next time Digital Hive starts
- Save the changes to the file
- In Services, start the DigitalHive - node 1 service
If communication to the AD server needs to be done through secure LDAP calls, then the ad.url property would look something like ldaps://server.domain.com:636
Mapping Active Directory Groups to Digital Hive Roles
Now that Digital Hive is authenticating against Active Directory, you will likely want to map your AD Groups to Digital Hive. In Digital Hive you can create and update roles and can assign them to objects. Digital Hive comes with a set of capabilities that are the building blocks of roles. The default Digital Hive roles are:
- Admin
- Author
- Consumer
- Owner
Roles are a collection of capabilities. Roles are used to control access to the various Hives and pages that are created. Capabilities are used to restrict access to different aspects of Digital Hive functionality.
Here are the steps to map AD groups to Digital Hive roles. This document assumes you have already created groups in AD for admins, consumers and authors and added the users to the appropriate groups.
- From within Digital Hive, click on your avatar in the upper right hand corner and select Manage Digital Hive
- Click on Security and select the Roles module
- Click anywhere on the Admin row in the right hand pane and the Admin Role Details will open
- Click the Edit icon above the AD Users/Groups to get this role entry
- Enter the AD Group information which is in the DOMAIN\GROUPNAME syntax
- Click the icon to commit the changes
- Click anywhere outside the Role Details panel, or the X in the top right corner to close the Role Details panel
- Repeat steps 4 through 7 for other roles
- From within the Services panel, start the DigitalHive-node1 service
This concludes the mapping of Active Directory groups to the Digital Hive roles. Any users in the Active Directory group for admins will now have the admin role assigned to them in Digital Hive. Users in other mapped groups will also be granted dynamic access to those various roles.