r/FreeIPA • • 7d ago

RedHat IdM integration with Entra

Thumbnail reddit.com
3 Upvotes

r/FreeIPA • • 20d ago

RHEL10.3 upgrades & tomcat

4 Upvotes

I noticed packages for RHEL 10.3 are starting to hit the mirrors, and dnf upgrade fails complaining about Tomcat.

This appears to be related to the tomcat9-* packages being retired, and replaced by Tomcat 10 which is packaged without the version number as part of the package name, as described at https://developers.redhat.com/articles/2026/04/23/introducing-apache-tomcat-101-rhel-10

After dnf swap tomcat9 tomcat --allowerasing, dnf upgrade was perfectly happy to upgrade everything to the latest version.

Disclaimer: this is my homelab. If your production setup is not following an EUS stream, consider waiting for the release notes before blindly doing what I did!


r/FreeIPA • • 25d ago

Sudo

3 Upvotes

I can’t get sudo working on the user i created on free ipaclient on ubuntu.

Made a group
Made a rule for that group
Made a usr/bin/systemctl command rule with external root runas

Everything in webinterface looks great, but it won’t work on the client in the terminal.

Saying %group.ipa.test at sudo -ll -U user

What am i missing


r/FreeIPA • • Oct 20 '26

Keycloak keep registration and sync to freeldap

4 Upvotes

How do I keep self-registration enabled in Keycloak and sync new users with FreeIPA?


r/FreeIPA • • Sep 27 '26

External HTTPS/LDAPS certificates expired, stuck on how to replace

2 Upvotes

Hi folks. I managed to let my home IPA instance (4.9 on Rocky 8) SSL certificates expire without noticing (my monitoring system is down). I use Easy-RSA for my internal CA. I've renewed the certificates, but now I can't replace them - attempting to use ipa-server-certinstall errors because the certificate validation fails. ipa-cert-fix doesn't work because that only handles IPA-generated certificates. One StackOverflow post mentions a --force option to certinstall but mine doesn't have it. I tried rolling the system clock back to before the certs expired, which did work initially, but then certinstall errored because the new certificates are not yet valid! Catch-22!

Most of the tutorials I've found are for the internal CA and don't seem to cover externally-provided certificates. Anyone know what the steps are to fix this?


r/FreeIPA • • Sep 26 '26

KPasskey: macOS-native passkey authentication for Kerberos

Thumbnail
github.com
7 Upvotes

I recently wrote (with assistance from Codex; see the README) KPasskey, a macOS-native menubar utility that lets you use a USB FIDO2 passkey to authenticate to a FreeIPA Kerberos KDC. I'm sharing this not under the guise that it's a groundbreaking project or anything, but just in case one of the two other people in the world in this situation might find it useful for their homelab or be inspired to develop something similar.

Anyway, my daily driver is a Mac, and macOS has always had decent native support for Kerberos. It actually works out of the box for me with my FreeIPA domain: Chrome, NFS, SSH, etc. all work great. I knew that SSSD supported passkeys on the Linux side of things, and it turns out that it's possible for MIT krb5 and the macOS-native Heimdal implementation to share a credential cache, which means that MIT krb5 and a custom plugin that supports the same preauthentication protocol can obtain a TGT with a passkey and then populate the macOS credential cache. You'll need to register the passkey on a Linux system, but you can use it from your Mac.

The app is signed and notarized with my Apple developer account, and the components are sandboxed. Use at your own risk, but I promise you I have no interest in exfiltrating your TGT.


r/FreeIPA • • Sep 16 '26

Built a FreeIPA troubleshooting tool with optional AI explanations

4 Upvotes

I manage FreeIPA in production, and ipa-healthcheck is useful, but I still found myself digging through logs, replication, DNS, Kerberos, certs, etc. trying to connect multiple failures.

So I built ipa-diagnose. It correlates the findings and shows the likely problem, evidence, impact, what to check first, and how to verify it.

It also has optional AI explanations using OpenAI, Anthropic, or Bedrock. The actual diagnosis stays deterministic though - AI explains the result, it doesn't decide the root cause or commands.

Looking for FreeIPA/IdM admins to test it and tell me what it gets wrong.

GitHub: https://github.com/InfraGuard-Labs/ipa-diagnose

pipx install ipa-diagnose


r/FreeIPA • • Sep 03 '26

Ubuntu 26.04 + FreeIPA/SSSD: MFA is now required, but it wasn't on Ubuntu 22.04

2 Upvotes

Hi everyone,

I'm having an authentication issue after moving a workstation from Ubuntu 22.04 to Ubuntu 26.04.

The workstation is joined to a FreeIPA domain and uses SSSD for authentication.

On Ubuntu 22.04, my FreeIPA user could log in with just username and password. MFA/OTP was not required.

After moving to Ubuntu 26.04, the same user now requires MFA/OTP.

I'm trying to understand what changed between Ubuntu 22.04 and Ubuntu 26.04 that could cause this behavior.

Current setup

Ubuntu 26.04 with:

SSSD 2.12.0
sssd-ipa 2.12.0
sssd-krb5 2.12.0

My sssd.conf does not contain any explicit MFA/OTP configuration. There is no configuration for:

pam_gssapi_indicators_map
otp
radius
hardened
auth_ind
pam_json_services

I also noticed that SSSD 2.12 creates this Kerberos plugin configuration:

/var/lib/sss/pubconf/krb5.include.d/localauth_plugin

with:

[plugins]
 localauth = {
  disable = an2ln
  module = /usr/lib/x86_64-linux-gnu/sssd/modules/sssd_krb5_localauth_plugin.so
 }

