Bug 10827 - samba-tool crashed with error message
Summary: samba-tool crashed with error message
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services (show other bugs)
Version: unspecified
Hardware: x64 Linux
: P5 critical (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
Depends on:
Reported: 2014-09-21 21:15 UTC by aboubacar
Modified: 2016-04-29 22:37 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description aboubacar 2014-09-21 21:15:35 UTC
OS: Ubuntu Linux 14.04 - 64 bits

when running the command "samba-tool user setpassword Administrator"

I get a prompt for the administrator password; as soon as I type it I get the following error message 

ldb: unable to stat module /usr/lib/x86_64-linux-gnu/samba/ldb : No such file or directory
ERROR: Failed to set password for user 'Administrator': (34, "ldb_search: invalid basedn '(null)'")

the command 
kinit administrator@MYDOMAIN.LOCAL

give the error below:
kinit: Preauthentication failed while getting initial credentials
Comment 1 aboubacar 2014-09-21 21:21:22 UTC
This happening on a new fresh install of samba from source with the follwing commands

a) git clone git://git.samba.org/samba.git /usr/src/samba4/
b) cd /usr/src/samba4/
./configure --enable-debug --enable-selftest
make install
Comment 2 Andrew Bartlett 2016-04-29 22:37:46 UTC
You must be mixing up the samba-tool from your source install in /usr/local/samba with the samba-tool from your system binaries.