cancel
Showing results for 
Search instead for 
Did you mean: 

LDAP object..

vijay_b4
Active Contributor
0 Kudos

Hi,

Can anybody explain me what this LDAP Object does? There is a udf existing, which is developed by someone long back...can anybody explain me exactly what this LDAP used for?

String username; String sRes; GISLDAPRead ob; //Query AD for Microsoft Project UserId to Peoplesoft EmployeeID Convert username = sWRESAccount.trim().substring(sWRESAccount.length()-7,sWRESAccount.length()); ob = new GISLDAPRead(); sRes = ob.queryAdUserID("ldapquery", username, ); if ((sRes.contains(":")) && (sRes.contains("}"))) sRes = sRes.substring(sRes.indexOf(':')+2,sRes.indexOf('}')).trim(); return sRes;

Thank you,

Vijay

former_member194786
Active Contributor
0 Kudos

Hi Vijay,

Can you check if there is any archives imported in the message mapping that is being referenced here?

I don't think about code will directly set up a connection to LDAP. It must be accessing some API.

Regards,

Sanjeev

vijay_b4
Active Contributor
0 Kudos

Thanks Sanjeev. Yes there is an imported archive...so in this code, exactly from where the LDAP is pulling the information from..and if I want to look at that information..then where do i have to look.

Accepted Solutions (0)

Answers (6)

Answers (6)

former_member194786
Active Contributor
0 Kudos

Hi Vijay,

Assuming that sWRESAccount is an input to the UDF, I think what this code is doing is to get the username and then pass it to the queryAdUserID method:

sRes = ob.queryAdUserID("ldapquery", username, );

So, I would suggest to check in the imported archive for a method queryAdUserID. That code should have the connection details to LDAP, if javax has been used to establish the connection. Refer to the link that Raghu has provided earlier for the javax related code to connect to LDAP.

Else, there is a standard SAP API to retrieve information from LDAP (provided SAP PI is connected to it, you should be able to see user details in NWA identity management). SAP Java docs link:

http://help.sap.com/javadocs/nw04s/sps09/se/com/sap/security/api/IUserFactory.html

Regards,

Sanjeev

vijay_b4
Active Contributor
0 Kudos

Thanks Sanjeev. Yes there is an imported archive...so in this code, exactly from where the LDAP is pulling the information from..and if I want to look at that information..then where do i have to look.

vijay_b4
Active Contributor
0 Kudos

Its JDBC to SOAP interface

former_member186851
Active Contributor
0 Kudos

Hello Vijay,

What is the scenario and where your using it?

AFAIK in this UDF it is passed as query-ldapquery

vijay_b4
Active Contributor
0 Kudos

Thanks Raghu..Where do we have to mention the connection details for LDAP?

former_member186851
Active Contributor
0 Kudos

Hello Vijay,

LDAP in Java is used to access directories.

In this case As per my knowledge your accessing some microsoft directory

http://www.javaworld.com/article/2076073/java-web-development/ldap-and-jndi--together-forever.html