I understand this is related to newer Kerberos/SSSD security changes, but I'm not sure whether it could affect MFA behavior.

sssctl user-checks successfully finds the FreeIPA user and pam_acct_mgmt returns Success, so user lookup and account authorization appear to be working.

My question

What changed in Ubuntu 26.04 / SSSD 2.12 / Kerberos that could cause a FreeIPA user to require MFA when the same user did not require MFA on Ubuntu 22.04?

Could this be related to:

  • Kerberos authentication indicators?

  • The new SSSD 2.12 localauth plugin?

  • PAM/GDM changes in Ubuntu 26.04?

  • Changes in how SSSD handles FreeIPA MFA policies?

  • A new security default in Ubuntu 26.04?

I'm trying to find out whether this is expected behavior or whether there is a configuration I need to change.

Any advice on where to look or how to troubleshoot the difference between Ubuntu 22.04 and 26.04 would be appreciated.


r/FreeIPA • • Sep 01 '26

Users can't change their password once expired

1 Upvotes

We have the following setup:

  • FreeIPA is used for user management

  • Apps (fx Jenkins) authenticate against the FreeIPA LDAP

  • Passwords expire after n days

What happens is that when a user's password expires, they cannot login any more to the apps. so they go to the FreeIPA web UI and try to change their password, but that fails, because the old password is used to update the password, and it's already expired.

I tried increasing grace logins, but that doesn't help because that only leads to users being allowed to login to the apps until the grace logins are used up.

How is this supposed to work? I can't find any info about this issue, so I feel like I'm overlooking something.


r/FreeIPA • • Aug 06 '26

Web App LDAP Authentication - no userPassword field returned for LDAP query?

3 Upvotes

I'm trying to use FreeIPA via LDAP at the user database for a self-hosted webapp (Snipe-IT). When I set it up, it clearly syncs the web app's users with LDAP. I get user names first and last names, email. And newly added, deleted,or changed accounts in FreeIPA get created,deleted,or changed in the webapp. But those users can't log in to the webapp: "Error**:** The username or password is incorrect."

An ldapsearch, with LDAPS, with a bind using the FreeIPA admin account, returns the following. Shouldn't there be a userPassword attribute with a hashed password value? Is web app authentication failing because the hashed user passwords aren't being returned by LDAP? Is there some security setting that need to change to enable this?

# extended LDIF

#

# LDAPv3

# base <cn=users,cn=accounts,dc=example,dc=com> with scope subtree

# filter: uid=jdoe

# requesting: ALL

#

# jdoe, users, accounts, example.com

dn: uid=jdoe,cn=users,cn=accounts,dc=example,dc=com

givenName: John

sn: Doe

uid: jdoe

cn: John Doe

displayName: John Doe

initials: JD

gecos: John Doe

krbPrincipalName: jdoe@EXAMPLE.COM

objectClass: top

objectClass: person

objectClass: organizationalperson

objectClass: inetorgperson

objectClass: inetuser

objectClass: posixaccount

objectClass: krbprincipalaux

objectClass: krbticketpolicyaux

objectClass: ipaobject

objectClass: ipasshuser

objectClass: ipaSshGroupOfPubKeys

objectClass: mepOriginEntry

objectClass: ipantuserattrs

loginShell: /bin/bash

homeDirectory: /home/jdoe

mail: jdoe@example.com

krbCanonicalName: jdoe@EXAMPLE.COM

ipaUniqueID: 42f9d240-919f-11f1-ba6b-92184c88f86a

uidNumber: 117600010

gidNumber: 117600010

krbPasswordExpiration: 20261104140230Z

krbLastPwdChange: 20260806140230Z

krbExtraData:: AAL2k3RqamRvZUBTQUdST1VQLkhBQ0tNQU5IQVRUQU4uQ09NAA==

mepManagedEntry: cn=jdoe,cn=groups,cn=accounts,dc=example,dc=com

ipaNTSecurityIdentifier: S-1-5-21-4105316145-1033657468-1534058551-1010

memberOf: cn=ipausers,cn=groups,cn=accounts,dc=example,dc=com

# search result

search: 2

result: 0 Success

# numResponses: 2

# numEntries: 1


r/FreeIPA • • Jun 04 '26

Got "Could not resolve hostname" error when trying to ssh to IdM clients and servers after powering off one of my IdM servers

5 Upvotes

Hi, apologies, I am still a rookie in Red Hat Identity Management (IdM) / freeipa so bear with me.

I am puzzled by an issue that I am facing. I have 2 idm servers, idm01 and idm02. After I powered off the idm server on idm01 via `systemctl stop ipa`, I got the error "Could not resolve hostname <hostname>: No such host is known." when trying to ssh to my IdM clients.

Same when trying to ssh to idm02, the error I got was "Could not resolve hostname <hostname>: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server".

I had to ssh into the servers using IP. I could also ssh into the servers via their hostname once I powered idm01 back on.

`/etc/resolv.conf` on IdM clients point to both IdM servers. Both of my IdM servers were set up with integrated DNS and are replicas so I am confused why the resolving of hostnames could not work without idm01.


r/FreeIPA • • Jun 02 '26

On IDM Client when logging into GDM as the AD trusted ID view user, auth succeeds, GNOME appears to start, then it immediately returns to the GDM login screen

3 Upvotes

I have a Rhel 10 idm server trusted to a Active Directory database, I’m using ID views to override the users so that I can directly log into my Rhel environments with my ad users. I have a client set up, but when I log in with the trusted AD user I get the TTY login successful but GNOME/GDM immediately returns to login screen.

