Your message dated Sat, 26 Oct 2024 11:11:06 +0300
with message-id <[email protected]>
and subject line Re: Bug#745566: samba-common-bin: please check password length
and existence of smb.conf samba-tool
has caused the Debian Bug report #745566,
regarding samba-common-bin: please check password length and existence of
smb.conf samba-tool
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
745566: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745566
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: samba-common-bin
Version: 2:4.1.7+dfsg-2
Dear Maintainer,
please check password length on initial provision to avoid error during parsing.
I ran the command
samba-tool domain provision --use-rfc2307 --interactive
provided password (4 letters)
retyped it (4 letters)
And end up with the following error message:
Setting up sam.ldb data
Setting up well known security principals
Setting up sam.ldb users and groups
ERROR(ldb): uncaught exception - 0000052D: Constraint violation -
check_password_restrictions: the password is too short. It should be equal or
longer than 7 characters!
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 175,
in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 398, in
run
use_rfc2307=use_rfc2307, skip_sysvolacl=False)
File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line
2155, in provision
skip_sysvolacl=skip_sysvolacl)
File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line
1757, in provision_fill
next_rid=next_rid, dc_rid=dc_rid)
File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line
1436, in fill_samdb
"KRBTGTPASS_B64": b64encode(krbtgtpass.encode('utf-16-le'))
File "/usr/lib/python2.7/dist-packages/samba/provision/common.py", line 50,
in setup_add_ldif
ldb.add_ldif(data, controls)
File "/usr/lib/python2.7/dist-packages/samba/__init__.py", line 224, in
add_ldif
self.add(msg, controls)
Please also check whether a smb.conf is present - because if it is, the parsing
ends up with:
Administrator password:
Retype password:
ERROR(<class 'samba.provision.ProvisioningError'>): Provision failed -
ProvisioningError: guess_names: 'realm =' was not specified in supplied
/etc/samba/smb.conf. Please remove the smb.conf file and let provision
generate it
File "/usr/lib/python2.7/dist-packages/samba/netcmd/domain.py", line 398, in
run
Stefan
--- End Message ---
--- Begin Message ---
Version: 2:4.16.0+dfsg-1
This is an old bug report, more than 10 years old..
On Tue, 22 Apr 2014 22:44:50 +0200 =?utf-8?Q?Stefan_Bauer?=
<[email protected]> wrote:
..
samba-tool domain provision --use-rfc2307 --interactive
provided password (4 letters)
retyped it (4 letters)
And end up with the following error message:
ERROR(ldb): uncaught exception - 0000052D: Constraint violation -
check_password_restrictions: the password is too short. It should be equal or
longer than 7 characters!
This has been fixed in samba quite some time ago. I don't know
when exactly, but at least 4.16.0 version does not let one to
go further than the password prompt:
Administrator password: [1234]
Administrator password does not meet the default minimum password length
requirement (7 characters).
Administrator password:
Also, `samba-tool domain provision` now generates new smb.conf
(this is the second issue reported in the original bug report).
Lets' close this bug report now.
Thanks,
/mjt
--- End Message ---