我现在正要开发一个人力资源系统,用asp.net2.0和sqlserver2000,现在用户要用Active Directory 全面集成,管理用户认证、密码,而我对Active Directory从来没有接触过,我在网上搜了一些文档,看得很糊涂;如果用AD这玩意管理用户和密码,那在人力资源系统数据库里还用不用设计用户密码表,谁能告诉我Active Directory咋用,咋配置,以及跟asp.net2.0开发的人力资源系统怎么集成啊,步骤是怎样的,我把我所有的分想办法全给他,天地做证,顺便说一下,语言用的是c#。
解决方案 »
- regularexpressionvalidator 时间正则验证?
- 母版页上用link定义了css文件,然后我想在其他基本此母版页的aspx中使用其他的css文件该如何做?
- 请教如何快速组建中小型企业网站。
- 使用时定义类的时候出现类型同时存在的问题
- 如何让DataGrid每条记录能固定大小
- 一个非常变态的登录问题,高手入
- 帮帮我吧。如何用hyperlink控件在点击打开一个新的窗口,同时将某个dropdownlist选中的值也一起传过去。
- asp.net中enter键代替tab键的功能!!!
- 数组问题???
- .net获取客户端上的文件夹和文件信息
- 关于VS2005生成DLL的问题.
- 为什么我将现在时间绑定在textBox,但是没有显示。
你可以在程序中直接对域操作。
Changing a Password in Active Directory with C# ASP .NET
http://www.primaryobjects.com/CMS/Article66.aspxHow To: Use Forms Authentication with Active Directory in ASP.NET 2.0
http://msdn2.microsoft.com/en-us/library/ms998360.aspxWeb-based Active Directory Login
http://www.codeproject.com/asp/webactivedirlogin.asp
// Note, ADPath is an Active Directory path pointing to a user. You would have created this
// path by calling a GetUser() function, which searches AD for the specified user
// and returns its DirectoryEntry object or path. See here.
DirectoryEntry oDE;
oDE = new DirectoryEntry(ADPath, ADUser, ADPassword, AuthenticationTypes.Secure);try
{
// Change the password.
oDE.Invoke("ChangePassword", new object[]{strOldPassword, strNewPassword});
}
catch (Exception excep)
{
Debug.WriteLine("Error changing password. Reason: " + excep.Message);
}