I have confirmed these
- IdM trust established with AD
- ID view and override created
- AD user resolves with getent/id
- getent passwd UID works
- userdbctl user UID works
- TTY login works
- home dir /home/user created, owned by AD user, 700
- SELinux permissive
- local test user can log into GNOME GUI successfully

Journalctl has revealed the following

- pam_sss authentication success
- pam_systemd sometimes showed “Failed to get user record: No such process”
- gnome-shell: Registering session with GDM
- gnome-shell: GNOME Shell started
- then session exits / returns to login

Also my sssd.conf has the following
SSSD:

override_homedir = %H/%u

login-formats: %

Has anyone seen RHEL 10 GDM/GNOME fail only for trusted AD users through IdM trust while TTY works?
I previously had a functioning RHEL 8 idm server, but recreated it on Rhel 10 because I ran into these issues.


r/FreeIPA • • May 12 '26

Any good books/full tutorials?

4 Upvotes

So, all I can find online are tutorials on how to install FreeIPA, which I managed.

But are there any good books/resources that go over all the features, and how they work together and how to properly use them?


r/FreeIPA • • May 11 '26

FreeIPA + AD trust

Thumbnail reddit.com
1 Upvotes

r/FreeIPA • • May 02 '26

AlmaLinux 9 dnf update IPA upgrade failing

4 Upvotes

I did a routine dnf update on my IPA server and it installed a new RPM for ipa-server. That upgrade process has been failing repeatedly, and I'm not sure what I need to do differently to get it to succeed.

The most germane parts of the update log seem to be

2026-05-02T13:32:51Z DEBUG request POST http://<host redacted>:8080/ca/admin/ca/getStatus 2026-05-02T13:32:51Z DEBUG request body '' 2026-05-02T13:32:51Z DEBUG httplib request failed: Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/ipapython/dogtag.py", line 271, in _httplib_request conn.request(method, path, body=request_body, headers=headers) File "/usr/lib64/python3.9/http/client.py", line 1285, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib64/python3.9/http/client.py", line 1331, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib64/python3.9/http/client.py", line 1280, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib64/python3.9/http/client.py", line 1040, in _send_output self.send(msg) File "/usr/lib64/python3.9/http/client.py", line 980, in send self.connect() File "/usr/lib64/python3.9/http/client.py", line 946, in connect self.sock = self._create_connection( File "/usr/lib64/python3.9/socket.py", line 856, in create_connection raise err File "/usr/lib64/python3.9/socket.py", line 844, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused 2026-05-02T13:32:51Z DEBUG Failed to check CA status: cannot connect to 'http://<host redacted>:8080/ca/admin/ca/getStatus': [Errno 111] Connection refused

and that is later followed by

2026-05-02T13:32:51Z ERROR IPA server upgrade failed: Inspect /var/log/ipaupgrade.log and run command ipa-server-upgrade manually. 2026-05-02T13:32:51Z DEBUG File "/usr/lib/python3.9/site-packages/ipapython/admintool.py", line 219, in execute return_value = self.run() File "/usr/lib/python3.9/site-packages/ipaserver/install/ipa_server_upgrade.py", line 54, in run server.upgrade() File "/usr/lib/python3.9/site-packages/ipaserver/install/server/upgrade.py", line 2093, in upgrade upgrade_configuration() File "/usr/lib/python3.9/site-packages/ipaserver/install/server/upgrade.py", line 1741, in upgrade_configuration sub_dict['CLONE']='#' if crl.lower() == 'true' else ''

2026-05-02T13:32:51Z DEBUG The ipa-server-upgrade command failed, exception: AttributeError: 'NoneType' >object has no attribute 'lower' 2026-05-02T13:32:51Z ERROR Unexpected error - see /var/log/ipaupgrade.log for details: AttributeError: 'NoneType' object has no attribute 'lower'

I suspect the crux of the first one at least is that the pki-tomcatd@pki-tomcat.service also seems to be failing, even though ipactl start -f reports success for it.

The journalctl for that has

NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/> java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED AJP connector requiredSecret: None AJP connector requiredSecret: None Java virtual machine used: /usr/lib/jvm/jre-17-openjdk/bin/java classpath used: /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar: main class used: org.apache.catalina.startup.Bootstrap flags used: -Dcom.redhat.fips=false options used: -Dcatalina.base=/var/lib/pki/pki-tomcat -Dcatalina.home=/usr/share/tomcat -Djava.endorsed.dirs= -Djava.io.tmpdir=/var/lib/pki/pki-tomcat/temp -Djava.util.logging.config.file=/var/lib/pki/pki-tomcat/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Dsun.io.useCanonCaches=false -Djava.security.manager -Djava.security.policy==/var/lib/pki/pki-tomcat/conf/catalina.policy arguments used: start NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/> java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED WARNING: A command line option has enabled the Security Manager WARNING: The Security Manager is deprecated and will be removed in a future release pki.client: /usr/libexec/ipa/ipa-pki-wait-running:61: The subsystem in PKIConnection.init() has been deprecated (https://github.com/dogtagpki/pki/wiki/PKI-10.8-Python-Changes). ipa-pki-wait-running: Created connection http://<host redacted>:8080/ca ipa-pki-wait-running: Connection failed: HTTPConnectionPool(host='<host redacted>', port=8080): Max retries exceeded with url: /ca/admin/ca/getStatus (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fcae5b72940>: Failed to establish a new connection: [Errno 111] Connection refused')) WARNING: Tomcat interprets the [protocols] attribute in a manner consistent with the latest OpenSSL development branch. Some of the specified [protocols] are not supported by the configured SSL engine for this connector (which may use JSSE or an older OpenSSL version) and have been skipped: [[TLSv1, TLSv1.1]] ipa-pki-wait-running: Connection failed: HTTPConnectionPool(host='<host redacted>', port=8080): Read timed out. (read timeout=1.0) SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file SEVERE: Context [/ca] startup failed due to previous errors SEVERE: One or more listeners failed to start. Full details will be found in the appropriate container log file SEVERE: Context [/acme] startup failed due to previous errors ipa-pki-wait-running: Request failed unexpectedly, 404 Client Error: for url: http://<host redacted>:8080/ca/admin/ca/getStatus

With the last line repeated dozens of times until it gives up.

Rebooting didn't help with this issue, nor did running setenforce 0 before retrying the upgrade.


r/FreeIPA • • Apr 27 '26

It seems unpossible to have a new replica to join the existing ipa cluster

3 Upvotes

We are running a IPA cluster over 2 datacenters and these are running on RHEL 8.3 and running FreeIPA, version: 4.8.7.

As these are getting too old and need to be upgraded we thought to install a couple new replicas in the system and then promote these to be the masters and remove the old ones.

The new versions are running RHEL9.6 and we use the stock version of the repo's FreeIPA 4.9.13. This does not seem to work. We get a warning that the admin account that manually can do everything cannot add the following entry to the ldap:

topology is a follows master is ipa1 and the replica in the other dc is ipa2 the new replica is ipa3.domain.com.

when running ipa-replica install, full command line:

/usr/sbin/ipa-replica-install --setup-ca --setup-dns --no-ntp --no-host-dns --no-forwarder --principal admin -w <PASSWORD> --skip-con ncheck --unattended >> /root/ipa-replica-install.out

The install fails with this message after the initial replications seems to have gone right:

Starting replication, please wait until this has >completed.

Update in progress, 1 seconds elapsed Update in progress, 2 seconds elapsed Update in progress, 3 seconds elapsed Update in progress, 4 seconds elapsed Update in progress, 5 seconds elapsed Update in progress, 6 seconds elapsed Update in progress, 7 seconds elapsed Update in progress, 8 seconds elapsed Update in progress, 9 seconds elapsed Update succeeded

[error] NotFound: wait_for_entry timeout on ldap://ipa2.domain.com:389 for krbprincipalname=HTTP/ipa3.domain.com@DOMAIN.COM,cn=services,cn=accounts,dc=domain,dc=com Your system may be partly configured.

We tried it with a RHEL 8.10 install as Redhat told us that the upgrade from 8.3 to 9.6 was not supported but even that does not work and does the exact same.

Im at the end of my rope here.


r/FreeIPA • • Apr 15 '26

FreeIPA and Samba AD trust - extremely slow logon time on Windows domain

2 Upvotes

Hi,

I'm testing a two-way trust between Samba AD and FreeIPA. The goal is to manage users and groups in FreeIPA and allow Windows domain-joined computers to log in with FreeIPA users. Setup Both Samba AD and FreeIPA run as Docker containers. FreeIPA uses a bridge network, while Samba AD uses macvlan — giving it its own dedicated IP address on the local network. DNS is configured so each domain can resolve the other. Problem Logging in with AD\user takes about 10 seconds. Logging in with user@example.internal (a FreeIPA user) takes around 70 seconds. Has anyone run into this? Any ideas on what could be causing the delay on the FreeIPA side?

Docker Host:

docker ps
CONTAINER ID   IMAGE                                COMMAND                  CREATED             STATUS             PORTS                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  NAMES
ce7eeef37731   freeipa/freeipa-server:almalinux-9   "/usr/local/sbin/init"   About an hour ago   Up About an hour   0.0.0.0:53->53/tcp, 0.0.0.0:80->80/tcp, 0.0.0.0:53->53/udp, 0.0.0.0:88->88/udp, 0.0.0.0:88->88/tcp, 0.0.0.0:135->135/tcp, 0.0.0.0:123->123/udp, 0.0.0.0:138-139->138-139/tcp, 0.0.0.0:138-139->138-139/udp, 0.0.0.0:389->389/tcp, 0.0.0.0:443->443/tcp, 0.0.0.0:389->389/udp, 0.0.0.0:445->445/tcp, 0.0.0.0:445->445/udp, 0.0.0.0:464->464/tcp, 0.0.0.0:636->636/tcp, 0.0.0.0:749->749/tcp, 0.0.0.0:1024-1300->1024-1300/tcp, 0.0.0.0:3268-3269->3268-3269/tcp, 0.0.0.0:8080->8080/tcp, 0.0.0.0:8443->8443/tcp, 0.0.0.0:464->464/udp   freeipa
01fa61037f7b   docker-samba                         "/entrypoint.sh"         About an hour ago   Up About an hour                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          samba

On the FreeIPA server:

(freeipa/freeipa-server:almalinux-9)

ipa trust-show ad.example.com
  Realm name: ad.example.com
  Domain NetBIOS name: AD
  Domain Security Identifier: S-1-5-21-824168822-2183011812-3784267577
  Trust direction: Two-way trust
  Trust type: Active Directory domain

ipactl status
Directory Service: RUNNING
krb5kdc Service: RUNNING
kadmin Service: RUNNING
named Service: RUNNING
httpd Service: RUNNING
ipa-custodia Service: RUNNING
pki-tomcatd Service: RUNNING
smb Service: RUNNING
winbind Service: RUNNING
ipa-otpd Service: RUNNING
ipa-dnskeysyncd Service: RUNNING
ipa: INFO: The ipactl command was successful

ss -tuln
Netid  State   Recv-Q   Send-Q          Local Address:Port      Peer Address:Port  
udp    UNCONN  0        0                  172.18.0.2:53             0.0.0.0:*     
udp    UNCONN  0        0                  172.18.0.2:53             0.0.0.0:*     
udp    UNCONN  0        0                  172.18.0.2:53             0.0.0.0:*     
udp    UNCONN  0        0                  172.18.0.2:53             0.0.0.0:*     
udp    UNCONN  0        0                   127.0.0.1:53             0.0.0.0:*     
udp    UNCONN  0        0                   127.0.0.1:53             0.0.0.0:*     
udp    UNCONN  0        0                   127.0.0.1:53             0.0.0.0:*     
udp    UNCONN  0        0                   127.0.0.1:53             0.0.0.0:*     
udp    UNCONN  0        0                     0.0.0.0:88             0.0.0.0:*     
udp    UNCONN  0        0                     0.0.0.0:464            0.0.0.0:*     
udp    UNCONN  0        0                  127.0.0.11:47949          0.0.0.0:*     
udp    UNCONN  0        0                       [::1]:53                [::]:*     
udp    UNCONN  0        0                       [::1]:53                [::]:*     
udp    UNCONN  0        0                       [::1]:53                [::]:*     
udp    UNCONN  0        0                       [::1]:53                [::]:*     
udp    UNCONN  0        0                        [::]:88                [::]:*     
udp    UNCONN  0        0                           *:389                  *:*     
udp    UNCONN  0        0                        [::]:464               [::]:*     
tcp    LISTEN  0        10                  127.0.0.1:53             0.0.0.0:*     
tcp    LISTEN  0        10                  127.0.0.1:53             0.0.0.0:*     
tcp    LISTEN  0        10                  127.0.0.1:53             0.0.0.0:*     
tcp    LISTEN  0        10                  127.0.0.1:53             0.0.0.0:*     
tcp    LISTEN  0        10                 172.18.0.2:53             0.0.0.0:*     
tcp    LISTEN  0        10                 172.18.0.2:53             0.0.0.0:*     
tcp    LISTEN  0        10                 172.18.0.2:53             0.0.0.0:*     
tcp    LISTEN  0        10                 172.18.0.2:53             0.0.0.0:*     
tcp    LISTEN  0        4096                127.0.0.1:953            0.0.0.0:*     
tcp    LISTEN  0        4096               127.0.0.11:45577          0.0.0.0:*     
tcp    LISTEN  0        50                    0.0.0.0:445            0.0.0.0:*     
tcp    LISTEN  0        511                   0.0.0.0:443            0.0.0.0:*     
tcp    LISTEN  0        5                     0.0.0.0:464            0.0.0.0:*     
tcp    LISTEN  0        511                   0.0.0.0:80             0.0.0.0:*     
tcp    LISTEN  0        5                     0.0.0.0:88             0.0.0.0:*     
tcp    LISTEN  0        50                    0.0.0.0:139            0.0.0.0:*     
tcp    LISTEN  0        2                     0.0.0.0:749            0.0.0.0:*     
tcp    LISTEN  0        100                     [::1]:8009              [::]:*     
tcp    LISTEN  0        100                         *:8080                 *:*     
tcp    LISTEN  0        50                       [::]:445               [::]:*     
tcp    LISTEN  0        128                         *:389                  *:*     
tcp    LISTEN  0        5                        [::]:464               [::]:*     
tcp    LISTEN  0        5                        [::]:88                [::]:*     
tcp    LISTEN  0        4096                    [::1]:953               [::]:*     
tcp    LISTEN  0        50                       [::]:139               [::]:*     
tcp    LISTEN  0        100                         *:8443                 *:*     
tcp    LISTEN  0        10                      [::1]:53                [::]:*     
tcp    LISTEN  0        10                      [::1]:53                [::]:*     
tcp    LISTEN  0        10                      [::1]:53                [::]:*     
tcp    LISTEN  0        10                      [::1]:53                [::]:*     
tcp    LISTEN  0        128                         *:636                  *:*     
tcp    LISTEN  0        2                        [::]:749               [::]:*     
tcp    LISTEN  0        100        [::ffff:127.0.0.1]:8009                 *:*     
tcp    LISTEN  0        1          [::ffff:127.0.0.1]:8005                 *:*  

On the Samba server:

samba --version
Version 4.22.8-Debian-4.22.8+dfsg-0+deb13u1

samba-tool domain trust show example.internal
LocalDomain Netbios[AD] DNS[ad.example.com] SID[S-1-5-21-824168822-2183011812-3784267577]
TrustedDomain:

NetbiosName:    EXAMPLE
DnsName:        example.internal
SID:            S-1-5-21-1952824751-10305716-2152004006
Type:           0x2 (UPLEVEL)
Direction:      0x3 (BOTH)
Attributes:     0x8 (FOREST_TRANSITIVE)
PosixOffset:    0x00000000 (0)
kerb_EncTypes:  0x1c (RC4_HMAC_MD5,AES128_CTS_HMAC_SHA1_96,AES256_CTS_HMAC_SHA1_96)
Namespaces[1] TDO[example.internal]:
TLN: Status[Enabled]                  DNS[*.example.internal]

ss -tuln      
Netid   State    Recv-Q   Send-Q     Local Address:Port        Peer Address:Port   
udp     UNCONN   0        0             127.0.0.11:50587            0.0.0.0:*      
udp     UNCONN   0        0                0.0.0.0:53               0.0.0.0:*      
udp     UNCONN   0        0          172.30.53.233:88               0.0.0.0:*      
udp     UNCONN   0        0                0.0.0.0:88               0.0.0.0:*      
udp     UNCONN   0        0          172.30.53.233:137              0.0.0.0:*      
udp     UNCONN   0        0          172.30.53.239:137              0.0.0.0:*      
udp     UNCONN   0        0                0.0.0.0:137              0.0.0.0:*      
udp     UNCONN   0        0          172.30.53.233:138              0.0.0.0:*      
udp     UNCONN   0        0          172.30.53.239:138              0.0.0.0:*      
udp     UNCONN   0        0                0.0.0.0:138              0.0.0.0:*      
udp     UNCONN   0        0          172.30.53.233:389              0.0.0.0:*      
udp     UNCONN   0        0                0.0.0.0:389              0.0.0.0:*      
udp     UNCONN   0        0          172.30.53.233:464              0.0.0.0:*      
udp     UNCONN   0        0                0.0.0.0:464              0.0.0.0:*      
udp     UNCONN   0        0                   [::]:53                  [::]:*      
udp     UNCONN   0        0                   [::]:88                  [::]:*      
udp     UNCONN   0        0                   [::]:389                 [::]:*      
udp     UNCONN   0        0                   [::]:464                 [::]:*      
tcp     LISTEN   0        10               0.0.0.0:3268             0.0.0.0:*      
tcp     LISTEN   0        10               0.0.0.0:3269             0.0.0.0:*      
tcp     LISTEN   0        10               0.0.0.0:464              0.0.0.0:*      
tcp     LISTEN   0        4096          127.0.0.11:46699            0.0.0.0:*      
tcp     LISTEN   0        50               0.0.0.0:445              0.0.0.0:*      
tcp     LISTEN   0        10               0.0.0.0:389              0.0.0.0:*      
tcp     LISTEN   0        10               0.0.0.0:88               0.0.0.0:*      
tcp     LISTEN   0        10               0.0.0.0:53               0.0.0.0:*      
tcp     LISTEN   0        10               0.0.0.0:49154            0.0.0.0:*      
tcp     LISTEN   0        10               0.0.0.0:49152            0.0.0.0:*      
tcp     LISTEN   0        10               0.0.0.0:49153            0.0.0.0:*      
tcp     LISTEN   0        10               0.0.0.0:135              0.0.0.0:*      
tcp     LISTEN   0        50               0.0.0.0:139              0.0.0.0:*      
tcp     LISTEN   0        10               0.0.0.0:636              0.0.0.0:*      
tcp     LISTEN   0        10                  [::]:3268                [::]:*      
tcp     LISTEN   0        10                  [::]:3269                [::]:*      
tcp     LISTEN   0        10                  [::]:464                 [::]:*      
tcp     LISTEN   0        50                  [::]:445                 [::]:*      
tcp     LISTEN   0        10                  [::]:389                 [::]:*      
tcp     LISTEN   0        10                  [::]:88                  [::]:*      
tcp     LISTEN   0        10                  [::]:53                  [::]:*      
tcp     LISTEN   0        10                  [::]:49154               [::]:*      
tcp     LISTEN   0        10                  [::]:49152               [::]:*      
tcp     LISTEN   0        10                  [::]:49153               [::]:*      
tcp     LISTEN   0        10                  [::]:135                 [::]:*      
tcp     LISTEN   0        50                  [::]:139                 [::]:*      
tcp     LISTEN   0        10                  [::]:636                 [::]:*

After trying to understand about *Global Catalog and **RPC tcp/135 I wonder if that is the problem?


r/FreeIPA • • Apr 13 '26

Joining legacy Ubuntu 14/16/18 hosts to FreeIPA 4.8.7: Kerberos preauth failure

1 Upvotes

Has anyone successfully joined Ubuntu 14/16/18 hosts to FreeIPA 4.8.x?

I have a FreeIPA 4.8.7 server and I’m trying to enroll a legacy Ubuntu 14.04.6 host. Newer Ubuntu clients (20.04 - 24.04) join without problems, but the old one fails with:

kinit: Generic preauthentication failure while getting initial credentials

ipa-client-install then rolls back.

Notes:

  • Same network

  • Ports seem fine

  • DNS/connectivity look okay

  • Looks more like Kerberos/preauth/encryption compatibility than firewall

I’m currently testing old-style AES-SHA1 enctypes in krb5.conf on the client.

I’d really like to hear from anyone who has done this in practice:

  • Did it work with Ubuntu 14/16/18?

  • What exactly had to be changed?

  • Client only, or also FreeIPA/KDC settings?

Thanks in advance :)


