LassoScript Utility
Basics Browse Detail


Tag Link [LDAP->Code] Category LDAP
Type Member Source Available No
Support Preferred Version 8.5.1
Change New Data Source Any
Output Type Integer Security None
Implementation Internal Sets Lasso 8.5


[LDAP-> Code] returns the result code for the last LDAP operation. The code will be 0 for success. Values greater than 0 do not necessarily indicate an error. Some values are strictly informative. See the Lasso Language Guide or a guide to LDAP for a list of possible result code.


Var: 'myLDAP' = LDAP;
$myLDAP->(Open: '');
$myLDAP->(Authenticate: 'myusername', 'mysecretpassword');
$myLDAP->(Search: 'dc=example,dc=com'; LDAP_Scope_Subtree, '(objectClass=*)');
Var: 'myCode' = $myLDAP->(Code);


No Parameters Required.

Change Notes

This tag was added in Lasso 8.5.1.


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