Closed Leightonish closed 4 months ago
this is by design: internal api (1.61-internal) are not opened to applications. I need to find a workaround
@Leightonish Any update on this? Did you find any workaround?
Thanks
@Leightonish Any update on this? Did you find any workaround?
Thanks
No workaround found for service principals yet. Have to run manually with a regular Entra ID user (PRT authentication).
@Leightonish
Getting below exception while running with PRT
Free Edition of PingCastle 3.2.0 - Not for commercial use Starting the task: Analyze [1:41:21 PM] Starting [1:41:21 PM] Authenticate [1:41:22 PM] An exception occured when doing the task: Analyze Note: you can run the program with the switch --log to get more detail Exception: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource) at PingCastle.Cloud.Tokens.TokenFactory.
d9.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at PingCastle.Cloud.Tokens.TokenFactory. d 01.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at PingCastle.Cloud.Credentials.CredentialBase.<GetToken>d__7
1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at PingCastle.Cloud.Analyzer.Analyzer.d4.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at PingCastle.Tasks. b 35_0() at PingCastle.Tasks.StartTask(String taskname, TaskDelegate taskdelegate)
Hi Vincent,
I am experiencing issues with PingCastle and Azure Active Directory certificate-based authentication (P12).
In essence, the authentication seems to be successful, but I am not authorized to read anything from the directory. The Global Reader role has been assigned to the Service Principal. However, I am facing a persistent 401 Unauthorized error when attempting to perform a scan.
(Also confirmed to be a bug after reaching out to support)
The error log is as follows: