1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00
Samuel Cabrero 8cdb4f2985 netapi: Pass net's cmdline credentials to libnetapi_net_init()
Avoid unnecessary credentials allocation and initialization by passing the
net's cmdline creds to libnetapi_net_init() directly.

Fixes the problem of running cli_credentials_guess() (which runs password
callbacks) twice, one for the net's cmdline creds and a second time for the
creds initialized in libnetapi_net_init(), just to override them immediately
after.

Example:

$ export PASSWD_FD=0
$ ./bin/net offlinejoin composeodj <...>
foo
bar

Password is read from STDIN twice.

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2023-09-11 02:42:41 +00:00
..
2023-08-08 04:39:37 +00:00
2023-07-13 05:41:36 +00:00
2022-10-27 18:18:36 +00:00
2018-07-24 20:36:49 +02:00
2023-07-13 05:41:36 +00:00
2023-07-13 05:41:36 +00:00
2022-10-27 18:18:36 +00:00
2022-10-27 18:18:36 +00:00
2023-07-13 05:41:36 +00:00
2017-05-10 15:53:20 +02:00
2019-02-28 13:53:40 +00:00
2023-07-13 05:41:36 +00:00
2023-07-13 05:41:36 +00:00
2017-02-15 02:28:16 +01:00
2017-01-22 18:30:11 +01:00
2023-07-13 05:41:36 +00:00
2023-07-13 05:41:36 +00:00
2023-07-13 05:41:36 +00:00
2020-01-19 18:29:39 +00:00
2023-07-13 05:41:36 +00:00
2023-07-13 05:41:36 +00:00
2023-07-13 05:41:36 +00:00
2019-02-17 13:33:13 +01:00
2023-07-13 05:41:36 +00:00
2017-01-22 18:30:11 +01:00
2023-07-13 05:41:36 +00:00
2023-07-13 05:41:36 +00:00
2021-01-22 19:54:38 +00:00
2023-07-13 05:41:36 +00:00
2016-12-28 20:17:12 +01:00
2023-07-13 05:41:36 +00:00
2021-09-21 00:13:32 +00:00
2022-12-12 21:16:33 +00:00
2023-01-10 00:28:37 +00:00
2016-12-28 20:17:13 +01:00
2018-12-20 23:40:25 +01:00
2023-07-13 05:41:36 +00:00
2019-02-28 13:53:40 +00:00