s3-net: make sure to call libnetapi init functions at the top of "net rpc" command.
commitbec6191ffa9ed1d860001689b8f46bd785ed932b
authorGünther Deschner <gd@samba.org>
Mon, 27 Apr 2009 12:39:02 +0000 (27 14:39 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 28 Apr 2009 15:53:35 +0000 (28 17:53 +0200)
treed6860846fe3d8c8f4e8dde003f8bc4f5812717fe
parent035f4efa9943e4b9cb3ecbc239e3fa579a5cfdd2
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)
(cherry picked from commit 0c5f19fbea7a6419a84ac0137a9a09995ef7a933)
source3/utils/net_rpc.c