简体   繁体   English

Windows Phone上的LDAP身份验证

[英]LDAP Authentication on Windows Phone

In a current project I would like to check if the user is the user it says he is (no private data involved). 在当前项目中,我想检查用户是否是他所说的用户(不涉及私人数据)。 That project is mainly about Timetables at my university. 那个项目主要是关于我大学的时间表。 As we have a LDAP Server and every Student has an account, i would like to authenticate against the LDAP Server but the System.DirectoryServices Assembly is not available on Windows Phone. 由于我们有一个LDAP服务器,并且每个学生都有一个帐户,我想对LDAP服务器进行身份验证,但Windows Phone上没有System.DirectoryServices程序集。 Does anyone have an idea how to realise the login expect for a workaround via a Webservice? 有没有人知道如何通过Web服务实现解决方案的登录期望? WCF would not be an option, I could theoretically send the data to a Webservice and do the authentication via PHP but I would like to keep that functionality in the app. WCF不是一个选项,我理论上可以将数据发送到Web服务并通过PHP进行身份验证,但我想在应用程序中保留该功能。

Thanks in advance! 提前致谢!

Have you tried using a 3rd party library like Novell's ( http://www.novell.com/developer/ndk/ldap_libraries_for_c_sharp.html )? 您是否尝试使用Novell的第三方库( http://www.novell.com/developer/ndk/ldap_libraries_for_c_sharp.html )? It comes with source and MIT license. 它附带源和MIT许可证。

RESTful Web service would do what you want. RESTful Web服务可以满足您的需求。

Have a web server running tomcat/windows IIS (depending on how you wish to implement it) 有一个运行tomcat / windows IIS的Web服务器(取决于你希望如何实现它)

send request to the web service via HTTPS and then have the web server connect to the LDAP server to query it. 通过HTTPS向Web服务发送请求,然后让Web服务器连接到LDAP服务器进行查询。

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

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