Hi Stan,

Actually I see some support in CommandHandler.java which is called from
control.bat

At line 608 where configuration is created:

GridClientConfiguration cfg = new GridClientConfiguration();

we just need to add something like:

cfg.setSecurityCredentialsProvider(new SecurityCredentialsProvider() {
                @Override
                public SecurityCredentials credentials() throws
IgniteCheckedException {
                    return creds; //load them from control.bat command line
options or env variables
                }
            });

BR, Oleksandr

On Mon, May 21, 2018 at 11:53 PM, Stanislav Lukyanov <[email protected]
> wrote:

> Hi,
>
>
>
> Ignite doesn’t provide built-in support for authentication, so the
> built-in control.bat/sh also don’t have stubs for that.
>
> So yes, I guess you need to write your own tool.
>
>
>
> A tool like that would be pretty simple though – just start a client node,
> parse command line arguments and
>
> map them to the methods of the ignite.cluster().
>
>
>
> Stan
>
>
>
> *From: *Olexandr K <[email protected]>
> *Sent: *17 мая 2018 г. 17:09
> *To: *[email protected]
> *Subject: *control.bat authentication support
>
>
>
> Hi guys,
>
>
>
> I configured Ignite user/password authentication by adding custom plugin.
>
> It works fine in server/client nodes and visor but I can't find any auth
> support in control.bat
>
> I checked it's source code and don't see any place where I can provide
> credentials.
>
>
>
> Should I write my own control tool or how can I solve this?
>
>
>
> BR, Oleksandr
>
>
>

Reply via email to