I had passwd program = /bin/passwd and testparm didn't complain. But smbd complained in logs when something tried to change a password. Complained that passwd program must contain %u. I think this should be added.
See if this patch does what you want. Index: source/utils/testparm.c =================================================================== --- source/utils/testparm.c (revision 2565) +++ source/utils/testparm.c (working copy) @@ -132,6 +132,13 @@ cannot be executed (error was %s).\n", truncated_prog, strerror(errno) ); ret = 1; } + + /* check if there's a %u parameter present */ + if(strstr_m( lp_passwd_chat(), "%u")!=NULL) { + fprintf( stderr, "ERROR: the 'passwd program' (%s) \ +requires a '%%u' parameter.\n", truncated_prog ); + ret = 1; + } } #ifdef WITH_PAM
Fixed in SVN (based on Ronans patch)
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.