Discussion:
[Samba] samba-tool not working as i'd expect
Andrew Galdes
2013-01-09 23:54:01 UTC
Permalink
Hello all,

I'm having problems using the "samba-tool" tool. From the documentation
i've read, the following command 'should' work. Apparently i'm missing
something.

####

[root at vmhost bin]# pwd
/usr/local/samba/bin
[root at vmhost bin]# ./samba-tool domain provision --realm=mytest.local
--domain=MYTEST --adminpass='welcome' --server-role='dc'
Usage: samba-tool domain <subcommand>

Available subcommands:
classicupgrade - Upgrade from Samba classic (NT4-like) database to
Samba AD DC database.
dcpromo - Promotes an existing domain member or NT4 PDC to an
AD DC
demote - Demote ourselves from the role of Domain Controller
exportkeytab - Dumps kerberos keys of the domain into a keytab
info - Print basic info about a domain and the DC passed as
parameter
join - Joins domain as either member or backup domain
controller
level - Raises domain and forest function levels
passwordsettings - Sets password settings
samba3upgrade - Upgrade from Samba classic (NT4-like) database to
Samba AD DC database.
ERROR: No such subcommand 'provision'

####

A little background. Here is how i got to this point:

####

wget http://download.samba.org/samba/ftp/samba4/samba-4.0.0beta8.tar.gz
tar xzf samba-4.0.0beta8.tar.gz
cd samba-4.0.0beta8
cd source4
./configure
make
make install

####

Ta,
--
-Andrew Galdes
Managing Director

RHCSA, LPI, CCENT

AGIX Linux

Ph: 08 7324 4429
Mb: 0422 927 598

Site: http://www.agix.com.au
Twitter: http://twitter.com/agixlinux
LinkedIn: http://au.linkedin.com/in/andrewgaldes
Günter Kukkukk
2013-01-10 00:08:28 UTC
Permalink
Post by Andrew Galdes
Hello all,
I'm having problems using the "samba-tool" tool. From the documentation
i've read, the following command 'should' work. Apparently i'm missing
something.
####
[root at vmhost bin]# pwd
/usr/local/samba/bin
[root at vmhost bin]# ./samba-tool domain provision --realm=mytest.local
--domain=MYTEST --adminpass='welcome' --server-role='dc'
Usage: samba-tool domain <subcommand>
classicupgrade - Upgrade from Samba classic (NT4-like) database to
Samba AD DC database.
dcpromo - Promotes an existing domain member or NT4 PDC to an
AD DC
demote - Demote ourselves from the role of Domain Controller
exportkeytab - Dumps kerberos keys of the domain into a keytab
info - Print basic info about a domain and the DC passed as
parameter
join - Joins domain as either member or backup domain
controller
level - Raises domain and forest function levels
passwordsettings - Sets password settings
samba3upgrade - Upgrade from Samba classic (NT4-like) database to
Samba AD DC database.
ERROR: No such subcommand 'provision'
####
####
wget http://download.samba.org/samba/ftp/samba4/samba-4.0.0beta8.tar.gz
tar xzf samba-4.0.0beta8.tar.gz
cd samba-4.0.0beta8
cd source4
./configure
make
make install
####
Ta,
you are using a very outdated version. Those days provision was done
in a different way.
Please follow https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO
how to download and build a recent version.

Cheers, G?nter
Andrew Galdes
2013-01-10 00:09:57 UTC
Permalink
Yes, thanks. I just noticed the ./sbin/provision and it's working now.

Sorry for the hassles.

Ta,
-Andrew Galdes
Post by Günter Kukkukk
Post by Andrew Galdes
Hello all,
I'm having problems using the "samba-tool" tool. From the documentation
i've read, the following command 'should' work. Apparently i'm missing
something.
####
[root at vmhost bin]# pwd
/usr/local/samba/bin
[root at vmhost bin]# ./samba-tool domain provision --realm=mytest.local
--domain=MYTEST --adminpass='welcome' --server-role='dc'
Usage: samba-tool domain <subcommand>
classicupgrade - Upgrade from Samba classic (NT4-like) database to
Samba AD DC database.
dcpromo - Promotes an existing domain member or NT4 PDC to an
AD DC
demote - Demote ourselves from the role of Domain Controller
exportkeytab - Dumps kerberos keys of the domain into a keytab
info - Print basic info about a domain and the DC passed
as
Post by Andrew Galdes
parameter
join - Joins domain as either member or backup domain
controller
level - Raises domain and forest function levels
passwordsettings - Sets password settings
samba3upgrade - Upgrade from Samba classic (NT4-like) database to
Samba AD DC database.
ERROR: No such subcommand 'provision'
####
####
wget http://download.samba.org/samba/ftp/samba4/samba-4.0.0beta8.tar.gz
tar xzf samba-4.0.0beta8.tar.gz
cd samba-4.0.0beta8
cd source4
./configure
make
make install
####
Ta,
you are using a very outdated version. Those days provision was done
in a different way.
Please follow https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO
how to download and build a recent version.
Cheers, G?nter
--
-Andrew Galdes
Managing Director

RHCSA, LPI, CCENT

AGIX Linux

Ph: 08 7324 4429
Mb: 0422 927 598

Site: http://www.agix.com.au
Twitter: http://twitter.com/agixlinux
LinkedIn: http://au.linkedin.com/in/andrewgaldes
Günter Kukkukk
2013-01-10 00:19:53 UTC
Permalink
Post by Andrew Galdes
Yes, thanks. I just noticed the ./sbin/provision and it's working now.
Sorry for the hassles.
Please notice, that since the release of samba-4.0.0, that version and
future ones are the only supported ones!

So i strongly recommend to upgrade to the released version!

Cheers, G?nter
Post by Andrew Galdes
Ta,
-Andrew Galdes
Post by Günter Kukkukk
Post by Andrew Galdes
Hello all,
I'm having problems using the "samba-tool" tool. From the documentation
i've read, the following command 'should' work. Apparently i'm missing
something.
####
[root at vmhost bin]# pwd
/usr/local/samba/bin
[root at vmhost bin]# ./samba-tool domain provision --realm=mytest.local
--domain=MYTEST --adminpass='welcome' --server-role='dc'
Usage: samba-tool domain <subcommand>
classicupgrade - Upgrade from Samba classic (NT4-like) database to
Samba AD DC database.
dcpromo - Promotes an existing domain member or NT4 PDC to an
AD DC
demote - Demote ourselves from the role of Domain
Controller exportkeytab - Dumps kerberos keys of the domain
into a keytab info - Print basic info about a domain
and the DC passed
as
Post by Andrew Galdes
parameter
join - Joins domain as either member or backup domain
controller
level - Raises domain and forest function levels
passwordsettings - Sets password settings
samba3upgrade - Upgrade from Samba classic (NT4-like) database to
Samba AD DC database.
ERROR: No such subcommand 'provision'
####
####
wget
http://download.samba.org/samba/ftp/samba4/samba-4.0.0beta8.tar.gz
tar xzf samba-4.0.0beta8.tar.gz
cd samba-4.0.0beta8
cd source4
./configure
make
make install
####
Ta,
you are using a very outdated version. Those days provision was done
in a different way.
Please follow https://wiki.samba.org/index.php/Samba_AD_DC_HOWTO
how to download and build a recent version.
Cheers, G?nter
Continue reading on narkive:
Loading...