Cmdlets for LDAP

Build 25.0.9434

BaseDN Parameter (Connect-LDAP Cmdlet)

Specifies the base portion of the distinguished name (DN) to limit LDAP queries to a specific subtree within the directory. Using a base DN helps narrow the search scope and improve query performance, especially on large LDAP servers.

Syntax

Connect-LDAP -BaseDN string

Data Type

cstr

Default Value

""

Remarks

This property sets the starting point for LDAP searches by specifying the base DN. By limiting the search to a specific subtree, the number of entries examined is significantly reduced, which can greatly improve performance on large servers. The value should be a valid DN, such as "DC=example,DC=com", that represents the desired subtree. If left blank, the search scope is not restricted and applies to the entire directory.

This is a required parameter.

Copyright (c) 2025 CData Software, Inc. - All rights reserved.
Build 25.0.9434