Charles
2003-08-07 19:48:00 UTC
Can anybody help me !!!
I wrote a Vb code to move users between OU.
For each OU I have multiple groups inside.
Example :
Before move ==> OU=867520, group=867520ADM, group=867520ENS, group=867520GPI
After move ==> OU=867560, group=867520ADM, group=867520ENS, group=867520GPI
I want only the OU to be change, the groups must stay the way they are.
When I run the code, I receive an error...There is no such object on the server
but after verification all objects are present.
This is a part of my code to test one user :
Set usr = GetObject("LDAP://cn=laura cole,ou=867520,dc=csdgs,dc=qc,dc=ca")
Set cont = GetObject("LDAP://ou=867560,dc=csdgs,dc=qc,dc=ca")
cont.MoveHere usr.ADsPath, vbNullString
Please if anybody knows help me quickly !!!
Thank you very very very much...
I wrote a Vb code to move users between OU.
For each OU I have multiple groups inside.
Example :
Before move ==> OU=867520, group=867520ADM, group=867520ENS, group=867520GPI
After move ==> OU=867560, group=867520ADM, group=867520ENS, group=867520GPI
I want only the OU to be change, the groups must stay the way they are.
When I run the code, I receive an error...There is no such object on the server
but after verification all objects are present.
This is a part of my code to test one user :
Set usr = GetObject("LDAP://cn=laura cole,ou=867520,dc=csdgs,dc=qc,dc=ca")
Set cont = GetObject("LDAP://ou=867560,dc=csdgs,dc=qc,dc=ca")
cont.MoveHere usr.ADsPath, vbNullString
Please if anybody knows help me quickly !!!
Thank you very very very much...