Out of interest how are you planning to block the use of LDAP and what changes are you planning to make so clients only connect on LDAPS/636?
Gary.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Team,
We are using following powershell cmdlets to get user info.
$AccountName = "Shashidhar.Joliholi"
$Query = "(&(objectClass=user)(objectCategory=person)(samAccountName=$AccountName))"
$UserInfo = Get-ADUser -LDAPFilter $Query
We are planning to block LDAP and go with LDAPS in DCs. does it impact above powershell script. if yes, what modification need to be done on the powershell cmdlets to use LDAPS to get $UserInfo.
can i use $UserInfo = Get-ADUser -LDAPFilter $Query -server dc.domain.com:636 ?
Need your help!
Thanks,
Shashidhar Joliholi
Out of interest how are you planning to block the use of LDAP and what changes are you planning to make so clients only connect on LDAPS/636?
Gary.
Hi @shashidhar joliholi ,
No matter if you are using LDAP or LDAPS the query will always remain the same. The only difference is that the LDAP communication gets encrypted when using LDAPS.
You don't need to change anything regarding the query.
Hope I was able to answer your question.
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Stoyan Chalakov