_handle_passwd_with_ldap
authorDebian GNOME Maintainers <pkg-gnome-maintainers@lists.alioth.debian.org>
Sun, 5 Nov 2017 18:11:44 +0000 (18:11 +0000)
committerMichael Biebl <biebl@debian.org>
Sun, 5 Nov 2017 18:11:44 +0000 (18:11 +0000)
Gbp-Pq: Name 06_handle_passwd_with_ldap.patch

panels/user-accounts/run-passwd.c

index 00239ce0ff362edef6548d6f04089a83a87ec0d8..0fd06d903b263b999c5d981e4d9a1e36ee45671e 100644 (file)
@@ -404,7 +404,7 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswdHandler *pass
 
                         if (is_string_complete (str->str, "assword: ", "failure", "wrong", "error", NULL)) {
 
-                                if (strstr (str->str, "assword: ") != NULL) {
+                                if (strstr (str->str, "assword: ") != NULL && strstr (str->str, "incorrect") == NULL) {
                                         /* Authentication successful */
 
                                         passwd_handler->backend_state = PASSWD_STATE_NEW;