LDvalue
Top  Previous  Next


Returns any Linux directory object property from directory path

The function returns nothing if the property is not found or if an error occurs. Check the log window for error messages.

A connection must be established with Lin.DS.Logon before LDvalue can be used.

Requirements
·Linux server with OpenLDAP 2.0 or higher, configured to accept SSL connections on port 636.  
·A locally installed SSL certificate.  

LDValue (LDSpath, Property)
 
LDSpath
Full directory path to object  
 
Property
Property to read  
 
See Lin.DS.Op.SetProperty for some common properties  
 
The easiest way to find out correct property names for accounts is probably to use SetupExplorer, see How to display all existing properties for one account  

Example
Show gidNumber for an account

Set
 gidNumber=LDValue (dc=com/dc=my-domain/ou=People/uid=MyAccount, gidNumber)
If "%gidNumber%"<> Then   
 MessageBox %gidNumber%
Else   
 MessageBox Not found   
EndIf