mirror of
https://github.com/samba-team/samba.git
synced 2025-01-07 17:18:11 +03:00
8cdb4f2985
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> |
||
---|---|---|
.. | ||
examples | ||
tests | ||
cm.c | ||
Doxyfile | ||
file.c | ||
getdc.c | ||
group.c | ||
joindomain.c | ||
libnetapi.c | ||
libnetapi.h | ||
localgroup.c | ||
netapi_net.h | ||
netapi_private.h | ||
netapi.c | ||
netapi.h | ||
netlogon.c | ||
samr.c | ||
serverinfo.c | ||
share.c | ||
shutdown.c | ||
sid.c | ||
user.c | ||
wkstainfo.c |