Hi,
Thanks to Durai Raja for his earlier inputs in setting up LDAP connector in SAP. We were able to connect to our LDAP from SAP ( We use Novell eDirectory 8.5).
I also wrote a small program as below and I am getting back results from LDAP. We want to build BSP application where users would enter LDAP User ID and password and we want to Authenticate BSP application based on this input. My questions are
1) Is it possible to Authenticate BSP application based on LDAP user ID and password.
2) IF so, what is the function module to use. I searched LDAP_* but did not find anything.
3) If we authenticate using LDAP user ID and password, do we have to provide SAP User id and password in SICF and allow all users to log in using same SAP user ID and password ?
Niranjan
**********************************
data: dns_out type table of ldap_dnii,
ldapinfo type ldap_dnii,
attrs_io type table of ldap_atii.
call function 'LDAP_SIMPLEBIND'
exporting
serverid = 'HQLDAP'. " Logical Server ID set in LDAP tcode
if sy-subrc eq 0.
call function 'LDAP_SEARCH'
exporting
base = 'o=xxxxxxxx' " Company's Base
filter = 'uid=xxxxxxxx' " Novell User ID or LDAP user ID
tables
dns_out = dns_out
attrs_io = attrs_io.
if sy-subrc eq 0.
loop at dns_out into ldapinfo.
endloop.
endif.
endif.