Pass external password quality program name as first argument
authorRuss Allbery <rra@stanford.edu>
Thu, 14 Jan 2010 21:26:11 +0000 (13:26 -0800)
committerLove Hornquist Astrand <lha@h5l.org>
Thu, 14 Jan 2010 23:38:17 +0000 (23:38 +0000)
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>
lib/kadm5/password_quality.c

index 9e1229631244cb2d0eccb0e5516273138d446986..045cf479276e387345023ed707cbe3d1c89e2799 100644 (file)
@@ -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);