Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | ldapUserRecord(attrib, ldapQuery) | Package | ldap | Alias | ldapUserRecord(attrib, cn, dn, memberof, email, ldapObjectClass) - Deprecated//deprecated | Pkg Usage | userRecord(attrib, ldapQuery) | |
Warning |
---|
This syntax is deprecated and you should use the new alias name: ldapUserAttr instead. |
Description
Excerpt |
---|
|
Returns an array of the requested attribute. |
Returns an array of the requested attribute. This is a LDAP search routine. The second routine syntax is more comfortable. Both get the LDAP record and shows the attribute of that user. Returned user must be unique, otherwise exception occurs.
Allowed attributes are (these are case sensitive):
- CN
- DN
- firstName
- lastName
- displayName
- title
- department
- division
- officeName (mapped on physicalDeliveryOfficeName attribute)
- company
- empID
- manager
- mail
- otherMailbox
- mobile
- homePhone
- workPhone
- userPrincipalName
- winPrincipalName
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
attrib | String | Yes | Attribute to be returned. | ldapQuery | String | Yes | Query, must return exactly one result. | |
...
Code Block |
---|
|
string email = ldapUserRecord("mail", "(&(uid=user.1)(objectClass=inetOrgPerson))");
string address = ldapUserRecord("postalAddress", "(&(uid=user.1)(objectClass=inetOrgPerson))"); |
Note |
---|
LDAP must be configured. See LDAP configuration page. Only Microsoft Active Directory is supported at this time, but it might work with other as well (tested with OpenDS). To provide support for other LDAP types contact us. |
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "system_routine" and space = currentSpace ( ) |
---|
labels | array_routines |
---|
|