Quantcast
Viewing all articles
Browse latest Browse all 3876

"Calculated UME LDAP id is null" error received during runtime.

Hello All,

I am new to this community and this is my first post.
Therefore please pardon me for providing inadequate explanation/resources while mentioning my problem.

 

I am trying to build a SOAP webservice in SAP NetWeaver Developer Studio 7.3. This webservice will be used for integration between SAP user management  (AS Java)  with Dell's Quest Identity Management (Q1IM).

The webservice will be used for

Fetching

-> All UME Users

-> All UME Groups

-> All UME Roles

Add/Delete

-> User to/from Group

-> User to/from Role

Change

-> User Account Details

 

The current scenario is the webservice built in Java is ready and all the functional components are working fine during runtime except for one and that is when I try to retrieve all the UME Users.

Below mentioned piece of code is for getAllUser function

 

    public  SAPUser[] getAllUsers() throws UMException {

    IUserFactory userFactory = UMFactory.getUserFactory();

    IUserSearchFilter searchFilter = userFactory.getUserSearchFilter();

    searchFilter.setDisplayName("*", ISearchAttribute.LIKE_OPERATOR, false);

    ISearchResult searchResult = userFactory.searchUsers(searchFilter);

    ArrayList<SAPUser> ar = new ArrayList<SAPUser>();   

    while (searchResult.hasNext())

    {

    String uniqueid = searchResult.next().toString();

    if (uniqueid.startsWith("USER.PRIVATE_DATASOURCE.un"))

    {

        IUser user = userFactory.getUser(uniqueid);

        IUserAccount[] userAcc = user.getUserAccounts();

        for (int i = 0; i<userAcc.length;i++)

        {

        ar.add(new SAPUser(userAcc[i]));

        }

    }

    }

    SAPUser[] users = new SAPUser[ar.size()];

  return ar.toArray(users); 

    }

 

Similar logic have been used for Groups and Roles and they are working fine.

 

During runtime it gives following error

Web service returned error. Fault Code: "(http://schemas.xmlsoap.org/soap/envelope/)Server" Fault String: "Calculated UME LDAP id is null"

(Screenshot has also been attached)

I tried searching for a solution on internet and specially on SAP SCN but couldn't come across any suitable option.

Thereby my request to member-experts of this forum to please look into my matter mentioned above and provide some appropriate solution for it.

 

Thanks in advance.

Regards,

Tanuj Jaitly


Viewing all articles
Browse latest Browse all 3876

Trending Articles