【问题标题】:How to change open ldap defalt port in linux如何在linux中更改openldap默认端口
【发布时间】:2020-05-29 22:03:50
【问题描述】:

如何在 Linux 中更改打开的 ldap 默认端口(389)。 我们现在使用默认端口 389 需要将端口更改为新端口。我们该怎么做。

database        mdb                                                                                                         
maxsize         1073741824                                                                                                  
suffix          "dc=example,dc=com"                                                                                         
rootdn          "cn=Manager,dc=example,dc=com"                                                                              
# Cleartext passwords, especially for the rootdn, should                                                                    
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.                                                               
# Use of strong authentication encouraged.                                                                                  
rootpw          secret                                                                                                      
# The database directory MUST exist prior to running slapd AND                                                              
# should only be accessible by the slapd and slap tools.                                                                    
# Mode 700 recommended.                                                                                                     
directory       /usr/local/var/openldap-data                                                                                
# Indices to maintain                                                                                                       
index   objectClass     eq 

【问题讨论】:

    标签: ldap openldap


    【解决方案1】:

    这由-hslapd 的选项控制。在 Debian/Ubuntu 上,这是 /etc/default/slapdSLAPD_SERVICES 选项的值。在其他系统上,它可能位于 systemd 服务的 ExecStart= 行中,或任何地方。

    如果您当前的 slapd 命令类似于:

    slapd -h "ldap:/// ldapi:///" -F /etc/ldap/slapd.d
    

    然后只需更改相关的 URI 以包含所需的端口,例如:

    slapd -h "ldap://:3389/ ldapi:///" -F /etc/ldap/slapd.d
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-05-24
      • 2016-11-02
      • 2011-10-19
      • 1970-01-01
      • 2015-03-11
      • 1970-01-01
      • 2019-09-08
      • 2021-09-03
      相关资源
      最近更新 更多