Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

Warning

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8 for Server/Data Center? Click here !

Info
titleAvailability

This routine is available starting with katl-commons SIL Engine™ 3.0.

Syntax

ldapUserStruct(ldapQuery[, ldapName])

...

Excerpt

Returns an array of JLdapUserStruct representing all users matched by the query.

Parameters

Parameter name

Type

Required

Description

ldapQuery

string

yes

the query

Query, must return exactly one result.

ldapNamestringnoOptional,
from
starting with version 4.0, you can specify
which
the LDAP server that must be searched. If missing, it's the default LDAP server.

Returns

JLdapUserStruct []

Each element in the array represents an a user. The attributes field of the JLdapUserStruct is also keyed by the attribute name for easy access of to attributes. Each attribute is a JLdapUserAttribute. The "value" field of the attribute is a string array. If the attribute only has one value, the array will contain only one element, but will still be an array and not a single string.

...

Code Block
JLdapUserStruct [] users = ldapUserStruct("objectClass=inetOrgPerson");
for(JLdapUserStruct u in users) {
    print(u.DN);
    for(JLdapUserAttribute attr in u.attributes) {
        print(attr.name + " = " + attr.value);
    }
    print("ID is : " + u.attributes["uid"].value);
}

...


Notes

Note

LDAP must be configured (see . See LDAP configuration page).

Warning

Only Microsoft Active Directory is supported at this time, but it might work with others other as well (tested with OpenDS). To provide support for other LDAP types , please contact us.

...


See also

Filter by label (Content by label)
showLabelsfalse
showSpacefalse
cqllabel = "ldap_support"
labelsldap_support