06-05-2012 10:23 AM
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
05-08-2014 12:41 AM
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
05-08-2014 12:41 AM
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
05-08-2014 1:22 AM
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
05-14-2014 5:43 AM
Hi Shobana,
Mark it as Correct Answer if your issue is resolved.
Regards,
Murthy