s3-net: make sure to call libnetapi init functions at the top of "net rpc" command.
commit0c5f19fbea7a6419a84ac0137a9a09995ef7a933
authorGünther Deschner <gd@samba.org>
Mon, 27 Apr 2009 12:39:02 +0000 (27 14:39 +0200)
committerGünther Deschner <gd@samba.org>
Tue, 28 Apr 2009 10:27:27 +0000 (28 12:27 +0200)
treeed5e1bbbbdf40a0ff590d096c5a39055e60e8a48
parent3bdb4342225444055b084908083e003e0e272e10
s3-net: make sure to call libnetapi init functions at the top of "net rpc" command.

Without the initialization "net rpc password" will prompt twice for passwords
and will not allow to define the name of the connection admin user.

In the long run we should probably only have one place where to initialize
libnetapi.

Kai, please check.

Guenther
(cherry picked from commit 09ec85715b0e99740156ebb7213eddd1edfea631)
source3/utils/net_rpc.c