IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

WMS Directory Services - Database Query errors

  • 1.  WMS Directory Services - Database Query errors

    Posted Tue December 23, 2008 07:18 PM

    Hi All,

    I am trying to setup a database directory service.
    myWebMethods >> Directory Services >> Create a new directory service >> Database >> Enter all the data it needs

    While configuring all the quries, I kept getting errors saying the queries are not valid. The document does not explain very well what should be in those query lookups. My tables are very simple, USERS, GROUPS, USERS_GROUPS_MAP, that contain all the fields it needs.

    Finally I got it all work and was able to save the directory service setup.
    Then I am getting errors on User Management >> User page.
    [POP.001.0002] A “java.lang.NullPointerException” occurred with the Message “at com.webMethods.portal.service.dir.DirectoryTools.getUID(DirectoryTools.java:95)”

    This is one example of my query
    Query Search Users
    SELECT * FROM USERS WHERE USER_ID LIKE ‘%’ || ‘{query}’ || ‘%’
    All the queries seem to be valid. What did I do wrong?

    Any one has experience of setting up database directory service?
    Please share some tips.


    #Integration-Server-and-ESB
    #webMethods-Architecture
    #webMethods
    #webMethods-General


  • 2.  RE: WMS Directory Services - Database Query errors

    Posted Thu February 25, 2010 01:17 PM

    I faced the similar situation while setting up database directory service. I was able to solve this problem by prefixing ‘cn=’ to Attribute “dn” value. All the queries also need to be changed accordingly.

    HTH.
    Ovais


    #webMethods-General
    #webMethods
    #webMethods-Architecture
    #Integration-Server-and-ESB


  • 3.  RE: WMS Directory Services - Database Query errors

    Posted Tue October 03, 2017 10:25 AM

    I have also faced this issue and found below solution.

    All the queries should have uid and dc attribute for users and dn respectively. eg. Queries should look like below. This is valid for search query as well.

    select user_id,
    ‘uid=’ || user_id,
    ‘dc=’ || user_id dn,
    LAST_NAME_EN lastName,
    FIRST_NAME_EN firstName,
    (FIRST_NAME_EN || ’ ’ || LAST_NAME_EN) fullName,
    EMAIL_ID email,
    IS_ACTIVE,
    group_id guid,
    group_id gdn,
    group_id gname,
    email_id gemail
    from users
    where lower(user_id) = lower(‘{uid}’)


    #Integration-Server-and-ESB
    #webMethods
    #webMethods-General
    #webMethods-Architecture