Skip to Content
0
Former Member
May 23, 2007 at 02:31 PM

IService LDAP errors

40 Views

Env: EP7 SP11 Users from MS Active Directory

I want to retrieve some attributes of a SAP System in the EP. In order to access the system I use ISystems. When I perform the casting

ISystems systems = (ISystems) service;

I do get an LDAP error (see below).

Any hint what I am doing wrong or how to workaround the problem?

My goal ist to retrieve a system by its alias name and obtain its server name.

Complete code:

IPortalRuntimeResources rtResources = PortalRuntime.getRuntimeResources();
IService service = rtResources.getService(ISystems.KEY);
response.write(service.getClass().getName());
ISystems systems = (ISystems) service;  <---- LDAP exception

Error:

#1.5#000F1F65B402005C0000015600001684000430BE96D316F7#1179495039166#com.sap.security.core.persistence#sap.com/irj#com.sap.security.core.persistence#uwe.weiss#18738##ep_FDZ_15270450#uwe.weiss#f6cd7540054311dc8d7a000f1f65b402#SAPEngine_Application_Thread[impl:3]_52##0#0#Error#1#/System/Security/Usermanagement#Java#DataSource {0}: Problem when searching for principals with searchfilter {1}##DataSource {0}: Problem when searching for principals with searchfilter {1}#2#CORP_LDAP#(&(objectclass=organizationalunit)(ou=GRUP.SUPER_GROUPS_DATASOURCE.Anonymous Users))#
#1.5#000F1F65B402005E000000F600001684000430BED58C9811#1179496091387#com.sap.security.core.persistence#sap.com/irj#com.sap.security.core.persistence.[cf=com.sap.security.core.persistence.datasource.imp.LDAPPersistence][md=performSimpleSearch][cl=21587]#frank.torst#18530##ep_FDZ_15270450#frank.torst#ab9c69c0054111dc92c8000f1f65b402#SAPEngine_Application_Thread[impl:3]_56##0#0#Error##Java###Naming exception when searching for a principal with filter (&(objectclass=organizationalunit)(ou=Anonymous Users))
[EXCEPTION]
{0}#1#javax.naming.NameNotFoundException: [LDAP: error code 32 - 0000208D: NameErr: DSID-03100193, problem 2001 (NO_OBJECT), data 0, best match of:
''
]; remaining name ''
at com.sun.jndi.ldap.LdapCtx.mapErrorCode(LdapCtx.java:3013)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2934)