How to know the Authenticated user and Base DN of your LDAP Server?

Authenticated user in LDAP Server and Base DN in Windows Server 2008.

 

1. Click the start button, type “ldp” and click the program ldp.

LDAP1

 

2. In the ldp, click Connection and click Connect.. to continue.

LDAP2 
 

3. In the connect wizard, type the hostname or IP of the LDAP Server then click the Ok button.

 LDAP3
 

4. In the ldap wizard, after the connection was successfully, click the Connection menu and click the Bind.. to continue.

LDAP4

 

5. In the Bind wizard, input the user@YourDomain and password then click Ok button to continue.

LDAP5

 

6. After the simple bind using the user with admin privilege, you will see that the user was Authenticated for LDAP Server.

LDAP6 
 

Base DN of OU in Active Directory of Windows Server

1. In the Active Directory, right the Domain, choose view and click Detail.

AD1 

2. In the Active Directory, right click the OU you want to know the Bind DN and click the properties to continue.

AD2 

3. In the properties of OU, click the distinguishname to get the Bind DN.

AD3

 

4. In the String Attribute Editor, copy the Value of distinguishedName of OU for Bind DN that you use to setup the LDAP Server.

AD4

How to use Active Directory of Windows Server in Redmine LDAP?

Activating LDAP synchronization of Redmine plugin to sync users from Active Directory to Redmine.

 

1.  I’m using Bitnami as a Server of my Redmine, click start button and click Use Bitnami Redmine Stack cmd.

Start-button1

 

2. In Bitnami Redmine Stack cmd, clone the redmine_ldap_sync in github.com of Thorin or direct download and follow the procedure of Thorin.  In the directory ..redmine\htdocs\plugins\ type the command

git clone git://github.com/thorin/redmine_ldap_sync.git

cmd1

 

3. If the cloning is successful, you can update the ruby gems in the directory ..redmine\htdocs\plugins\ by typing

bundle install

cmd2

 

4. After updating the ruby gems, install the rake 10.1.1 under the directory ..redmine\htdocs\plugins\ because You will encounter the error of “rake aborted!“. To install Rake 10.1.1 type the command

 gem install rake -v 10.1.1
cmd3
Successfully installed rake-10.1.1, never mind the error display because under the error 1 gem installed is display. 
 

5. In the directory ..redmine\htdocs\plugins\, migrate the database using the command

rake redmine:plugins:migrate RAILS_ENV=production

cmd4

 

6. After migrating the database, install the plugin redmine_ldap_sync by typing command

rake -T redmine:plugins:ldap_sync RAILS_ENV=production

cmd5

 

7. Restart the Redmine services in the bitnami Manage Servers by clicking Restart All.

Bitnami1

Note: The Base DN is important to connect the Redmine in your LDAP Server to sync the users from Active Directory. To get the correct Base DN, follow these link.

 

8. After restarting the all servers, login as administrator in Redmine, click Administration, in the left menus click LDAP Authentication and click new Authentication Mode or edit your existing.

Authentication-modes

 

9. In the LDAP Authentication Modes, see my setup below for your reference and save your setup then don’t forget to follow the link in the step 7 note above.

AM-in-Redmine

 

10. After the Authentication modes, back to Administration page and click the LDAP synchornization in the menus. see my setup page below.

AM-in-Redmine1

 

11. After the LDAP settigs, click the synchronization tab then save your setting. see my setting below.

AM-in-Redmine2

 

12. After the Synchronization page, click the Test tab and click the generate to test the connection from LDAP Server. see my testing page below.

AM-in-Redmine3