5
我将不推荐使用的ldap函数更改为不推荐使用的函数。但我在ldap_sasl_bind_s. It returns error code 49
有问题,这意味着无效的凭据。但我确信凭证是有效的。否则,我加入迁移到不推荐使用的ldap函数时出错
TLS_REQCERT never
TLSVerifyClient never
到/etc/openldap/ldap.conf中。我仍然得到错误。
ldap_simple_bind_s(q->ld, binddn, creds.bv_val); //works well
ldap_sasl_bind_s(q->ld, binddn, LDAP_SASL_SIMPLE , &creds, NULL, NULL, NULL); //returns ldap error code 49 but continues working
的主要问题是:当I M使用ldap_sasl_bind_s,它不绑定所有attrbiutes,我在我的LDAP架构了。另外当我搜索一个现有的属性,它返回NOSUCH错误。
任何帮助,将不胜感激。