Windows Phone 7中的Active Directory用户? [英] Active Directory users in Windows Phone 7?

查看:77
本文介绍了Windows Phone 7中的Active Directory用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让Windows Server Active Directory用户数据进入Windows Phone 7(Windows Mobile 7).
我使用Web服务/WCF获得了解决方案.但我不想维护任何用于运行Web服务的服务器.

有其他替代解决方案吗?
请帮助我.

I want to get windows server Active Directory users data into windows phone 7 (windows mobile 7).
I got the solution using web service/WCF. but I don''t want to maintain any server for running web service.

Is there any alternate solution for this?
please help me.

推荐答案

可以使用DirectorySearcher通过WMI进行LDAP查询以直接在Active Directory中查询用户.
例如.类似的东西:

新的System.DirectoryServices.DirectorySearcher(
新的DirectoryEntry(
"LDAP://服务器/dc = mydomain,dc = com",
管理员",
密码",
AuthenticationTypes.Secure
)
){Filter ="objectClass = user"} .FindAll();
Can you use a DirectorySearcher to make an LDAP query via WMI to query users in an Active Directory directly.

E.g. something like:

new System.DirectoryServices.DirectorySearcher(
new DirectoryEntry(
"LDAP://server/dc=mydomain,dc=com",
"administrator",
"password",
AuthenticationTypes.Secure
)
){ Filter = "objectClass=user" }.FindAll();


这篇关于Windows Phone 7中的Active Directory用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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