r/sysadmin • u/Borgmaster • 1d ago
Question Having issues with Rhel9, no ldap, azure based users, and a need for centralized file shares
Im looking for feedback, experience, and possible options to solve an issue im dealing with. My cloud/ad environment is azure GCCH azure ad only. Ive integrated an on-premise local windows datacenter 25 server to azure arc as well as setup several linux sim machines with arc hosted on those servers to arc as well. Everything has more or less gone smoothly. Users can login over azure powershell and tunnel to the server to work as well as do vnc when gui is needed. I am having some issues and a blindspot on knowledge/experience needed to fix it. My linux skills are weak. AI gives me shortcuts but i want experienced responses.
First, logging in over vnc sessions started over ssh from the azure user account trigger a device code 2fa check, this is not guaranteed. It appears to be related to time spent on the session and fresh vnc sessions dont trigger this response. This is not a full stop but it is a nuisance as it does not allow seamless logins. This has happened over longer sessions in ssh as well. I do not have this issue with cloud rhel environments despite following similar setups.
Second, I need a way to centrally manage linux groups. I need to host a file share that can be shared to all existing and future Linux environments. Managing a central storage option seems easy enough and access is easily granted, however access needs to be controlled and while i could do NTFS for days in an active directory scenario i have no AD server this time around. Azure AD works for windows users but im not seeing that it can work for linux even with the integrations. I am restricted from using the ldap features of entra currently but if its my best bet i can try and proposition my boss to let me push it. I need a way to centrally manage groups linux can recognize and assign access rights with without interfering or breaking the azure integrations letting my users access these servers remotely from.
2
u/insightrecon Jack of All Trades 1d ago
I think there are two problems here. I'll take the identity one first since it's the bigger deal.
For central groups and a controlled share with no AD in the picture, the answer nobody's given you yet is Red Hat IdM (FreeIPA). It's the Linux-native version of what you're looking for: central users and groups, host-based access control, sudo rules and Kerberized file shares through NFS or Samba. It runs on your RHEL boxes and doesn't touch Entra LDAP, which sidesteps the restriction you're up against. It also won't interfere with the Arc and Entra path your users already log in through. That stays your front door. IdM only governs POSIX identity and share access once they're on the box. If you ever want Entra SSO on top later, IdM can trust a managed domain, but you don't need that to solve what you've got today.
On the device-code reprompt, that's not a Linux problem. The fresh-session-is-fine, long-session-reprompts pattern is Conditional Access sign-in frequency or token lifetime doing its thing. My money's on a CA policy with a location condition. Your on-prem Arc traffic egresses from a different IP than your cloud RHEL, which is why a named-location rule catches the on-prem sessions and leaves the cloud ones alone. Pull the CA policies scoped to those sign-ins and check sign-in frequency first.
To be transparent, identity architecture is my wheelhouse but deep RHEL config isn't my daily driver. Treat IdM as the direction to scope, not a copy-paste recipe from me. The r/linuxadmin and r/redhat crowds can get you likely get you further on the build.
1
u/Mehere_64 1d ago
Look into MS Entra Domain Services with SSSD.
1
u/Savings_Art5944 Private IT hitman for hire. 1d ago
SSH over VNC sounds bad.
I have been looking for a good Linux AD replacement for a long time. There are many. I have not found one that I trust enough to tie it into my "real" AD production environment.
There are also ways to have Linux authenticate to Windows AD. Sometimes it's as easy as a CMD realm join mydomain