Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| technical:fr-ldap [2026/07/24 20:22] – [Configure OpenLDAP for ldaps] system | technical:fr-ldap [2026/07/26 18:39] (current) – [Configure OpenLDAP for ldaps] system | ||
|---|---|---|---|
| Line 459: | Line 459: | ||
| </ | </ | ||
| </ | </ | ||
| + | ==== What does update-ca-certificates do? ==== | ||
| + | I like to know how things work. If you also like to know how things work the following insert is for you :-) | ||
| + | * The primary master CA file that is updated and can be used on Ubuntu is **/ | ||
| + | * This command rebuilds the system' | ||
| + | * **System Certificates: | ||
| + | * **Local Certificates: | ||
| + | * **Output:** It then generates the single, concatenated bundle file at **/ | ||
| - | ==== Install | + | |
| + | ==== Update FreeRADIUS for ldaps:// ==== | ||
| + | * Do the following steps. | ||
| + | <code bash> | ||
| + | sudo su | ||
| + | #Copy the OpenLDAP's CA to FreeRADIUS | ||
| + | cp / | ||
| + | </ | ||
| + | * Edit **/ | ||
| + | <code bash> | ||
| + | #Look for these items... | ||
| + | #server = ' | ||
| + | #---This has to match the cert' | ||
| + | server = ' | ||
| + | # | ||
| + | # | ||
| + | |||
| + | # Port to connect on, defaults to 389, will be ignored for LDAP URIs. | ||
| + | ##port = 389 | ||
| + | #--We specify the ldaps port-- | ||
| + | port = 636 | ||
| + | |||
| + | #--- Then loop for the tls section | ||
| + | tls { | ||
| + | # Set this to ' | ||
| + | # to the LDAP database by using the StartTLS extended | ||
| + | # operation. | ||
| + | # | ||
| + | # The StartTLS operation is supposed to be | ||
| + | # used with normal ldap connections instead of | ||
| + | # using ldaps (port 636) connections | ||
| + | |||
| + | #--- Disable start_tls since we are forcing ssl/tls --- | ||
| + | |||
| + | #start_tls = yes | ||
| + | |||
| + | # | ||
| + | |||
| + | #--- The CA file from OpenLDAP-- | ||
| + | |||
| + | ca_file = / | ||
| + | |||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | |||
| + | # Certificate Verification requirements. | ||
| + | # ' | ||
| + | # ' | ||
| + | # | ||
| + | # ' | ||
| + | # ' | ||
| + | # | ||
| + | # | ||
| + | # The default is libldap' | ||
| + | # on the contents of ldap.conf. | ||
| + | |||
| + | #---Enforce FreeRADIUS to check the validity of the certificate --- | ||
| + | |||
| + | require_cert | ||
| + | |||
| + | # | ||
| + | # Check the CRL, as with the EAP module. | ||
| + | # | ||
| + | </ | ||
| + | * After you made these changes, restart FreeRADIUS in debug mode and to a test authentication to confirm that it is now using ldaps (port 636) | ||
| + | * See the results from out setup below: | ||
| + | <code bash> | ||
| + | rlm_ldap (ldap): Reserved connection (3) | ||
| + | (3) ldap: EXPAND (uid=%{%{Stripped-User-Name}: | ||
| + | (3) ldap: --> (uid=testuser) | ||
| + | (3) ldap: Performing search in " | ||
| + | (3) ldap: Waiting for search result... | ||
| + | (3) ldap: User object found at DN " | ||
| + | (3) ldap: Processing user attributes | ||
| + | (3) ldap: control: | ||
| + | rlm_ldap (ldap): Released connection (3) | ||
| + | Need more connections to reach 10 spares | ||
| + | rlm_ldap (ldap): Opening additional connection (7), 1 of 25 pending slots used | ||
| + | rlm_ldap (ldap): Connecting to ldap:// | ||
| + | rlm_ldap (ldap): Waiting for bind result... | ||
| + | rlm_ldap (ldap): Bind successful | ||
| + | |||
| + | </ | ||
| + | |||