failed to install/upgrade: "check_password_restrictions: the password does not meet the complexity criteria!"

Bug #1096791 reported by Arek O.
82
This bug affects 14 people
Affects Status Importance Assigned to Milestone
samba
Fix Released
Unknown
samba (Ubuntu)
Fix Released
Low
Unassigned
samba4 (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

taht was a simply apt-get install samba4 and after download in instaling process this bug hapend

ProblemType: Package
DistroRelease: Ubuntu 13.04
Package: samba4 4.0.0+dfsg1-1
ProcVersionSignature: Ubuntu 3.7.0-7.15-generic 3.7.0
Uname: Linux 3.7.0-7-generic x86_64
ApportVersion: 2.7-0ubuntu2
Architecture: amd64
Date: Mon Jan 7 09:41:34 2013
ErrorMessage: podproces zainstalowany skrypt post-installation zwrócił kod błędu 255
InstallationDate: Installed on 2013-01-07 (0 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130106)
MarkForUpload: True
SourcePackage: samba4
Title: package samba4 4.0.0+dfsg1-1 failed to install/upgrade: podproces zainstalowany skrypt post-installation zwrócił kod błędu 255
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Arek O. (oarek) wrote :
Revision history for this message
Thomas Hood (jdthood) wrote :

From DpkgTerminalLog.txt:

Setting up sam.ldb users and groups
ERROR(ldb): uncaught exception - 0000052D: Constraint violation - check_password_restrictions: the password does not meet the complexity criteria!

summary: - package samba4 4.0.0+dfsg1-1 failed to install/upgrade: podproces
- zainstalowany skrypt post-installation zwrócił kod błędu 255
+ package samba4 4.0.0+dfsg1-1 failed to install/upgrade: "password does
+ not meet the complexity criteria!"
Thomas Hood (jdthood)
summary: - package samba4 4.0.0+dfsg1-1 failed to install/upgrade: "password does
- not meet the complexity criteria!"
+ package samba4 4.0.0+dfsg1-1 failed to install/upgrade:
+ "check_password_restrictions: the password does not meet the complexity
+ criteria!"
Changed in samba:
status: Unknown → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: package samba4 4.0.0+dfsg1-1 failed to install/upgrade: "check_password_restrictions: the password does not meet the complexity criteria!"

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in samba4 (Ubuntu):
status: New → Confirmed
Revision history for this message
Nick Semenkovich (semenko) wrote :

On a fresh install as well, if you choose a poor password, it's initially accepted, then warned substantially later that the password is weak (and the install will fail):

Adding users container
Modifying users container
Adding computers container
Modifying computers container
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 does not meet the complexity criteria!
  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 2058, in provision
    skip_sysvolacl=skip_sysvolacl)
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 1661, in provision_fill
    next_rid=next_rid, dc_rid=dc_rid)
  File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 1349, 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)
dpkg: error processing samba4 (--configure):
 subprocess installed post-installation script returned error exit status 255
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Processing triggers for ureadahead ...
Processing triggers for ufw ...
Errors were encountered while processing:
 samba4
E: Sub-process /usr/bin/dpkg returned an error code (1)

Thomas Hood (jdthood)
summary: - package samba4 4.0.0+dfsg1-1 failed to install/upgrade:
- "check_password_restrictions: the password does not meet the complexity
- criteria!"
+ failed to install/upgrade: "check_password_restrictions: the password
+ does not meet the complexity criteria!"
Revision history for this message
Chris Taubenheim (christau) wrote :

I had the same problems when i installed same and entered a simple password. Sadly no one posted how to fix this.
The way i did it was:
$> apt-get remove --purge samba
$> apt-get install samba
But do no enter a password when requested.
Greetings, -chris-

Revision history for this message
Tom K. C. Chiu (tomchiukc) wrote :

samba (2:4.1.13+dfsg-4ubuntu3) installed on Ubuntu 15.04

http://babyish.wikia.com/wiki/Samba4?oldid=43243

Changed in samba:
status: Confirmed → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

Upstream says it's fixed in samba 4.8, which Cosmic will likely have.

Changed in samba (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Changed in samba4 (Ubuntu):
status: Confirmed → Won't Fix
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

This is fixed in Cosmic and later.

Changed in samba (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.