Wiki source code of LDAP query


Show last authors
1 {{figure image="ldap_statements_en.png" clear="h1"}}
2 Configuration interface of the action //LDAP query//
3 {{/figure}}
4
5 Actions of type //LDAP query// allows to execute an LDAP query against an LDAP server in order to retrieve data from that server. For this purpose, an LDAP connection must have been previously configured in the system. Furthermore, it is possible to filter the return values so that only the required attributes are returned.
6
7 == Parameters ==
8
9 === LDAP query details ===
10
11 ; Use configured LDAP query?
12 : If this option is selected, a LDAP query preconfigured in the backend can be selected. Additionally, details about the query are displayed.
13 ; Base DN
14 : Specification of the root directory of the Active Directory defined for the search.
15 ; LDAP query
16 : Text field for the LDAP query.
17 ; Filter for return values
18 : Attributes can be added via the plus icon, which are to be delivered with the LDAP query.
19
20 == Action variables ==
21
22 Actions of type //LDAP query// provide [[Action variables>>Formcycle.UserInterface.Variables||anchor="HActionvariables"]] which can be used in subsequent actions.
23
24 === Standard action variables ===
25
26 ; [%$<action name>.SUCCESS%]
27 : Return whether action was successfully executed. Returns Boolean (true/false).
28 ; [%$<action name>.RESULT%]
29 : Return all results provided by the action in structured form.
30
31 ; [%$<action name>.ERROR_CODE%]
32 : The error code thrown in case of an error in the action. Empty if no error occurred.
33 ; [%$<action name>.ERROR_MESSAGE%]
34 : The thrown error message in the action's error case. Empty if no error occurred.
35
36 === Action specific action variables ===
37
38 ; [%$<actionname>.RESULT.rows[i]%]
39 : Contains the results obtained by the query in the form of a JSON array, which may contain JSON objects. The properties / attributes of a JSON object, is determined by the returned properties of the LDAP object determined in each case.
40 ; [%$<action name>.RESULT.rowsCount%]
41 : Number of rows returned by the query execution. Has the value 0 if the query returned no results or an error occurred.