From: Michael J. <ube...@gm...> - 2022-05-11 17:13:11
|
Hello Florian, This isn’t quite an answer to your question, but may be of some help. We use an ant build.xml file to handle large imports, following the documentation in http://exist-db.org/exist/apps/doc/ant-tasks . That ant script reads a properties file with the credentials and other information. I can provide an example for you, if you’d like. Michael > On May 9, 2022, at 3:13 AM, Florian Schmitt <ml-...@fl...> wrote: > > Hi all, > > is there a different way to provide authentication credentials to the Java Admin Client other than the command line parameters, e.g. read the user credentials from the file system? My use case is writing a bash script to import some resources into eXist using the Java Admin Client. Currently, the only way to authenticate seems to be using the command line parameters -u and -P, providing the db user credentials in clear text in the bash script. This is quite ugly. Other tools, e.g. cUrl, allow for using .netrc files with appropriate access rights. Is something similar available fot the command line client? What's the best practice for this use case? > > Thanks in advance! > Florian > > > _______________________________________________ > Exist-open mailing list > Exi...@li... > https://lists.sourceforge.net/lists/listinfo/exist-open |