LDpathFind
Top  Previous  Next


Finds out LD path for an object from any unique property

An empty string is returned if there are no match or more than one match (first three matches are displayed in log window).

Use the LD path with Linux commands such as Lin.DS.Op.Init

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.  

LDpathFind (Container, ObjectType, SearchFilter, IncludeSubContainers)

Container
Full LD path to container to search  

ObjectType
Type of object to find  
Example: posixAccount, posixGroup etc.  

SearchFilter
Format property=value  

Examples  
SearchFilter
Description
cn=steve
The object "steve".
sn=steve
The object with surname "steve"
homePhone=1234567
The object with telephone number "1234567"
mail=steve@acme.com
The object with email address "steve@acme.com"
 
 
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.  

IncludeSubContainers
Options Yes | No  
· Yes - objects in subcontainers should be included in search  
· No - objects in subcontainers should not be included in search  
 
Use Container=BaseDN and IncludeSubContainers=Yes for entire tree.  

Example
MessageBox ldpathfind(dc=com/dc=my-domain,posixAccount,uid=root,yes)

Displays "dc=com/dc=my-domain/ou=users/uid=root"