We have a batch file which contains etautil scripts to do certain activities like explore account/sync users/assign role etc. We execute this batch file and etautil commands are loaded in command prompts.
Iit has been observed whenever a reference to account/role is made where local characters are involved, the characters are loaded incorrectly which causes script to fail. We have tried to run such entries directly typing on command prompt, even then it does not work.
Can anyone assist us here ?
Here is sample:-
eTADSAccountName=Søren Wittchen Holm
This is not recognized when running the same in command prompt.
Have you tried putting the value in double quotes? eTADSAccountName="Søren Wittchen Holm"
Yes we had tried this , but this also did not work for us.
As per your advice I tried with code page 865 (nordic) , I can see that when I put in the command to explore user it seems fine but when it is run , again the special character is removed.
Here is my command as it looks in console:-
ldapsearch.exe -LLL -h host -p 20389 -D "eTGlobalUserName=superuser,eTGlobalUserContainerName=Global Users,eTNamespaceName=CommonObjects,dc=im,dc=eta" -w secret-b "eTADSAccountName=Katharina Helena Hesbø Belbo,eTADSOrgUnitName=Users,eTADSOrgUnitName=Customers,eTADSOrgUnitName=SKALA,eTADSDirectoryName=AD,eTNamespaceName=ActiveDirectory,dc=im,dc=eta" -s base "(objectclass=*)" eTExploreUpdateEtrust
Result is this :-
Additional information: :ETA_S_0023<EAC>, Active Dir. Account 'Katharina HelenaHesb Belbo' exploration successful: (objects added: 0, deleted: 0, updated: 0, unchanged: 0, failures: 0)
Notice that "ø" is removed somehow while running the command or is it something else ?
When tried with option 2 , it gave me an error ldapsearch.exe is invalid.
Can you suggest anything else ?