iredmail-doc/en_US/cloud/cloud-platform.setup_window...

110 lines
3.9 KiB
Markdown
Raw Normal View History

2018-09-07 04:15:02 -05:00
## Setup LDAPS (LDAP over SSL)
- system: windows server 2012
- self-signed certificate
1. Click on Start --> Server Manager --> Add Roles and Features. Click Next.
![setup_ldaps_1](./images/windows_ad/setup_ldaps/setup_ldaps_1.png)
2. Choose Role-based or feature-based installation. Click Next.
![setup_ldaps_2](./images/windows_ad/setup_ldaps/setup_ldaps_2.png)
3. Select `ad.iredmail.org` server from the server pool. Click Next.
![setup_ldaps_3](./images/windows_ad/setup_ldaps/setup_ldaps_3.png)
4. Choose Active Directory Certificate Services from the list of roles and click Next.
![setup_ldaps_4](./images/windows_ad/setup_ldaps/setup_ldaps_4.png)
5. Choose nothing from the list of features and click Next.
![setup_ldaps_5](./images/windows_ad/setup_ldaps/setup_ldaps_5.png)
6. Click Next.
![setup_ldaps_6](./images/windows_ad/setup_ldaps/setup_ldaps_6.png)
7. Mark “Certificate Authority” from the list of roles and click Next.
![setup_ldaps_7](./images/windows_ad/setup_ldaps/setup_ldaps_7.png)
8. Click Install to confirm installation.
![setup_ldaps_8](./images/windows_ad/setup_ldaps/setup_ldaps_8.png)
9. Once installation is complete, Click Close.
![setup_ldaps_9](./images/windows_ad/setup_ldaps/setup_ldaps_9.png)
10. Now lets create a certificate using AD CS Configuration Wizard. To open the wizard, click on “Configure Active Directory Certificate Services on the destination server” in the above screen. And then click Close. We can use the currently logged on user azureuser to configure role services since it belongs to the local Administrators group. Click Next.
![setup_ldaps_10](./images/windows_ad/setup_ldaps/setup_ldaps_10.png)
11. Choose Certification Authority from the list of roles. Click Next.
![setup_ldaps_11](./images/windows_ad/setup_ldaps/setup_ldaps_11.png)
12. Since this is a local box setup without a domain, we are going to choose a Enterprise CA. Click Next.
![setup_ldaps_12](./images/windows_ad/setup_ldaps/setup_ldaps_12.png)
13. Choosing Root CA as the type of CA, click Next.
![setup_ldaps_13](./images/windows_ad/setup_ldaps/setup_ldaps_13.png)
14. Since we do not possess a private key lets create a new one. Click Next.
![setup_ldaps_14](./images/windows_ad/setup_ldaps/setup_ldaps_14.png)
15. Choosing SHA1 as the Hash algorithm. Click Next.
![setup_ldaps_15](./images/windows_ad/setup_ldaps/setup_ldaps_15.png)
16. Click Next.
![setup_ldaps_16](./images/windows_ad/setup_ldaps/setup_ldaps_16.png)
17. Specifying validity period of the certificate. Choosing 99 years. Click Next.
![setup_ldaps_17](./images/windows_ad/setup_ldaps/setup_ldaps_17.png)
18. Choosing default database locations, click Next.
![setup_ldaps_18](./images/windows_ad/setup_ldaps/setup_ldaps_18.png)
19. Click Configure to confirm.
![setup_ldaps_19](./images/windows_ad/setup_ldaps/setup_ldaps_19.png)
20. Once the configuration is successful/complete. Click Close.
![setup_ldaps_20](./images/windows_ad/setup_ldaps/setup_ldaps_20.png)
21. Restart system.
### Test LDAPS
After restart system, we can connect to the LDAP server over SSL.
Now let us try to connect to LDAP Server (with and without SSL) using the ldp.exe tool.
Connection strings for:
- `LDAP:\\ad.iredmail.org:389`
- `LDAPS:\\ad.iredmail.org:636`
1. Click on Start --> Search ldp.exe --> Connection and fill in the following parameters and click OK to connect:
![test_ldap_1](./images/windows_ad/setup_ldaps/test_ldap_1.png)
2. If Connection is successful, you will see the following message in the ldp.exe tool:
![test_ldap_2](./images/windows_ad/setup_ldaps/test_ldap_2.png)
3. To Connect to LDAPS (LDAP over SSL), use port 636 and mark SSL. Click OK to connect.
![test_ldaps_1](./images/windows_ad/setup_ldaps/test_ldaps_1.png)
4. If connection is successful, you will see the following message in the ldp.exe tool:
![test_ldaps_2](./images/windows_ad/setup_ldaps/test_ldaps_2.png)