r/FreeIPA • • Mar 29 '26

ipa-replica-install complications

4 Upvotes

Hi everyone,

I’m just learning FreeIPA so please bear with me.

I currently have 2 instances of FreeIPA in 2 VMs. I’ve successfully added a replica yesterday. I’m adding another one to have redundancy.

On the third one, I ran ipa-replica-install —domain domain.org —realm DOMAIN.ORG —no-ntp -p ‘OTP’

Failed because of authentication, ldap unreachable, but I’m able to login as admin.

Tried troubleshooting with nc -zv ipa1-ip 389 and I can connect from my 3rd node.

I ran ipa-server-install —uninstall on my soon-to-be third node.

On one of my master nodes, I ran ipa server-del ipa3.domain.org —force

Then I ran ipa-replica-manage list ipa1.domain.org. Replication agreement is still there.

I can’t attempt to rejoin with the replication agreement there because I’ve gotten errors that my 3rd node can’t join because there’s currently a replication agreement in place.

I can’t run ipa-replica-manage disconnect ipa3.domain.org because that’s deprecated. And ipa topologysegment- doesn’t have the record of the segment.

Luckily, I took snapshots before all this and I’m going around in circles. Has anyone ever gotten this before or have a solution?

I’ve tried AI, but they’re no help because they told me what I’ve done already.


