I added couple different realm only the first one works. Second realm not authenticating any idea why?
I get following error
"Sorry, unrecognized username or password. Have you forgotten your password?"

Comments

denix’s picture

Priority: Normal » Critical
denix’s picture

When you save a new realm in a new line, the module saves the "^M" char. I did not check yet the code in deep so I cannot propose a patch, but a workaround to this problem is to manually change the values in your database deleting the "^M".

Denis

santhoshabraham’s picture

Thank you! i'll try that.

Incubbus’s picture

Version: 7.x-2.2-beta4 » 7.x-2.2-beta6
Issue summary: View changes
StatusFileSize
new2.52 KB

Possible patch for your issue.

in kerberos_authentication.admin.inc: replaced the serialization- and deserialization mechanisms for the realm and matched the delimiter.
Plus: The strings will be trimmed and empty strings will be removed.

Don't forget to upgrade to 7.x-2.2-beta6 before applying the patch.

Incubbus’s picture

Assigned: Unassigned » Incubbus
Status: Active » Needs review

  • Incubbus committed 41ff0ec on 7.x-2.x
    Issue #1774518 by santhoshabraham: Fixed multi-Realm use
    
Incubbus’s picture

Status: Needs review » Closed (fixed)

7.x-2.2

Tested on Windows & Ubuntu with 2 existing and a fake realm, also added empty lines.