ldapadd出現ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)

ldapadd -W -x -D "cn=manager,dc=westos.org" -f init.ldif
Enter LDAP Password:
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)ide

出現這個錯誤的時候,查看服務和端口都已經開啓了,須要你手動指定主機名和你的端口號(ldap端口號爲389)post

[root@desktop88 docs]# ldapadd -W -x -D "cn=manager,dc=westos.org" -f init.ldif -h desktop88.example.com -
p 389
Enter LDAP Password:
adding new entry "dc=westos.org"
adding new entry "cn=Manager,dc=westos.org"
adding new entry "o=extmailAccount,dc=westos.org"
adding new entry "o=extmailAlias,dc=westos.org"
adding new entry "o=extmailManager,dc=westos.org"
adding new entry "virtualDomain=westos.org, o=extmailAccount, dc=westos.org"
adding new entry "mail=postmaster@westos.org, virtualDomain=westos.org, o=extmailAccount, dc=westos.org"
adding new entry "mailLocalAddress=support@westos.org, o=extmailAlias, dc=westos.org"
adding new entry "mail=root@westos.org, o=extmailManager, dc=westos.org"spa

相關文章
相關標籤/搜索