VarjuOrg

Linux / Windows – what's the difference…

SAP – RFC connection for LDAP

Recently we had a need for enabling RFC for LDAP for two way communication between SAP and  AD.
Here are steps and document that was got from SCN:

Configuring LDAP Connector
1. Create and RFC of connector T-Type
Note: It is recommended to use the following naming convention: LDAP_<server_name>.
If there are multiple LDAP connectors on one server then use: LDAP_<server_name>_<sequence_number> Example: LDAP_SERVER_01
2. Select Registered server program as activation type
3. Specify the Program ID same as the RFC destination.
4. Save your entries.

NB! There might be issues where program is not automatically registered . for that do following:
1. For libldap.so not found error I used:
Note 1380245 – Linux: libldap.so not found
New symlink’s were needed:
ln -s /usr/lib64/libldap-2.3.so.0.2.31 /usr/lib64/libldap.so.199
ln -s /usr/lib64/liblber-2.3.so.0.2.31 /usr/lib64/liblber.so.199

2. For connector not registered:
ldap_rfc -a <your_program_id> -g <your_program_host> -x <your_gateway> &

More on LDAP_RFC: http://scn.sap.com/thread/1096452

Defining System Users
The communication user (Example: TestUser) has to be maintained in the LDAP server which used by the LDAP connector to bind to the LDAP Directory Server.
1. Access the LDAP Connector via Tcode “LDAP” choose System Users
2. Switch to change mode and choose New Entries
3. Enter the required data and Save the entries.

Defining Server Details
Create a new logical LDAP Server. Here you have to maintain the connection details of the physical directory
1. On the initial screen of LDAP choose Server and switch to change mode.
2. Choose New Entries and Enter the required data and Save Entries

Logging on to the Directory Service
Now you must check the connection to the directory service by logging on to it.
1. In the initial screen of the LDAP transaction, specify the LDAP server name and the LDAP connector.
2. Press Logon
3. Provide the System User or enter the directory service user and password.
4. Choose Execute.

Reference:
Integration_LDAP_SAP

, , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *