2016-09-12 5 views
0

私は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)) 

私に何かが不足していますか? ありがとうございます。

答えて

0

問題がカスタムLDAPセットアップに関連しているため、これを調べることができません。私はあなたがsearchEntry操作を使用したと仮定します。私たちは内部的にこのためにJavaを使用しており、あなたは次のURLで関連するコードを見つけることができます。

https://github.com/wso2-extensions/esb-connector-ldap/blob/master/src/main/java/org/wso2/carbon/connector/ldap/SearchEntry.java

ご使用の環境でデバッグしようとすることはできますか?

関連する問題