OpenLDAP supports SAMBA features

Intranet Synology NAShas been changed from a local account to OpenLDAPauthentication, and the version used OpenLDAPdoes not have the attribute enabled by default samba, so the account cannot be used for SMBprotocol authentication, that is, \\IP\路径to access using the method. If it is changed FTPto 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 special FTPclient SmartFTPfor access SMB.

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 SMBattributes to OpenLDAP, such attributes are available via imports Samba LDAP schema(schema). The schema already exists in the now-installed SAMBApackage, ldifimported 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

Guess you like

Origin blog.csdn.net/qq_25854057/article/details/126368155