ºÚÁϺ£½Ç91Èë¿Ú

Configure FreeNAS to Use Cloud LDAP

Prerequisites:

  • Make sure LDAP-as-a-Service is configured correctly in ºÚÁϺ£½Ç91Èë¿Ú. See Use Cloud LDAP.
  • Make sure any relevant user/LDAP groups are properly configured. See Create an LDAP Group.

Notes

  • FreeNAS support site: .
  • This process was last qualified on 10/19/2020 using both 11.2U8 & 11.3U5. 
  • Users from the LDAP connection do not seem to show up in the FreeNAS GUI. Be aware that LDAP users and groups appear in the drop-down menus of the Permissions screen of a dataset after configuring the LDAP service. See FreeNAS documentation for further details.
  • SSH access is limited to local users only by default.
  • Once configured, you may have to click Rebuild Directory Service Cache for users to be imported from LDAP, or for any updates to the ºÚÁϺ£½Ç91Èë¿Ú Samba User Group to propagate to FreeNAS.

Importing a Certificate in FreeNAS

To import a certificate in FreeNAS:

  1. Go to 
  2. Download the GoDaddy Class 2 Certification Authority Root Certificate - G2  (gdroot-g2.crt).
  3. Open the .crt file with a text editor, then copy all contents.
  4. Log in to the FreeNAS Administrator Dashboard. 
  5. Go to System > CAs, then click Import CA
  6. Paste the certificate contents into the Certificate input field.
  7. Use the Identifier field (e.g. GoDaddy_Root_G2) to name the certificate. 
  8. Leave the Private Key and Passphrase / Confirm Passphrase fields blank. 
  9. If you have the serial number of the certificate, enter it in the Serial field or enter 1.
  10. °ä±ô¾±³¦°ìÌýOK.

 Configuring LDAP in FreeNAS

Note:

To find the information for step 3, see Use Cloud LDAP.

  1. Log in to the FreeNAS Administrator Dashboard.
  2. Go to Directory Service > LDAP.
  3. Provide the following information:
    1. Hostname:Ìý±ô»å²¹±è.Âá³Ü³¾±è³¦±ô´Ç³Ü»å.³¦´Ç³¾
    2. Base DN: o=YOUR_ORG_ID,dc=jumpcloud,dc=com
    3. Bind DN: uid=LDAP_BINDING_USER,ou=Users,o=YOUR_ORG_ID,dc=jumpcloud,dc=com
    4. Bind Password: LDAP_BINDING_USER_PASSWORD
    5. Enable: Checked

Configuring START_TLS LDAP Settings in FreeNAS 11.2

To configure advanced LDAP settings in FreeNAS 11.2:

  1. Log in to the FreeNAS Administrator Dashboard.
  2. Go to Directory Service > LDAP.
  3. Click Advanced Mode.
  4. Set Encryption Mode toTLS.
  5. ForÌý°ä±ð°ù³Ù¾±´Ú¾±³¦²¹³Ù±ð,Ìýselect the name of the certificate you imported. See Importing a Certificate in FreeNAS above for more information.Ìý 
  6. Check the Samba SchemaÌý´Ç±è³Ù¾±´Ç²Ô.Ìý
  7. Click the Save button to complete the LDAP and LDAP Advanced Configurations.

Configuring START_TLS LDAP Settings in FreeNAS 11.3

FreeNAS 11.3 had some major changes to the way that it communicates and authenticates with LDAP over secure channels. The base service in FreeNAS 11.3 that handles LDAP Authentication is nslcd, compared to 11.2’s service of sssd.Ìý

FreeNAS 11.3’s nslcd service stores the CA in the /etc/ssl/truenas_cacerts.pem file which is used to encrypt over START_TLS. You can check the configuration for LDAP in the /usr/local/etc/nslcd.conf file.Ìý

To configure advanced LDAP settings in FreeNAS 11.3:

  1. Log in to the FreeNAS Administrator Dashboard.
  2. Go to Directory Service > LDAP.
  3. Click Advanced Mode.
  4. Set Encryption Mode to START_TLS.
  5. Check Validate Certificates.
  6. For Certificate, leave blank (nslcd will use the CA you created in Importing a Certificate in FreeNAS, which is stored in /etc/ssl/truenas_cacerts.pem).
  7. Check the Samba Schema option.
  8. Click the Save button to complete the LDAP and LDAP Advanced Configurations.

Optional settings for logging: 

  1. You can move logging for nslcd to its own file for troubleshooting using the Auxiliary Parameters field in the LDAP configuration in the UI.Ìý
  2. Add the following line to create a specific log file under /var/log for nslcd using debug level logging: log /var/log/nslcd.log debug.
Back to Top

List IconIn this Article

Still Have Questions?

If you cannot find an answer to your question in our FAQ, you can always contact us.

Submit a Case