Pass external password quality program name as first argument
Pass the path to the external password quality program as the first argument to the program and the principal as the second argument, as is conventional, rather than passing only the principal. Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:

committed by
Love Hornquist Astrand

parent
1f4bb75eef
commit
80317bbd20
@@ -170,7 +170,7 @@ external_passwd_quality (krb5_context context,
|
||||
return 1;
|
||||
}
|
||||
|
||||
child = pipe_execv(&in, &out, &error, program, p, NULL);
|
||||
child = pipe_execv(&in, &out, &error, program, program, p, NULL);
|
||||
if (child < 0) {
|
||||
snprintf(message, length, "external password quality "
|
||||
"program failed to execute for principal %s", p);
|
||||
|
Reference in New Issue
Block a user