FreeIPA WebUI Login Fails with “Login failed due to an unknown reason.”

I’ve been working with setting up a fresh install of my homelab and have been trying to get FreeIPA to work on Ubuntu Bionic. If you happen to see the “Login failed due to an unknown reason.” error while trying to login through the web UI, try adding execute permissions for all users to the “/var/lib/krb5kdc/” directory.

root@ipa:~# chmod a+x /var/lib/krb5kdc

Try to login after that and, if the problem was the same as my own, you’ll find it working now.

7 thoughts on “FreeIPA WebUI Login Fails with “Login failed due to an unknown reason.”

  1. Thanks. Pointed me in the right direction.

    On Fedora (31 at least) – it’s /var/kerberos/krb5kdc there

  2. After giving the permissions also i am facing the same issue with Login failed due to an unknown reason.

  3. Hmm… I still run into problems… This is in Fedora 33 for a homelab and not suitable for production environment.

    [root@ipa1 ~]# chmod a+x /var/lib/krb5kdc
    chmod: cannot access ‘/var/lib/krb5kdc’: No such file or directory
    [root@ipa1 ~]# mkdir /var/lib/krb5kdc
    [root@ipa1 ~]# ls /var/lib/krb5kdc

    (I used a unique email address specifically for this blog for security and privacy reasons.)

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.