1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-30 19:42:05 +03:00

Revert "net: Use samba default command line arguments."

This reverts commit fb262f79fa
and related commits c36031778e
72fd5fa6bb and
38cd0e086f

This change caused more trouble than it solved. We need to do this differently.
Reverting so we don't accidently release this.
This commit is contained in:
Kai Blin
2009-07-05 09:21:07 +02:00
parent 1887ad0a26
commit 8f5ef10633
12 changed files with 210 additions and 173 deletions

View File

@ -220,12 +220,9 @@ int net_rpc_shell(struct net_context *c, int argc, const char **argv)
if (libnetapi_init(&c->netapi_ctx) != 0) {
return -1;
}
set_cmdline_auth_info_getpass(c->auth_info);
libnetapi_set_username(c->netapi_ctx,
get_cmdline_auth_info_username(c->auth_info));
libnetapi_set_password(c->netapi_ctx,
get_cmdline_auth_info_password(c->auth_info));
if (get_cmdline_auth_info_use_kerberos(c->auth_info)) {
libnetapi_set_username(c->netapi_ctx, c->opt_user_name);
libnetapi_set_password(c->netapi_ctx, c->opt_password);
if (c->opt_kerberos) {
libnetapi_set_use_kerberos(c->netapi_ctx);
}