[Bug 886048] Re: “check password script” option does not reliably pass parameters

Serge Hallyn 886048 at bugs.launchpad.net
Thu Nov 10 04:02:45 UTC 2011


** Changed in: samba (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/886048

Title:
  “check password script” option does not reliably pass parameters

Status in “samba” package in Ubuntu:
  New

Bug description:
  the purpose of my “check password script” is, amongst others, to check
  if a new password contains relevant portions of the username.
  Therefore, it is called like this from smb.conf:

  check password script = /usr/local/sbin/checkpw.sh %U

  I did expect it to pass the username to the script.

  But most of the times, the script receives not the username, but the
  computer account name of the specific user, or even nothing at all.

  I verified this by logging what the script gets:

  username=$1
  log "user $username initiated password change"

  and this is the result:
  /var/log/syslog:Nov  4 08:07:57 <hostname> checkpasswd: user <client hostname> initiated password change
  /var/log/syslog:Nov  4 08:35:53 <server hostname>  checkpasswd: user <client hostname> initiated password change
  /var/log/syslog:Nov  4 08:37:35 <server hostname>  checkpasswd: user <client hostname> initiated password change
  /var/log/syslog:Nov  4 08:56:49 <server hostname>  checkpasswd: user <empty> initiated password change
  /var/log/syslog:Nov  4 08:56:49 <server hostname>  checkpasswd: ERR complexity score not met (2/3)
  /var/log/syslog:Nov  4 08:57:51 <server hostname>  checkpasswd: user <empty> initiated password change
  /var/log/syslog:Nov  4 08:58:30 <server hostname>  checkpasswd: user <empty> initiated password change
  /var/log/syslog:Nov  4 09:23:49 <server hostname>  checkpasswd: user <empty> initiated password change
  /var/log/syslog:Nov  4 09:24:44 <server hostname>  checkpasswd: user <client hostname> initiated password change
  /var/log/syslog:Nov  4 09:24:44 <server hostname>  checkpasswd: ERR complexity score not met (2/3)
  /var/log/syslog:Nov  4 09:26:01 <server hostname>  checkpasswd: user <client hostname> initiated password change

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/886048/+subscriptions




More information about the foundations-bugs mailing list