Bug 15889 - `samba-tool domain provision` fails with `--debuglevel` option
Summary: `samba-tool domain provision` fails with `--debuglevel` option
Status: RESOLVED INVALID
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: 4.22.3
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-28 04:49 UTC by SATOH Fumiyasu
Modified: 2025-07-28 13:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SATOH Fumiyasu 2025-07-28 04:49:17 UTC
```
# samba-tool domain provision --help
...
  Samba Common Options:
    -d DEBUGLEVEL, --debuglevel=DEBUGLEVEL
                        debug level
...
# samba-tool domain provision -d 0
ERROR: No domain set!
# samba-tool domain provision -d 10
INFO: Current debug levels:
  all: 10
  tdb: 10
  printdrivers: 10
  lanman: 10
  smb: 10
  rpc_parse: 10
  rpc_srv: 10
  rpc_cli: 10
  passdb: 10
  sam: 10
  auth: 10
  winbind: 10
  vfs: 10
  idmap: 10
  quota: 10
  acls: 10
  locking: 10
  msdfs: 10
  dmapi: 10
  registry: 10
  scavenger: 10
  dns: 10
  ldb: 10
  tevent: 10
  auth_audit: 10
  auth_json_audit: 10
  kerberos: 10
  drs_repl: 10
  smb2: 10
  smb2_credits: 10
  dsdb_audit: 10
  dsdb_json_audit: 10
  dsdb_password_audit: 10
  dsdb_password_json_audit: 10
  dsdb_transaction_audit: 10
  dsdb_transaction_json_audit: 10
  dsdb_group_audit: 10
  dsdb_group_json_audit: 10
  ldapsrv: 10
ERROR: No domain set!
```
Comment 1 Rowland Penny 2025-07-28 06:53:53 UTC
(In reply to SATOH Fumiyasu from comment #0)
It isn't so much that it is failing because you are setting the debug level, it is failing because you are not setting the required '--interactive' switch or the individual separate options. The error message is telling you this.

See here for how to set up a new domain:

 https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller
Comment 2 SATOH Fumiyasu 2025-07-28 13:12:39 UTC
I got it! Thank you.