Integrator OpenLDAPService Retrieve Attributes

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
jyoung
Posts: 694
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

Integrator OpenLDAPService Retrieve Attributes

Post by jyoung »

Is it possible to retrieve other attributes from the OpenLDAPService SEARCH command?

I have a search and its working (partly http://vlforum.lansa.com.au/viewtopic.php?f=3&t=1387) but it only brings back the DN.

I need to get access to other attributes like the UPN, sAMaccountName etc..
jyoung
Posts: 694
Joined: Thu Jan 21, 2016 6:43 am
Location: Oklahoma City, OK USA

Re: Integrator OpenLDAPService Retrieve Attributes

Post by jyoung »

The OpenLDAPService has a GET command that can be used to "get" the attributes. http://docs.lansa.com/14/EN/lansa093/in ... 7_2825.htm

Did not see this before, the critical point for me is the requirement of the DN for the entity.

If you don't know the DN, you have to search for it using a filter, then use the DN from the search to get the attributes.

Code: Select all

def_list name(#AttributeList) fields(#STD_TEXTL #STD_STRNG) type(*WORKING) entrys(*MAX)

#JSMXCMD := ('GET DN(&1) ATTRIBUTES(CN, GIVENNAME, DISPLAYNAME) SERVICE_LIST(STD_TEXTL STD_STRNG)').Substitute( #DN )
use builtin(JSMX_COMMAND) with_args(#JSMXHDLE #JSMXCMD) to_get(#JSMXSTS #JSMXMSG #AttributeList)
Post Reply