Hello with all I have a large problem with a development AD here my code
objDE = New
DirectoryEntry( "LDAP://Server/CN=Users,dc=loc al,dc=domain", "user", "mdp",
AuthenticationT ypes.Secure)
Dim newObjDE As DirectoryEntry = objDES.Add("cn= Test1", "user")
newObjDE.Proper ties("sAMAccoun tName").Add("Te st1")
newObjDE.Proper ties("sn").Add( "User")
newObjDE.Proper ties("givenName ").Add("Tes t")
newObjDE.Proper ties("descripti on").Add("Tes t account added with
code.")
newObjDE.Native Object.AccountD isabled = False
newObjDE.Commit Changes()
newObjDE.Invoke ("SetPasswor d", "mdpUser1")
newObjDE.Commit Changes()
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.
objDE = New
DirectoryEntry( "LDAP://Server/CN=Users,dc=loc al,dc=domain", "user", "mdp",
AuthenticationT ypes.Secure)
Dim newObjDE As DirectoryEntry = objDES.Add("cn= Test1", "user")
newObjDE.Proper ties("sAMAccoun tName").Add("Te st1")
newObjDE.Proper ties("sn").Add( "User")
newObjDE.Proper ties("givenName ").Add("Tes t")
newObjDE.Proper ties("descripti on").Add("Tes t account added with
code.")
newObjDE.Native Object.AccountD isabled = False
newObjDE.Commit Changes()
newObjDE.Invoke ("SetPasswor d", "mdpUser1")
newObjDE.Commit Changes()
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.