samba-tool domain provision crash with "password hash userPassword schemes" parameter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
samba |
Unknown
|
Unknown
|
|||
samba (Ubuntu) |
Fix Released
|
Undecided
|
Sergio Durigan Junior | ||
Focal |
Incomplete
|
Undecided
|
Unassigned | ||
Hirsute |
Won't Fix
|
Undecided
|
Unassigned | ||
Impish |
Won't Fix
|
Undecided
|
Sergio Durigan Junior |
Bug Description
On focal, when I try to initialize samba (2:4.11.
root@eolebase:~# grep schemes /etc/samba/smb.conf
password hash userPassword schemes = CryptSHA256 CryptSHA512
root@eolebase:~# samba-tool domain provision --use-rfc230 --realm=
INFO 2021-01-22 09:59:58,050 pid:4529 /usr/lib/
WARNING 2021-01-22 09:59:58,050 pid:4529 /usr/lib/
INFO 2021-01-22 09:59:58,323 pid:4529 /usr/lib/
INFO 2021-01-22 09:59:58,357 pid:4529 /usr/lib/
INFO 2021-01-22 09:59:58,381 pid:4529 /usr/lib/
INFO 2021-01-22 09:59:58,462 pid:4529 /usr/lib/
INFO 2021-01-22 09:59:58,504 pid:4529 /usr/lib/
INFO 2021-01-22 09:59:58,534 pid:4529 /usr/lib/
INFO 2021-01-22 09:59:58,542 pid:4529 /usr/lib/
INFO 2021-01-22 09:59:58,543 pid:4529 /usr/lib/
INFO 2021-01-22 09:59:58,550 pid:4529 /usr/lib/
Unable to determine the DomainSID, can not enforce uniqueness constraint on local domainSIDs
INFO 2021-01-22 09:59:58,589 pid:4529 /usr/lib/
INFO 2021-01-22 09:59:58,602 pid:4529 /usr/lib/
INFO 2021-01-22 09:59:58,653 pid:4529 /usr/lib/
INFO 2021-01-22 10:00:01,208 pid:4529 /usr/lib/
INFO 2021-01-22 10:00:01,350 pid:4529 /usr/lib/
INFO 2021-01-22 10:00:03,204 pid:4529 /usr/lib/
INFO 2021-01-22 10:00:03,239 pid:4529 /usr/lib/
INFO 2021-01-22 10:00:03,240 pid:4529 /usr/lib/
INFO 2021-01-22 10:00:03,241 pid:4529 /usr/lib/
INFO 2021-01-22 10:00:03,242 pid:4529 /usr/lib/
INFO 2021-01-22 10:00:03,243 pid:4529 /usr/lib/
INFO 2021-01-22 10:00:03,376 pid:4529 /usr/lib/
INFO 2021-01-22 10:00:03,417 pid:4529 /usr/lib/
ERROR(ldb): uncaught exception - setup_primary_
File "/usr/lib/
return self.run(*args, **kwargs)
File "/usr/lib/
result = provision(
File "/usr/lib/
provision_
File "/usr/lib/
samdb = fill_samdb(samdb, lp, names, logger=logger,
File "/usr/lib/
setup_
File "/usr/lib/
ldb.
File "/usr/lib/
self.add(msg, controls)
It seems to be the same as the upstream bug : https:/
ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: samba 2:4.11.
ProcVersionSign
Uname: Linux 5.4.0-65-generic x86_64
ApportVersion: 2.20.11-
Architecture: amd64
BothFailedConnect: Yes
CasperMD5CheckR
Date: Fri Jan 22 10:05:48 2021
InstallationDate: Installed on 2020-12-17 (35 days ago)
InstallationMedia: EOLE 2.8.0 "Focal Fossa" - Release amd64 (20201217)
NmbdLog:
SambaServerRegr
SmbConfIncluded: Yes
SmbLog:
SourcePackage: samba
TestparmExitCode: 0
TestparmStderr:
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Server role: ROLE_ACTIVE_
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in samba (Ubuntu): | |
assignee: | nobody → Sergio Durigan Junior (sergiodj) |
Changed in samba (Ubuntu): | |
status: | New → Triaged |
Changed in samba (Ubuntu Focal): | |
status: | New → Incomplete |
Changed in samba (Ubuntu Hirsute): | |
status: | New → Incomplete |
Thanks for taking the time to file this bug and trying to make Ubuntu better.
The upstream bug you mentioned might be related to what you faced, I am subscribing Sergio who has been working on samba to check if this is true. This is the upstream patch targeting 4.11 and it is not included in Focal:
https:/ /attachments. samba.org/ attachment. cgi?id= 16104
Out of curiosity, do you have FIPS mode enabled in your system? I am asking because it was mentioned in the upstream bug.