使用AAD进行RemoteLogin时出现401错误 [英] 401 error when using AAD for RemoteLogin

查看:107
本文介绍了使用AAD进行RemoteLogin时出现401错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我们使用组织内的ADFS设置进行单点登录,以登录Azure环境。 - 所以我试图通过AAD将身份验证设置为remoteLogin到机器学习服务器。但是我遇到了问题。



我使用Rstudio运行下面的远程登录命令



> remoteLoginAAD(" https://rserver.contoso.com:12800",authuri =" https://login.windows.net" ;, tenantid =" my tenantid",clientid =" 00000000-0000-0000- 0000-000000000000",resource =" 00000000-0000-0000-0000-000000000000",
session = TRUE)



我收到以下错误后选择我的AAD帐户。 

$
错误: 



<错误>



  ----------------------------------- -----------------------------



   成功:FALSE



    url:http:// serverip:12800 / sessions



   方法:GET



    status_code:401



    content: 



  &NBSP; ------------------------------------------------ ----------------



我没有为凭证设置加密 - Do 我需要先这样做吗?
b


否则我不知道我哪里出错了。



请协助。非常感谢。



问候委员b


DRN

解决方案

嗨Ron,


不,您不需要设置加密来使用AAD。


请确保您遵循所有说明: 


https://docs.microsoft.com/en-us/machine-learning-server/operationalize/configure-authentication#azure-active-directory


然后尝试在remoteLoginAAD中使用  session = FALSE,以便将呼叫隔离到仅登录。


您在remoteLoginAAD中使用的参数应该匹配您在web节点的appsettings.json中的配置。 



另请参阅此处的更多信息:


https://docs.microsoft.com/en-us/machine-learning-server/operationalize/how-to-connect-log-in-with-mrsdeploy#authentication



Hi,

We have Single Sign On using ADFS setup within the org for logging in to Azure environment. - so I am trying to setup authentication to remoteLogin to the Machine Learning server via AAD. But am having issues.

I ran the Remote Login command below using Rstudio

> remoteLoginAAD( "https://rserver.contoso.com:12800", authuri = "https://login.windows.net", tenantid = "my tenantid", clientid = "00000000-0000-0000-0000-000000000000", resource = "00000000-0000-0000-0000-000000000000", session = TRUE )

I get the following error after selecting my AAD acccount. 

Error: 

<Error>

 ----------------------------------------------------------------

   success: FALSE

   url: http://serverip:12800/sessions

   method: GET

   status_code: 401

   content: 

   ----------------------------------------------------------------

I have not set up encryption for the credentials - Do  I need to do that first?

Otherwise I am not sure where I am going wrong.

Please assist. Many Thanks.

Regards

DRN

解决方案

Hi Ron,

No, you do not need to set encryption to use AAD.

Please make sure you followed all instructions here: 

https://docs.microsoft.com/en-us/machine-learning-server/operationalize/configure-authentication#azure-active-directory

then try to use  session = FALSE in remoteLoginAAD in order to isolate the call to login only.

The parameters that you use in remoteLoginAAD should match your configuration in appsettings.json of the web node. 

See also more information here:

https://docs.microsoft.com/en-us/machine-learning-server/operationalize/how-to-connect-log-in-with-mrsdeploy#authentication


这篇关于使用AAD进行RemoteLogin时出现401错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