Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

No data found when execute ldap_read FM

chinna_babu2
Active Participant
0 Kudos

Dear Experts,

I am having trouble reading data from LDAP server. When I run ldap_read function module with base entry as 'dc=domain, dc=com' and filter as (&(objectClass=*)) it returns all the entries, but when I search any user from that data I couldn't find any user.

When I chnaged base entry to 'OU=Accounts,dc=domain,dc=com' and filter as (&(objectClass=*)) it returns back the same base entry in the table with no data in the attributes table.

I tried running the find operation from ldap transaction, I got the same result as ldap_read.

How can I get the particular user/all users email address by using this FM and what could be the wrong with the parameters that I am passing to FM.

Regards

Murthy

1 ACCEPTED SOLUTION

Former Member
0 Kudos


Hi,

Were you able to resolve this error. I am facing the same issue in reading Email address from LDAP. LDAP MAP is done and LDAP Server configuration is also done. Please let me know how you got this resolved.

Thanks,

Shobana

3 REPLIES 3

Former Member
0 Kudos


Hi,

Were you able to resolve this error. I am facing the same issue in reading Email address from LDAP. LDAP MAP is done and LDAP Server configuration is also done. Please let me know how you got this resolved.

Thanks,

Shobana

0 Kudos

Hi Shobana,

Before calling the LDAP _READ fm, you would need call below the function modules to authenticate with the LDAP.

FM -- RFC_PING.

If RFC ping is not success call FM --  SXPG_STEP_XPG_START to start the connector. Check inf RFC Ping is success or not by calling the FM -- RFC_PING.

Check RFC Destination for LDAP using FM -  LDAP_CHECKIN_RFCDEST

Bind the FM by calling -  LDAP_SIMPLEBIND.

call LDAP _READ and call  LDAP_UNBIND.

Above all please make sure you have the LDAP connector and RFC destination properly configured in your SAP system.

Regards,

Murthy

0 Kudos

Hi Shobana,


Mark it as Correct Answer if your issue is resolved.


Regards,

Murthy