mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
netapi: when using NetApi functions forward net's kerberos setting.
Guenther (This used to be commit d46f648d2e25ad712138f02e5060288278f4c1b1)
This commit is contained in:
parent
23e9ebb0d4
commit
52a8501515
@ -257,6 +257,9 @@ int net_dom(struct net_context *c, int argc, const char **argv)
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
return net_run_function(c, argc, argv, "net dom", func);
|
||||
}
|
||||
|
@ -1243,6 +1243,9 @@ int net_rpc_user(struct net_context *c, int argc, const char **argv)
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
if (argc == 0) {
|
||||
if (c->display_usage) {
|
||||
@ -3062,6 +3065,9 @@ int net_rpc_group(struct net_context *c, int argc, const char **argv)
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
if (argc == 0) {
|
||||
if (c->display_usage) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user