I’ve followed the instructions for attaching my TrueNAS Scale 24.10.2.1 to my FreeIPA domain.
Note: I’ve had this domain for several years, and have previously used scratch built NAS servers from RHEL9. I know my setup works, it’s still working today.
The built in support mostly works, but someone made a design decision along the way that makes no sense to me. Someone decided, that even though we are attaching ourselves to a FreeIPA domain, they would still write the smb4.conf file to use a local database for the password backend. This means that only the local accounts can login to the SMB server using login/passwd credentials, and all the IPA users must use kerberos tickets. This is quite the PITA for all of the Mac and Windows computers as joining them to a FreeIPA domain is a manual slog. But if they just used the ldap server as the password backend, then logging into the smb server using the FreeIPA credentials “just works”, even without a kerberos ticket.
The only reason I can ever imagine for doing things the way they did is if you have a split brain user management scenario, which is almost always a super bad idea. Have an admin account, and possibly a root account, on your NAS, but every other account should come from your single source of truth (LDAP, AD, whatever) and only those accounts should have user login access to the shares. The admin accounts only need access to the web interface, ssh, and cli. Which they still have.
So, although I would consider this design choice a bug, if someone really wants to run split brain user management, the current design allows for it in a really clunky and horrible way. But for those of us that don’t want to participate in this masochistic user management scenario, maybe a button on the Advanced LDAP or advanced SMB screens that says “Use directory server/ldap for SMB accounts” and in so doing would redirect the smb4.conf away from a local password database and to the correct directory server, thereby making password based logins for AD/LDAP/FreeIPA accounts “just work”.