通过端口 636 将 samba 与 Active Directory 连接

通过端口 636 将 samba 与 Active Directory 连接

我尝试通过端口 636 将我的 samba v3 与 Active Directory 连接以获得安全 ldap,但每次运行命令 net ads info 时,结果都是通过端口 389

root@articaproxy:~# net ads info
LDAP server: 192.168.0.103
LDAP server name: dc01.abolinhas.home
Realm: ABOLINHAS.HOME
Bind Path: dc=ABOLINHAS,dc=HOME
LDAP port: 389
Server time: Wed, 12 Feb 2020 15:28:40 WET
KDC server: 192.168.0.103
Server time offset: 0

我的 smb.conf

[global]
        ldap ssl = start tls
        ldap ssl ads = yes

我该如何解决这个问题才能在 636 上运行网络广告?

答案1

您必须更改的是 LDAP 端口,而不是您的 Samba。因此,如果您访问 ldap.conf,您将能够指定端口。

该文件通常位于/etc/ldap/但各种发行版确实将其放置在不同的文件夹中。

https://linux.die.net/man/5/ldap.conf

相关内容