Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > AD

Reply
 
 
Garfield
Guest
Posts: n/a
 
      10-28-2003
Hello with all I have a large problem with a development AD here my code
objDE = New
DirectoryEntry("LDAP://Server/CN=Users,dc=local,dc=domain", "user", "mdp",
AuthenticationTypes.Secure)
Dim newObjDE As DirectoryEntry = objDES.Add("cn=Test1", "user")
newObjDE.Properties("sAMAccountName").Add("Test1")
newObjDE.Properties("sn").Add("User")
newObjDE.Properties("givenName").Add("Test")
newObjDE.Properties("description").Add("Test account added with
code.")
newObjDE.NativeObject.AccountDisabled = False
newObjDE.CommitChanges()
newObjDE.Invoke("SetPassword", "mdpUser1")
newObjDE.CommitChanges()
the user is well created but as soon as it arrives on the invoke it say to
me that the way network was not found I tested much thing like putting the
IP has the place of the name computer to use it nativeobject and the
function could but nothing make there has each faith he say to me that the
way network does not have ete not found. in advance I thank any person
being able to help me.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57