This topic describes how to manage Server Message Block (SMB) shares in the on-premises file gateway console. You can create, delete, disable, and modify SMB shares. You can also configure AD or LDAP and add SMB users.
Prerequisites
- A cache disk is added to the gateway. For more information, see Add a cache disk.
- Cloud resources are bound. For more information, see Bind a cloud resource.
Background information
SMB is a network protocol that facilitates network communication between servers and clients or between network nodes. You can use this protocol to share files. SMB requires both a client and a server.
Cloud Storage Gateway (CSG) acts as an SMB server and provides the file sharing service. When you access CSG from a Windows-based client, CSG receives a request from the client and returns a response.
To use the SMB service, you must configure a share directory in the CSG console, create an SMB user, and specify user permissions.
Create an SMB share
AD and LDAP
Active Directory (AD) and Lightweight Directory Access Protocol (LDAP) are standard application protocols used to query and change directory information. Select the AD or LDAP service that you want to join and configure the settings.
- You can join an AD domain only after you complete the DNS settings.
- You can join either an AD or LDAP domain.
- The permissions of the current AD domain user, LDAP user, and on-premises user override each other and whichever configured last takes effect. After you join or leave an AD domain, or connect to or disconnect from an LDAP server, the user permissions configured in the CIFS share are automatically removed.
- The AD feature supports 64-bit Windows Server 2016 Datacenter and Windows Server 2012 R2 Datacenter.
- The LDAP feature supports 64-bit CentOS 7.4 with OpenLDAP 2.4.44.
Configure AD settings
- Configure the DNS server.
- Join an AD domain.
Configure LDAP
Add an SMB user
- If you have joined an AD domain, you can view all AD users on the SMB Users page.
- If you have joined an LDAP domain, you can view all LDAP users that have a Samba password on the SMB Users page.
- If you have joined an LDAP domain but have not configured a Samba password, click
Create to add a Samba password for the LDAP users on the SMB user page.
We recommend that you specify the same password for both Samba and LDAP.
- In the on-premises console of file gateways, choose .
- Click Create.
- In the Add SMB User dialog box, set the name and password.
- Click OK.
What to do next
On the SMB page, you can also perform the following operations.
Operation | Description |
---|---|
Disable an SMB share | On the SMB page, you can disable the toggle on the upper-left side of the page to disable NFS
sharing.
If you want to disable a single SMB share, you can use the following method. On the SMB page, find the NFS share. Click Settings and set Enable to No. |
Delete an SMB share | On the SMB Shares tab, find the SMB share, and click Delete.
Note After the SMB share is deleted, the Windows mount point or mapped network drive immediately
becomes ineffective.
|
Modify an SMB share | On the SMB Shares tab, find the SMB share, and click Settings or Advanced Settings. |
Cache Refresh | On the SMB Shares tab, find the SMB share, and click Cache Refresh. |
Delete an SMB user | On the SMB Shares tab, find the SMB user, and click Delete. |
Disable a connection | On the AD/LDAP tab, click End Connection. |