i have a list of users in a .csv file that i want to move to a certain OU.
I have only the samid of the users, not the dn. i
so my goal is a script that can get the user dn (of the users in the csv) searching the directory and the give the results to dsmove (by a pipe or another file)
unfortunately i can’t get the results immediately by dsquery because i don’t need to do a dsquery to the whole directory, but only for the users in the csv file