php从活动目录读数据,从活动目录配置文件中抓取信息

Looking for an API or something to start with so that I can pull the information contained in a users AD profile.

Not even sure how to start this so any direction on this is great.

Im pretty new to C# and this is totally alien to me.

Solutions1

If you do some searching here on Stack Overflow, you'll find plenty of material to help you in this direction. For example: Get list of user in Active Directory.

Talk1:

I see where you are going with this but I am more interested in getting all of the info for one user per query rather than all users with one query. Does that make more sense?

Talk2:

I see your edited answer and this helps. I just need to know how to take the data it finds, and then dumps it into my previously created text field (from my previous question you answered by the way :-)) So that I am pulling info from multiple locations and then puting them in one location for the user to see.

Talk3:

Would you like it with fries too?

Talk4:

I do not like french fries :-( But you have provided me with a good start - its just tough when I have one question and the answer leads me to have 4 new questions after. I guess if you follow me around enough you will have a ton of checkmarks by the end of this :-)

Talk5:

That is pretty normal. I didn't want to be rude or anything - I was just trying to show you that you need to do a lot of Googling in order to find the answers, and as you do that you will be able to fit the pieces together.

Solutions2

I recently completed a C# project using the

System.DirectoryServices

System.DirectoryServices.AccountManagement

namespaces. The API is comprised of Principals which include things like computers, controllers and people, and it reveals search functions to scour the Active Directory for your parameters. It's an elegant API and it's really easy to jump into. Here's a link to get you started: MSDN

Talk1:

I think you are on to what I am looking for. But I have to be able to pull the info via a query. How would I be able to pull that?

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值