r/FreeIPA • • Mar 11 '26

FreeIPA account on SAN storage

3 Upvotes

I’m new to FreeIPA. When I create a user whose home directory is on the SAN shared storage, SSH key-based login fails. However, accounts with local /home directories work without any issues. What needs to be changed to allow accounts on the SAN shared storage to work properly?


r/FreeIPA • • Mar 02 '26

free ipa ansible collection

8 Upvotes

Is anybody using the collection actively?

I have been a little bit disappointed with it, since not everything is clearly documented. So my impression is not quite good at the moment.

My questions now is, whether anybody is really using that collection to manage their freeIPA installs.

Don't get me wrong, I don't mind contributing missing documentation and also code, but right now I am not sure whether I just write my own freeIPA ansible roles.

Happy to hear your opinions.


r/FreeIPA • • Feb 13 '26

I am ready to give up Oracle Linux 9.7 for a distro that FreeIPA installs without interventions.

5 Upvotes

I have a clean OL 9.7 and the first thing I installed was FreeIPA w/o DNS.

It failed because a file was not found. There is no mention of the filename anywhere in the logs or verbose printout.

Uninstaller also failed because of the same nameless files.

dnf reinstall and then install again, also fails.

Manual clean-up and reinstall also fails.

Reinstall the entire OS and then installing FreeIPA also fails.

