cancel
Showing results for 
Search instead for 
Did you mean: 

LDAP Search Returns no Results

Former Member
0 Kudos

I have configured the LDAP connector in an ECC 6.0 system. However when I perform an search from the LDAP transaction I receive a generic operation failed error - Message no. LDAPRC00.

I am able to perform the same search using ldp and I receive the expected results.

I turned up the trace on the LDAP connector to maximum and I was able to capture the follwoing information;

[Thu May 08 09:07:29 2008] Thread 1592 (LDAPRFC_SEARCH, 1159)

LDAPRFC_SEARCH (RFC handle 1) starting

[Thu May 08 09:07:29 2008] Thread 1592 (TraceRfcGetData, 1866)

Received data

KEY (I): 934546112

BASE (C):

SCOPE (I): 2

MODE (I): 2

FILTER (C):

TO_SEC (I): 500

TO_USEC (I): 0

FILTER_STRING (S): (&(objectClass=user)(userPrincipalName=user(at)corp.company.com))

BASE_STRING (S): DC=corp,DC=company,DC=com

Table DNS_OUT ( 0 lines)

Table ATTRS_IO ( 1 lines)

1: sAMAccountName | 0 | 0

Table VALUES_OUT ( 0 lines)

[Thu May 08 09:07:29 2008] Thread 1592 (ABAPsearch, 1342)

Slot 0 (USER): >>> ldap_search_sU(base="DC=corp,DC=company,DC=com", filter="(&(objectClass=user)(userPrincipalName=user(at)corp.company.com))", scope=2)

[Thu May 08 09:07:29 2008] Thread 1592 (ABAPsearch, 1360)

Slot 0 (USER): <<< ldap_search_sU() == 1

[Thu May 08 09:07:29 2008] Thread 1592 (TraceRfcSendData, 1893)

Sending data

LDAPRC (I): 1

Table DNS_OUT ( 0 lines)

Table ATTRS_IO ( 1 lines)

1: sAMAccountName | 0 | 0

Table VALUES_OUT ( 0 lines)

[Thu May 08 09:07:29 2008] Thread 1592 (LDAPRFC_SEARCH, 1302)

LDAPRFC_SEARCH (RFC handle 1) done

I am just not getting any values back from the AD. If were some kind of connection error I would expect to see something different in the trace file.

I excpected to see a function module called LDAPRFC_SEARCH that I could debug, but I found no such function module or program. Maybe I misunderstand what LDAPRFC_SEARCH is.

Anyone have any ideas why I am not seeing any results returned from the AD? I am reaching the limits of what I can use to debug the issue.

Thanks.

Michael

Accepted Solutions (0)

Answers (1)

Answers (1)

nanda_veera
Explorer
0 Kudos

Hi Michael,

I am also facing the similar issue. Have you resolved your issue? If so pls let me know the way that you have resolved.

Is it a config issue or coding issue. The function module LDAPRFC_SEARCH is a RFC function module not defined in SAP.

Anyways if you have any sample code, pls post in this thread.

Awaiting for your reply.

Regards,

Nanda.