Intranet Synology
NAS
has been changed from a local account toOpenLDAP
authentication, and the version usedOpenLDAP
does not have the attribute enabled by defaultsamba
, so the account cannot be used forSMB
protocol authentication, that is,\\IP\路径
to access using the method. If it is changedFTP
to the method of , the shared pictures will not be able to be previewed. If you want to support the preview, you need to download a specialFTP
clientSmartFTP
for accessSMB
.
1. Enable the SMB feature
OpenLDAP and Self-Service are installed using containers, the versions are as follows:
system version | OpenLDAP | Self-Service |
---|---|---|
CentOS 7.6 | bitnami/openldap:2.4.56 | tiredofit/self-service-password |
1. Install SMB
Add SMB
attributes to OpenLDAP
, such attributes are available via imports Samba LDAP schema
(schema). The schema already exists in the now-installed SAMBA
package, ldif
imported via the format.
# yum install samba -y
# find / -type f -name "samba.ldif"
/usr/share/doc/samba-4.10.16/LDAP/samba.ldif
# cp /usr/share/doc/samba-4.10.16/LDAP/samba.ldif /data/bitnami/conf/
2. Add SMB feature
# ldapadd -Q -Y EXTERNAL -H ldapi:/// -f samba.ldif
adding new entry "cn=samba,cn=schema,cn=config"
# 查看是否启用了samba
# ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config dn
dn: cn=config
dn: cn=module{
0},cn=config
dn: cn=schema,cn=config
dn: cn={
0}core,cn=schema,cn=config
dn: cn={
1}cosine,cn=schema,cn=config
dn: cn={
2}inetorgperson,cn=schema,cn=config
dn: cn={
3}nis,cn=schema,cn=config
dn: cn={
4}samba,cn=sch