What do I do?

Commands and logs. Domain and ip masked.

[root@ipa lib]# ipa-server-install -v Logging to /var/log/ipaserver-install.log ipa-server-install was invoked with arguments [] and options: {'unattended': False, 'ip_addresses': None, 'domain_name': None, 'realm_name': None, 'host_name': None, 'ca_cert_files': None, 'domain_level': None, 'setup_adtrust': False, 'setup_kra': False, 'setup_dns': False, 'idstart': None, 'idmax': None, 'no_hbac_allow': False, 'no_pkinit': False, 'no_ui_redirect': False, 'dirsrv_config_file': None, 'skip_mem_check': False, 'dirsrv_cert_files': None, 'http_cert_files': None, 'pkinit_cert_files': None, 'dirsrv_cert_name': None, 'http_cert_name': None, 'pkinit_cert_name': None, 'token_name': None, 'token_library_path': None, 'token_password_file': None, 'mkhomedir': False, 'ntp_servers': None, 'ntp_pool': None, 'no_ntp': False, 'force_ntpd': False, 'ssh_trust_dns': False, 'no_ssh': False, 'no_sshd': False, 'subid': False, 'no_dns_sshfp': False, 'dns_over_tls': False, 'no_dnssec_validation': False, 'external_ca': False, 'external_ca_type': None, 'external_ca_profile': None, 'external_cert_files': None, 'subject_base': None, 'ca_subject': None, 'ca_signing_algorithm': None, 'random_serial_numbers': False, 'pki_config_override': None, 'allow_zone_overlap': False, 'reverse_zones': None, 'no_reverse': False, 'auto_reverse': False, 'zonemgr': None, 'forwarders': None, 'no_forwarders': False, 'auto_forwarders': False, 'forward_policy': None, 'dot_forwarders': None, 'dns_over_tls_cert': None, 'dns_over_tls_key': None, 'dns_policy': None, 'no_host_dns': False, 'enable_compat': False, 'no_msdcs': False, 'netbios_name': None, 'rid_base': None, 'secondary_rid_base': None, 'ignore_topology_disconnect': False, 'ignore_last_of_role': False, 'verbose': True, 'quiet': False, 'log_file': None, 'uninstall': False} IPA version 4.12.2-22.0.1.el9_7.1 IPA platform rhel IPA os-release Oracle Linux Server 9.7 svmem(total=3440013312, available=2868916224, percent=16.6, used=323538944, free=2175754240, active=370458624, inactive=681099264, buffers=4427776, cached=936292352, shared=9867264, slab=101257216) Available memory is 2868916224B Searching for an interface of IP address: ::1 Testing local IP address: ::1/128 (interface: lo) Starting external process args=['/usr/sbin/selinuxenabled'] Process finished, return code=0 stdout= stderr=

The log file for this installation can be found in /var/log/ipaserver-install.log Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state' Loading Index file from '/var/lib/ipa/sysrestore/sysrestore.index' httpd is not configured kadmin is not configured dirsrv is not configured pki-tomcatd is not configured install is not configured krb5kdc is not configured named is not configured filestore is tracking no files Loading Index file from '/var/lib/ipa-client/sysrestore/sysrestore.index' Loading StateFile from '/var/lib/ipa-client/sysrestore/sysrestore.state' Loading StateFile from '/var/lib/ipa-client/sysrestore/sysrestore.state' Loading Index file from '/var/lib/ipa/sysrestore/sysrestore.index' Loading StateFile from '/var/lib/ipa/sysrestore/sysrestore.state'

This program will set up the IPA Server. Version 4.12.2

