ADHelper 活动目录用户操作类[80]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 sukey00 的 blog

  mydirectoryentry.properties["displayname"].value="testdisplayname";   
mydirectoryentry.properties["mail"].value="testmail";
 mydirectoryentry.commitchanges();

//设置密码.
mydirectoryentry.invoke(“setpassword“,newpassword);

posted @ 2004-09-09 14:02 josson 阅读(11) | 评论 (0)编辑 收藏

(转)http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/iadsuser.asp

to bind to a domain user through a winnt provider, use the domain name as part of the adspath, as shown in the following code example.

getobject("winnt://mydomain/jeffsmith,user")

similarly, use the computer name as part of the adspath to bind to a local user.

getobject("winnt://mycomputer/jeffsmith,user")

in active directory, domain users reside in the directory. the following code example shows how to bind to a domain user through an ldap provider.

getobject("ldap://cn=jeff smith,ou=sales,dc=fabrikam,dc=com")

however, local accounts reside in the local sam database and the ldap provider does not communicate with the local database. thus, to bind to a local user, you must go through a winnt provider as described in the second code example.

example:
//绑定域,修改用户密码.
direcotryentry entry = new directoryentry(“winnt://devtest/josson“,“josson“,“pass“);
//ldap绑定
//new directoryentry(“ldap://devtest/cn=jin,cn=users,dc=devtest,dc=com“,“josson“,“pass“);

entry.invork(“changepassword“,new object[]{oldpassword,newpassword});

posted @ 2004-09-09 13:57 josson 阅读(12) | 评论 (0)编辑 收藏

2004年6月22日 #

工作流(workflow)就是自动运作的业务过程部分或整体,表现为参与者对文件、信息或任务按照规程采取行动,并令其在参与者之间传递。简单地说,工作流就是一系列相互衔接、自动进行的业务活动或任务。

http://www.delfan.com/workflow/
posted @ 2004-06-22 11:20 josson 阅读(73) | 评论 (0)编辑 收藏

2004年6月18日 #

http://community.csdn.net/expert/topic/3102/3102187.xml?temp=.8055536

using system ;
using system.drawing ;
using system.collections ;
using system.componentmodel ;
using system.windows.forms ;

本文关键:ADHelper 活动目录用户操作类
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top