Enterprise identity and access lifecycle
Quick answer
Enterprise identity centralizes account information and access decisions while preserving local enforcement. Lifecycle management covers joining, role changes, periodic review and leaving. Authentication proves identity; authorization determines what that identity may do.
When a person changes teams, adding their new access without removing obsolete access accumulates privileges. Compare effective access with the approved role, including local exceptions and active sessions, and record who approved the change.
Prepare the practice environment
Run python3 lab-fixtures/enterprise/setup.py from the extracted root as an ordinary user. Enter the printed private path and check pwd. Use fresh fixtures, Bash with set -e -o pipefail, LC_ALL=C and umask 077. The helper reads fictional records or uses private loopback services and SQLite. No root, external network or real fleet changes are required. Optional native checks require an authorized VM.
Prerequisites
Review: Fleet inventory and staged patching.
How it works
Linux applications can resolve identities through NSS, and authentication commonly uses PAM. SSSD can connect local identity and authentication services to centralized providers such as LDAP or Active Directory; Kerberos may provide ticket-based authentication. These are distinct components: a successful getent lookup is not a login test and not proof of authorization. Cached credentials may allow offline authentication depending on configuration and expiration, so disabling a central account is not proof of immediate revocation everywhere. Design role-based groups, separate administrative identities, named owners for service accounts, scoped sudo rules, short-lived credentials and monitored emergency access. Joiner: approve only required roles and verify permitted/denied access. Mover: remove obsolete roles, not just add new ones. Leaver: disable access, revoke keys/tokens, review sessions, caches, service ownership and dependencies, and verify denial in each relevant system. Never test using real employee credentials in this lab. The following records are fictional and no directory or account is changed.
Try the examples
getent passwd "$(id -u)" >/dev/null && printf 'current UID resolves\n'Checks only the current UID lookup, not credentials or authorization; no account details are printed.
Expected stdout:
current UID resolvesThe disabled fictional identity retains roles and a session.
Expected stdout:
review: former-adminRemoving roles does not itself terminate an existing session. The helper edits only an in-memory copy.
Expected stdout:
sessions still active: 1modeled access removedCommon mistakes
Never assume central disablement clears every token, session or offline cache. Do not remove service accounts until ownership and dependencies are understood.
Practice
Create a fictional joiner/mover/leaver matrix for a report reader, operator and administrator. Identify excessive roles, stale sessions and a verification owner. Describe a monitored emergency access path without weakening authentication.
Related references
Study: getent. These are reference names, not deployed links.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Enterprise identity and access lifecycle — Knowledge Check
Apply enterprise operations concepts to concrete local examples.
What does getent passwd demonstrate?
What may survive central disablement?
What should a mover review?
A report reader moves to an operator role. What access should remain after the review?