Verification steps for Installation #238
ahmedadly2
started this conversation in
General
Replies: 1 comment
-
|
@ahmedadly2 can you try to connect to your LDAP server outside of SharePoint, using the PowerShell script below (replace variables to fit your environment): $filter = "(&(objectClass=user)(|(sAMAccountName=yvand*)(cn=yvand*)))"
$ldapServer = "contoso.local"
$ldapBase = "DC=contoso,DC=local"
$ldapUser = "contoso\spfarm"
$ldapPassword = Read-Host "Enter the password (will appear in clear text)"
$ldapAuth = [System.DirectoryServices.AuthenticationTypes] "Secure, Signing"
$directoryEntry = New-Object System.DirectoryServices.DirectoryEntry("LDAP://$ldapServer/$ldapBase" , $ldapUser, $ldapPassword, $ldapAuth)
$objSearcher = New-Object System.DirectoryServices.DirectorySearcher ($directoryEntry, $filter)
# Uncomment line below to restrict properties returned by LDAP server
#$objSearcher.PropertiesToLoad.AddRange(@("cn"))
$results = $objSearcher.FindAll()
Write-Host "Found $($results.Count) result(s)":
foreach ($objResult in $results) {$objItem = $objResult.Properties; $objItem} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
We have installed LDAPCP Second Edition 21.0.20250218
Is there a way to run verification steps with PowerShell, or other tools, to ensure that LDAPCP is running as expected ?
As I am getting this in SharePoint logs when signing in, logging is fine, but getting this in ULS Logs
Unexpected error while getting domain names information for LDAP connection LDAP://ABC-FTUM-BE-8/CN=Users,CN=ABC-9,DC=FTUMmics-Users,DC=AWS (DirectoryServicesCOMException): DirectoryServicesCOMException: 0000208D: NameErr: DSID-03152F34, problem 2001 (NO_OBJECT), data 0, best match of: 'CN=ABC-8,DC=FTUMmics-Users,DC=AWS'
Beta Was this translation helpful? Give feedback.
All reactions