Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

LDAP issue with powershell

$
0
0

Hello,

I have created one PowerShell script to get the Active directory data. In which I used Active Directory Domain Services to get the data. 

I am using the JSON file to provide the Input.

The command is as below

"$allGroups = Find-LdapObject -SearchFilter $settings.ldapSettings.Filter -SearchBase $settings.ldapSettings.BasePath -LdapConnection $ADDPConnect

        -PageSize $settings.ldapSettings.PageSize -PropertiesToLoad $settings.ldapSettings.PropertiesToLoad -BinaryProperties $settings.ldapSettings.BinaryPropertiesToLoad"

but it giving me error "The object does not exist".

" ERROR: System.Management.Automation.MethodInvocationException: Exception calling "SendRequest" with "2" argument(s): "The object does not exist." ---> System.DirectoryServices.Protocols.DirectoryOperationException: The object does not exist.

   at System.DirectoryServices.Protocols.LdapConnection.ConstructResponse(Int32 messageId, LdapOperation operation, ResultAll resultType, TimeSpan requestTimeOut, Boolean exceptionOnTimeOut)

   at System.DirectoryServices.Protocols.LdapConnection.SendRequest(DirectoryRequest request, TimeSpan requestTimeout)

   at CallSite.Target(Closure , CallSite , LdapConnection , Object , Object )

   --- End of inner exception stack trace ---

   at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)

   at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)

   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

   at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)

   at System.Management.Automation.Interpreter.Interpreter.Run(InterpretedFrame frame)

   at System.Management.Automation.Interpreter.LightLambda.RunVoid1[T0](T0 arg0)

   at System.Management.Automation.PSScriptCmdlet.RunClause(Action`1 clause, Object dollarUnderbar, Object inputToProcess)

   at System.Management.Automation.PSScriptCmdlet.DoProcessRecord()

   at System.Management.Automation.CommandProcessor.ProcessRecord()"

Am I missing something in this?

Thank you.


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>