Skip to main content
 首页 » 编程设计

command-line之无法绑定(bind)成功连接

2025年05月04日69lvdongjie

我正在尝试使用 OpenLDAP 测试与 AD 的连接,这是我在命令行上尝试的:

/usr/bin/ldapsearch -h names.myorg.com \ 
    -p 389 \ 
    -D "cn=conapps readonly,cn=users,dc=myorg,dc=com" \ 
    -LLL \ 
    -x \ 
    -b "ou=MyOrg Staff,ou=People,dc=myorg,dc=com" \ 
    -s sub "(objectClass=*)" DN sn givenName mail userPrincipalName employeeID usertype \ 
    -W 
但是,我不断收到以下错误:
Operations error (1) 
Additional information: 00000000: LdapErr: DSID-0C090627, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, vece 
谁能看到我做错了什么?

请您参考如下方法:

请尝试使用端口 3268,请参阅 http://technet.microsoft.com/en-us/library/cc978012.aspx了解更多信息

这个命令对我有用:

$ ldapsearch -x -LLL -H ldap://test.com:3268 -dbc=test,dc=com -D 'DOMAIN\username' -W name=username dn