私はWSO2 ESBのAPIとして特定のLDAPクエリを公開しています。私はこれにLDAPコネクタを使用しています(https://docs.wso2.com/display/ESBCONNECTORS/LDAP+Connector)。WSO2 LDAPコネクタはオブジェクトカテゴリを検索できませんコンピュータ
LDAPクエリの下で正常に公開できました。
{
"providerUrl":"ldap://xx.x.xxx.xx:xxxx",
"securityPrincipal":"CN=LdapUser,OU=Service Accounts,OU=ATC atcName,DC=company,DC=com",
"securityCredentials":"pass_goes_here",
"secureConnection":"false",
"disableSSLCertificateChecking":"false",
"application":"ldap",
"operation":"searchEntity",
"content":{
"dn":"DC=company,DC=com",
"objectClass":"user",
"attributes":"sAMAccountName",
"filters":"(&(objectClass=user)(sAMAccountName=ykarunarathna))"
}
}
Respose:
{
"result": {
"entry": {
"dn": "CN=Yasas Karunarathna,OU=xxxxxx,OU=xxxxxxx,OU=ATC atcName,DC=company,DC=com",
"sAMAccountName": "ykarunarathna"
}
}
}
しかし、私は、LDAP検索の下にしようとしたとき、私はC#のコードでそれをしようとすると、同じクエリが有効な結果を返しますが、それはヌル結果に
{
"providerUrl":"ldap://xx.x.xxx.xx:xxxx",
"securityPrincipal":"CN=LdapUser,OU=Service Accounts,OU=ATC atcName,DC=company,DC=com",
"securityCredentials":"pass_goes_here",
"secureConnection":"false",
"disableSSLCertificateChecking":"false",
"application":"ldap",
"operation":"searchEntity",
"content":{
"dn":"DC=company,DC=com",
"objectClass":"Computer",
"attributes":"cn",
"filters":"(&(extensionattribute15=*)(objectCategory=CN=Computer,CN=Schema,CN=Configuration,DC=company,DC=com))"
}
}
Response:
{
"result": null
}
を与えます。
(&(extensionattribute15=*)(objectCategory=CN=Computer,CN=Schema,CN=Configuration,DC=company,DC=com))
私に何かが不足していますか? ありがとうございます。