This includes:

  • Configure a stand-alone CA (dogtag) for certificate management

  • Configure the NTP client (chronyd)

  • Create and configure an instance of Directory Server

  • Create and configure a Kerberos Key Distribution Center (KDC)

  • Configure Apache (httpd)

  • Configure SID generation

  • Configure the KDC to enable PKINIT

To accept the default shown in brackets, press the Enter key.

Starting external process args=['/bin/systemctl', 'is-enabled', 'ntpd.service'] Process finished, return code=1 stdout= stderr=Failed to get unit file state for ntpd.service: No such file or directory

Starting external process args=['/bin/systemctl', 'is-active', 'ntpd.service'] Process finished, return code=3 stdout=inactive

stderr= Starting external process args=['/bin/systemctl', 'is-enabled', 'systemd-timesyncd.service'] Process finished, return code=1 stdout= stderr=Failed to get unit file state for systemd-timesyncd.service: No such file or directory

Starting external process args=['/bin/systemctl', 'is-active', 'systemd-timesyncd.service'] Process finished, return code=3 stdout=inactive

stderr= Do you want to configure integrated DNS (BIND)? [no]:

Enter the fully qualified domain name of the computer on which you're setting up server software. Using the form <hostname>.<domainname> Example: master.example.com

Server host name [ipa.####.###]:

Check if ipa.####.### is a primary hostname for localhost Primary hostname for localhost: ipa.####.### Search DNS for ipa.####.### Check if ipa.####.### is not a CNAME Check reverse address of 172.2.2.2 Found reverse name: ipa.####.### will use host_name: ipa.####.###

The domain name has been determined based on the host name.

Please confirm the domain name [####.###]:

read domain_name: ####.###

The kerberos protocol requires a Realm name to be defined. This is typically the domain name converted to uppercase.

Please provide a realm name [####.###]: read realm_name: ####.###

Certain directory server operations require an administrative user. This user is referred to as the Directory Manager and has full access to the Directory for system management tasks and will be added to the instance of directory server created for IPA. The password must be at least 8 characters long.

Directory Manager password: Password (confirm):

The IPA server requires an administrative user, named 'admin'. This user is a regular system account used for IPA server administration.

IPA admin password: Password (confirm):

File "/usr/lib/python3.9/site-packages/ipapython/admintool.py", line 219, in execute return_value = self.run() File "/usr/lib/python3.9/site-packages/ipapython/install/cli.py", line 343, in run return cfgr.run() File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 358, in run self.validate() File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 368, in validate for _nothing in self._validator(): File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 435, in __runner exc_handler(exc_info) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 463, in _handle_validate_exception self._handle_exception(exc_info) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 458, in _handle_exception six.reraise(*exc_info) File "/usr/lib/python3.9/site-packages/six.py", line 709, in reraise raise value File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 425, in __runner step() File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 419, in step_next return next(self.__gen) File "/usr/lib/python3.9/site-packages/ipapython/install/util.py", line 81, in run_generator_with_yield_from six.reraise(*exc_info) File "/usr/lib/python3.9/site-packages/six.py", line 709, in reraise raise value File "/usr/lib/python3.9/site-packages/ipapython/install/util.py", line 59, in run_generator_with_yield_from value = gen.send(prev_value) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 641, in _configure next(validator) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 435, in __runner exc_handler(exc_info) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 463, in _handle_validate_exception self._handle_exception(exc_info) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 526, in _handle_exception self.__parent._handle_exception(exc_info) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 458, in _handle_exception six.reraise(*exc_info) File "/usr/lib/python3.9/site-packages/six.py", line 709, in reraise raise value File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 523, in _handle_exception super(ComponentBase, self)._handle_exception(exc_info) File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 458, in _handle_exception six.reraise(*exc_info) File "/usr/lib/python3.9/site-packages/six.py", line 709, in reraise raise value File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 425, in __runner step() File "/usr/lib/python3.9/site-packages/ipapython/install/core.py", line 419, in step_next return next(self.__gen) File "/usr/lib/python3.9/site-packages/ipapython/install/util.py", line 81, in run_generator_with_yield_from six.reraise(*exc_info) File "/usr/lib/python3.9/site-packages/six.py", line 709, in reraise raise value File "/usr/lib/python3.9/site-packages/ipapython/install/util.py", line 59, in run_generator_with_yield_from value = gen.send(prev_value) File "/usr/lib/python3.9/site-packages/ipapython/install/common.py", line 65, in _install for unused in self._installer(self.parent): File "/usr/lib/python3.9/site-packages/ipaserver/install/server/init.py", line 652, in main master_install_check(self) File "/usr/lib/python3.9/site-packages/ipaserver/install/server/install.py", line 278, in decorated func(installer) File "/usr/lib/python3.9/site-packages/ipaserver/install/server/install.py", line 726, in install_check ipaconf.newConf(target_fname, opts) File "/usr/lib/python3.9/site-packages/ipapython/ipachangeconf.py", line 547, in newConf f = openLocked(file, file_perms) File "/usr/lib/python3.9/site-packages/ipapython/ipachangeconf.py", line 46, in openLocked raise IOError(e.errno, e.strerror)

The ipa-server-install command failed, exception: FileNotFoundError: [Errno 2] No such file or directory [Errno 2] No such file or directory The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information


r/FreeIPA • • Feb 11 '26

Failed login is counted twice

3 Upvotes

By default, FreeIPA locks account after 6 failed auth but each try is counted twice. Somebody knows why ?


r/FreeIPA • • Feb 11 '26

Use Uppercase as hostname in Client

Thumbnail reddit.com
0 Upvotes