1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4
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
..
auth s4:auth: Fix code spelling 2023-09-11 02:42:41 +00:00
cldap_server s4:cldap_server: Add missing newline to logging message 2023-08-08 04:39:38 +00:00
client s4:client: Fix code spelling 2023-09-11 02:42:41 +00:00
cluster
dns_server s4:dns_server: Fix code spelling 2023-09-11 02:42:41 +00:00
dsdb s4:dsdb: Fix code spelling 2023-09-11 02:42:41 +00:00
echo_server s4: rename source4/smbd/ to source4/samba/ 2020-11-27 10:07:18 +00:00
include lib: Remove smb_threads from includes.h 2022-04-26 21:41:29 +00:00
kdc s4:kdc: Fix code spelling 2023-09-11 02:42:41 +00:00
ldap_server s3:ldap_server: Fix code spelling 2023-08-14 21:45:29 +00:00
lib s4:lib: Fix code spelling 2023-08-14 21:45:29 +00:00
libcli s4:libcli: Fix code spelling 2023-09-11 02:42:41 +00:00
libnet s4:libnet: Fix code spelling 2023-09-11 02:42:41 +00:00
librpc selftest:ndrdump: adjust xattr_NTACL test for ACE coda 2023-08-24 03:47:08 +00:00
nbt_server librpc/nbt: Avoid reading invalid member of union 2023-07-07 01:14:06 +00:00
ntp_signd s4: rename source4/smbd/ to source4/samba/ 2020-11-27 10:07:18 +00:00
ntvfs s4:ntvfs: Fix code spelling 2023-09-11 02:42:41 +00:00
param s4:param: Add missing newlines to logging messages 2023-08-08 04:39:38 +00:00
rpc_server s4:rpc_server: Fix code spelling 2023-09-11 02:42:41 +00:00
samba s4:samba: Fix code spelling 2023-09-11 02:42:41 +00:00
script s4:script: Fix shellcheck errors in find_unused_options.sh 2022-08-22 14:20:36 +00:00
scripting s4:scripting: Fix code spelling 2023-08-14 21:45:29 +00:00
selftest pytest: compare Samba vs Windows SDDL security descriptors 2023-08-24 02:53:31 +00:00
setup s4:setup: Fix code spelling 2023-08-14 21:45:29 +00:00
smb_server s4:smb_server: Fix code spelling 2023-08-21 23:37:29 +00:00
torture netapi: Pass net's cmdline credentials to libnetapi_net_init() 2023-09-11 02:42:41 +00:00
utils s4:utils: Fix shellcheck errors in test_samba_tool.sh 2022-08-22 20:35:36 +00:00
winbind CVE-2022-32746 ldb: Make use of functions for appending to an ldb_message 2022-07-27 10:52:36 +00:00
wrepl_server s4:wrepl_server: Fix code spelling 2023-09-11 02:42:41 +00:00
.clang_complete
.valgrind_suppressions
wscript_build s4:client: Migrate cifsdd to new cmdline option parser 2021-06-16 00:34:38 +00:00