简体   繁体   English

使用 G Suite 作为 SAML 身份提供商的 Office365/Azure AD

[英]Office365/Azure AD with G Suite as SAML Identity Provider

I am trying to follow articles https://msdn.microsoft.com/en-us/library/azure/dn641269.aspx https://support.google.com/a/answer/6363817?hl=en我正在尝试关注文章https://msdn.microsoft.com/en-us/library/azure/dn641269.aspx https://support.google.com/a/answer/6363817?hl=en

for domain school.edu域名 school.edu

When I open a private browsing window and go to login.microsoftonline.com and specify a user at my domain, I am redirected as expected to Google for login & password.当我打开一个隐私浏览窗口并转到 login.microsoftonline.com 并在我的域中指定一个用户时,我按预期重定向到 Google 以获取登录名和密码。 However, after entering valid credentials, I am redirected to a Microsoft login page with the error但是,在输入有效凭据后,我被重定向到 Microsoft 登录页面并显示错误

I get error Additional technical information: Correlation ID: [redacted, not sure if this is a sensitive ID] Timestamp: 2017-05-11 19:15:31Z AADSTS50107: Requested federation realm object ' https://accounts.google.com/o/saml2?idpid= [id] ' does not exist.我收到错误附加技术信息:相关 ID:[已编辑,不确定这是否是敏感 ID] 时间戳:2017-05-11 19:15:31Z AADSTS50107:请求的联合领域对象 ' https://accounts.google.com /o/saml2?idpid= [id] ' 不存在。

The URL listed there returns a 404 when accessed directly, but https://accounts.google.com/o/saml2/idp?idpid= [id] can be accessed directly (albeit with an error for a malformed SAML request).此处列出的 URL 在直接访问时会返回 404,但可以直接访问https://accounts.google.com/o/saml2/idp?idpid= [id] (尽管存在格式错误的 SAML 请求的错误)。 I specified the idp?idpid=[id] as the LogOnUri over powershell but it does not seem to be pulling from that value there.我将 idp?idpid=[id] 指定为 Powershell 上的 LogOnUri,但它似乎并没有从那里提取该值。

I am unsure how to proceed from here, beyond opening a ticket with Microsoft (they were unable to help the last time we attempted SSO via different means, perhaps a year ago).我不确定如何从这里开始,除了向 Microsoft 开票(上次我们通过不同方式尝试 SSO 时,他们无法提供帮助,也许是一年前)。

Once the user is created in Office365, their Immutable IT will need to be set.在 Office365 中创建用户后,需要设置其不可变 IT。 It should match their Google user primary email address which should also be their MS Username.它应该与他们的 Google 用户主要电子邮件地址相匹配,该地址也应该是他们的 MS 用户名。

Launch Powershell启动 Powershell

Import-Module MSOnline
$Msolcred = Get-Credential
Connect-MsolService -Credential $MsolCred
set-msoluser -userprincipalname USERNAME -ImmutableId SAME USERNAME

Followed this process with some modifications.遵循此过程并进行了一些修改。

This got it working for me.这让它为我工作。 ImmutableID is the issue and is normally handled by the AzureAD Connect service which doesn't exist if you don't run local AD infrastructure. ImmutableID 是问题所在,通常由 AzureAD Connect 服务处理,如果您不运行本地 AD 基础结构,则该服务不存在。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM