LassoScript Utility
Basics Browse Detail

[LDAP]

Tag Link [LDAP] Category LDAP
Type Substitution Source Available No
Support Preferred Version 8.5
Change New Data Source Any
Output Type LDAP Security None
Implementation Internal Sets Lasso 8.5

Description

[LDAP] creates a new LDAP object. Accepts an optional host name and port to immediately open a connection to a server.

Syntax

<?LassoScript
Var: 'myLDAP' = LDAP;
$myLDAP->(Open: 'ldap.example.com');
$myLDAP->(Authenticate: 'myusername', 'mysecretpassword');
Var: 'myResult' = $myLDAP->(Search: 'dc=example,dc=com';
LDAP_Scope_Subtree, '(objectClass=*)', (Array: '*'), False);
$myLDAP->Close;
?>

Parameters

Optional Parameters
Host Name The host name of the LDAP server.
Port The port for the LDAP server.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.