1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-18 06:04:06 +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-09-11 02:42:41 +00:00
2020-04-18 04:12:48 +00:00
2023-06-16 16:14:30 +00:00
2023-02-06 22:51:32 +00:00
2023-07-19 09:58:37 +00:00
2023-08-08 04:39:38 +00:00
2022-08-26 07:59:32 +00:00
2023-07-19 09:58:37 +00:00
2016-11-23 13:00:21 +01:00
2017-01-22 18:30:11 +01:00
2020-04-18 04:12:48 +00:00
2023-09-11 02:42:41 +00:00
2023-07-19 09:58:37 +00:00
2023-09-11 02:42:41 +00:00
2018-12-20 23:40:23 +01:00
2020-11-10 19:49:35 +00:00
2023-08-23 08:27:30 +00:00
2023-08-08 04:39:38 +00:00
2021-04-21 20:51:31 +00:00
2021-10-04 10:43:37 +00:00
2023-09-11 02:42:41 +00:00
2021-03-16 17:09:32 +00:00