Based on a patch from Ryan Tandy
Bug-Ubuntu: https:/launchpad.net/bugs/607357
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=786530
Forwarded: yes
Gbp-Pq: Name 06_handle_passwd_with_ldap.patch
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;