on 05-19-2009 11:30 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.