zoukankan      html  css  js  c++  java
  • ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

    [root@ldaptest openldap]# ldapadd -x -D "cn=admin,dc=ultrapower,dc=com" -W -f /tmp/base.ldif
    Enter LDAP Password:
    ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
    [root@ldaptest openldap]# ldapadd -x -D "cn=admin,dc=ultrapower,dc=com" -W -f /tmp/group.ldif
    Enter LDAP Password:
    ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

    出现这个错误的时候,查看服务和端口都已经开启了,需要你手动指定主机名和你的端口号(ldap端口号为389),使用-h 加上主机名。

    [root@ldaptest openldap]#  ldapadd -x -D "cn=admin,dc=ultrapower,dc=com" -W -f /tmp/base.ldif -h ldaptest.ultrapower.com -p 389
    Enter LDAP Password: 
    adding new entry "dc=ultrapower,dc=com"
    
    adding new entry "ou=Hosts,dc=ultrapower,dc=com"
    
    adding new entry "ou=Rpc,dc=ultrapower,dc=com"
    
    adding new entry "ou=Services,dc=ultrapower,dc=com"
    
    adding new entry "nisMapName=netgroup.byuser,dc=ultrapower,dc=com"
    
    adding new entry "ou=Mounts,dc=ultrapower,dc=com"
    
    adding new entry "ou=Networks,dc=ultrapower,dc=com"
    
    adding new entry "ou=People,dc=ultrapower,dc=com"
    
    adding new entry "ou=Group,dc=ultrapower,dc=com"
    ……
  • 相关阅读:
    centos7添加firewalld规则
    centos7安装redis5
    Oracle 监听
    创建Oracle表空间及用户
    nginx+keepalive
    oracle 修改端口
    Oracle新建数据库
    Redhat7.5安装JBOSS4.2.0
    kubernetes的一些基本命令
    安装python3.6后使用pip报错
  • 原文地址:https://www.cnblogs.com/rusking/p/8035212.html
Copyright © 2011-2022 走看看