2016-09-12 1 views
0

WSO2 ESB에서 특정 LDAP 쿼리 집합을 API로 공개하고 있습니다. 이 (https://docs.wso2.com/display/ESBCONNECTORS/LDAP+Connector) LDAP 커넥터를 사용하고 있습니다.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 검색 아래하려고 할 때 그것을 제공 널 (null) 결과
{ 
    "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 
} 

나는 C# 코드에 그것을 시도 할 때 동일한 쿼리가 올바른 결과를 반환하는 동안

.

(&(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

당신은 당신의 환경에서 디버깅하려고 할 수 있습니까?

관련 문제