QNAP Systems, Inc. - Network Attached Storage (NAS)

Language

Support

How to connect Mac client devices to the LDAP directory service and access files in QNAP NAS?

Introduction:

Lightweight Directory Access Protocol (LDAP) is a directory that can store the information of all of the users and groups in a centralized server. Using LDAP, the administrator can manage the users in the LDAP directory and allow the users to connect to multiple NAS with the same username and password. This tutorial can help users to connect their Mac devices to an LDAP directory. For accessing files with Mac devices and NAS, it must have a LDAP server in their environment. The NAS must be connected to the same LDAP server.

QNAP

Content:

  1. Before starting
  2. Join Mac devices to the LDAP directory
  3. Enable the home folder for LDAP users
  4. Accessing files via AFP protocol

1. Before starting:

  1. Update QTS to the latest version.
  2. Make sure your NAS is joined to the LDAP directory.
  3. Mac OS X 10.6 or later is recommended. In this document we use Mac OS X 10.10 as an example.

2. Join Mac devices to the LDAP directory:

Open the Mac menu and click "System Preferences.

QNAP
  1. Click "Users & Groups".
    QNAP
  2. Click "Login Options". If this option is disabled, click the lock icon in the bottom-left corner and log in as an administrator.
    QNAP
    QNAP
    QNAP
  3. Click "Join...".
    QNAP
  4. Enter the IP address of the LDAP server and click "OK".
    QNAP
  5. Enable "Allow network users to log in at login window" and click "Edit..." if the green light shows on the left side.
    QNAP
  6. Click "Open Directory Utility...".
    QNAP
  7. Choose "LDAPv3" and click the edit icon.
    QNAP
  8. Choose "RFC2307", enter the base suffix of your LDAP server and click "OK".
    QNAP
    QNAP
  9. Click "Edit..." on the previous page and go to the "Security" tab. Enable "Use authentication when connecting", enter the "Distinguished Name" and "Password", and click "OK".
    QNAP
    QNAP
  10. Click "OK".
    QNAP
  11. You can check user accounts in "Directory Editor". Then restart your Mac.
    QNAP

3. Enable the home folder for LDAP users:

  1. Open "Users & Groups", click "Login Options", and then click "Edit...".
    QNAP
  2. Click "Open Directory Utility...".
    QNAP
  3. Choose "LDAPv3" and click the edit icon.
    QNAP
  4. Choose the right configuration name and click "Edit...".
    QNAP
  5. Go to "Search & Mappings" > "Access this LDAPv3 server using" and choose "RFC2307".
    QNAP
    QNAP

    Please choose RFC2307 again even if the default value is the same.

  6. Enter base suffix of your LDAP server again and click "OK".
    QNAP
  7. Find "Users" > "NFSHomeDirectory" on the left side of "Record Types and Attributes".
    QNAP
  8. Go to the corresponding place on the right side, select "#/Users/$uid$" and click "OK".
    QNAP
  9. You will see "Custom" under LDAP Mappings. Click "OK".
    QNAP
  10. Go to "Directory Editor" and check the home folder for LDAP users.
    QNAP

4. Accessing files via AFP protocol:

Users can now log into Mac devices via LDAP and mount the home folder or shared folders.

  1. Open "Finder" > "Go" > "Connect to Server".
    QNAP
  2. Enter afp://NAS IP and click "Connect".
    QNAP
  3. Enter the username and password and click "Connect".
    QNAP
  4. Choose the folder you want to mount on your Mac (using the home folder as an example) and click "OK".
    QNAP
  5. Users can now access files on their Mac.
    QNAP
Release date: 2015-12-14
Was it helpful?
Thank you for your feedback.
Thank you for your feedback. If you have any question, please contact support@qnap.com
63% of people think it helps.