DMT.exe basic auth

We’re cloud using default auth: Idp w Azure external provider. Works great in the browser.

Works okay in the local client & DMT, except it doesn’t remember my email on the first go. I can live with that because we don’t do much client stuff.

The problem is with DMT from the command line. It defaults to Idp so I get the login webcontrol popup (silently hidden behind all other screens -grrrr) even when using -noui flag.

How do I get DMT.exe to do basic auth by default? Without affecting the default auth for the browser apps?

TIA,
Josh

DMT has command line switches. You could try passing

c:\Epicor\Client\dmt.exe -User username -Pass password

There is also a -ConfigValue switch where you pass the name of a .sysconfig file. You would then setup the config file to use Basic auth.

To see all switches

dmt.exe /?
3 Likes

Thanks for your reply. I’m doing:

DMT.exe -User xxx -Pass xxx -NoUI -Export -BAQ='DMT-93-PART-PLATE' -Target=T:\DMT\EpicorDMTScripts\BAQ\DMT\PILOT\DMT-93-PART-PLATE_PILOT.csv

but it’s going Idp.

I’m clueless on config but suspect that’s the ticket. Will try some things.

Thanks again.

1 Like

So this seems to work:

DMT.exe -ConfigValue basic.sysconfig -User DMTUSER -Pass xxx -NoUI -Export -BAQ='DMT-93-PART-PLATE' -Target=T:\DMT\EpicorDMTScripts\BAQ\DMT\PILOT\DMT-93-PART-PLATE_PILOT.csv

Caveats:
Didn’t work with my IdP-enabled user so I added a basic user
‘DMT User’ must be checked on User Account of course and
Make sure BAQ is shared

Test without -NoUI first otherwise any related errors are not shown.

Thanks again.

1 Like