使用 PHP 和 LDAP 连接到 Microsoft Office 365 [英] Using PHP and LDAP to connect to Microsoft Office 365

查看:43
本文介绍了使用 PHP 和 LDAP 连接到 Microsoft Office 365的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的公司已将其本地交换迁移到托管的 Office 365 解决方案.我们正在构建几个外部(本地网络)托管网站,并希望使用 LDAP 身份验证来构建我们现有的托管用户群.

The company that I work for has migrated their local exchange to a hosted Office 365 solution. We are in the process of building out several externally(to our local network) hosted websites and would like to use LDAP authentication to build upon our existing, hosted user base.

谁能解释或指出一些关于使用 PHP 和 LDAP 连接到远程托管的 AD(在本例中为 Office 365)并对其用户进行身份验证的方法的文档?

Can anyone explain or point to some documentation of a way to use PHP and LDAP to connect to a remotely hosted AD (in this case Office 365) and authenticate users to it?

感谢您的时间和精力.

推荐答案

这是可能的.Microsoft 最近为其 Windows Azure 云平台发布了开发者预览版,该平台的功能与许多其他云计算类似服务(亚马逊宝塔盒Heroku).与此新产品一起,开发的应用程序能够使用您的 Office365 帐户凭据利用单点登录.

This is possible. Microsoft has recently released a Developer Preview for their Windows Azure cloud platform which functions like many other cloud computing services (Amazon, Pagoda Box, Heroku). Along with this new product is the ability for developed apps to leverage Single Sign On using your Office365 account credentials.

这里有几篇介绍 PHP 过程的文章:

Here are a few articles that go over the PHP process:

  1. 如何实现单点登录使用 Windows Azure Active Directory - PHP 应用程序
  2. 开始使用 Windows Azure Active Directory

注意事项:

  • 示例的来源位于 git 存储库中.此 repo 不包含引用的 .csproj 文件,因此您必须使用包含的 3 个源文件构建项目.如果我能做到,你也能做到:).
  • 还应注意,Office365 身份验证完成并重新路由回您的应用程序后,它期望返回 URL 为 HTTPS,如果不是,您将收到错误消息(或者至少我这样做了).

这篇关于使用 PHP 和 LDAP 连接到 Microsoft Office 365的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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