cancel
Showing results for 
Search instead for 
Did you mean: 

Users in ldap datasource not downlaoded using the UME APIs'

Former Member
0 Kudos

Hi ,

We have installed the SAP Enterprise Portal 7.0 using external LDAP as the account data source.

I am using the following java code to fetch the accounts

IUserFactory userFact = null;

IUserSearchFilter userFilt = null;

ISearchResult result = null;

try{

userFact = UMFactory.getUserFactory();

userFilt = userFact.getUserSearchFilter();

userFilt.setUniqueName(prefix, ISearchAttribute.LIKE_OPERATOR, false);

result = userFact.searchUsers(userFilt);

}

catch(Exception e)

{

//handle exception

}

if (result.getState() == ISearchResult.SEARCH_RESULT_OK){

uidList = new ArrayList();

while (result.hasNext())

uidList.add(result.next());

}

But no accounts are returned and no exception is thrown.

Note:

I can see the users from the Portal.This mean that the datsource configuation file looks proper.

Also if the backend is pointed to "SAP Web AS ABAP User Management as Data Source",the users are fetched properly.

Best Regards

Manoj

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

We need to check the return code till we get the OK state ,else we know that we need to go on fetching the users

nitin_mahajan2
Contributor
0 Kudos

Could you put some wdComponentAPI statements and try to print the output at different places. See what is the output.

I am using the LDAP and it works fine for me.

Regards,

Nitin