如何从Active Directory获取用户信息 [英] How Do I Get User Information From Active Directory

查看:103
本文介绍了如何从Active Directory获取用户信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用LDAP根据活动目录对用户进行身份验证的应用程序。经过身份验证后,我想登录用户名和电子邮件,以便我可以发送电子邮件。



登录部分有效,但如何获取用户名(不是用户名,而是实际全名)和电子邮件地址并将其用于发送电子邮件?



提前谢谢

I have an application that uses LDAP to authenticate users against active directory. Once authenticated, I would like to get logged in user name and email so that I can send email.

The log in part works, but how do I go about getting the user name (not username, but actual full name) and e-mail address and use it to send e-mail?

Thanks in advance

推荐答案

这看起来很简单。检查这个 [< a href =http://stackoverflow.com/questions/637486/how-to-get-the-current-users-active-directory-details-in-c-sharptarget =_ blanktitle =New Window > ^ ]



- 如何在C#中获取当前用户的Active Directory详细信息 [ ^ ]



- 如何获得来自Active Directory的用户数据 [ ^ ]
This seems easy. Check this[^]

- How to get the current user's Active Directory details in C#[^]

- How to get User Data from the Active Directory[^]


这篇关于如何从Active Directory获取用户信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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