User Parameter (Connect-LDAP Cmdlet)
Specifies the distinguished name (DN) of the user account to be used for authentication with the LDAP server. This property is required when the server enforces authentication.
Syntax
Connect-LDAP -User string
Data Type
cstr
Default Value
""
Remarks
This property is used, along with the Password property, to authenticate against the LDAP server. The value must be the full distinguished name (DN) of the user account, such as "CN=John Doe,OU=Users,DC=example,DC=com". Ensure the value matches the DN format expected by the LDAP server to avoid authentication failures.
This is a required parameter.