← Back to team overview

enterprise-support team mailing list archive

[Question #200409]: no argumet sent to "check password script"

 

New question #200409 on samba in Ubuntu:
https://answers.launchpad.net/ubuntu/+source/samba/+question/200409

Problem: "check password script" does not pass password to standard input of script


# /usr/local/samba/sbin/smbd --version
Version 3.5.12
 
I made a test script

#!/bin/bash
echo $1 >> /tmp/pw.log
exit 0


and with smb.conf  line
check password script = /path/to/script/nameofscript.sh

just a blank line is written to log file.


check password script = /path/to/script/nameofscript.sh %u
uid is writtnen to log file, but no password.


according to the smbd manpage the function "check password script" should pass the password to standard in of the password-check-script.

When i use a script that actually checks the password it always returns false, now I know why.... :)

Is this a general bug or something in my installation?

Best regards,
Thomas 


-- 
You received this question notification because you are a member of
Ubuntu Server/Client Support Team, which is an answer contact for samba
in Ubuntu.