Diagnosing Authentication

Diagnose the stage that failed before changing account or machine policy. A denied credential, a refused socket connection, and an unavailable principal source are different failures.

Before you start #

Prepare the investigation:

  • Keep a working administrator session open.
  • Record the operation, account, client, and error text. Do not copy passwords or private keys into a log.
  • Use read-only checks before restarting a service or changing policy.

Locate the failing stage #

Follow these steps:

  1. Check whether the authority and local source are ready:

    svctl status authd
    svctl status lpsd
    
  2. From an authorized administrator session, inspect the target account with lps show <name>. Check its state, logon types, credential policy, and available credential material.

  3. Compare the failing operation with the symptom table. Inspect the relevant service diagnostics or event record before making a change.

  4. Make one justified change through the appropriate interface, then repeat a fresh request through the original client.

Match the symptom #

The symptom identifies a useful next check:

SymptomCheckDo not infer
lps cannot connectlpsd readiness and the admin socket's descriptorUnix mode bits alone determine access
lps refuses the callerThe caller's active administrator membership or SYSTEM identityExecuting an administration command grants its rights
Sign-in source unavailableRegistration, source readiness, and connection diagnosticsThe account does not exist
Credentials refusedAccount state, permitted logon type, policy, and supplied proofEvery refusal reveals whether the name exists
Key works but console failsWhether the account is key-onlyTerminal login supports SSH key proof
Sign-in succeeds but home failsRecorded path, parent directory, owner, and descriptorAnother sign-in will repair an existing directory
Registry edit appears ineffectiveThat setting's refresh boundaryEvery setting is reread on each request

Separate connection permission from operation permission #

Reaching /run/logon.sock does not authorize a client to originate every kind of logon. The authority checks the connected caller and the requested operation. Similarly, reaching the self-service socket does not authorize an operation on someone else's account.

For originator refusals, inspect Authentication Policy. For registration failures, inspect Registering a Principal Source.

Handle failed changes carefully #

If a connection is lost after an account change was submitted, inspect the state before retrying. The operation might already have succeeded. If the daemon reports a storage failure, preserve its diagnostics and investigate the filesystem before making further account changes.

Do not delete the principal store to repair a startup failure. Read The Local Principal Store for why replacing it changes the machine's identities.

Check the result #

A successful status query or account listing is only one part of the check. Verify a fresh sign-in through the intended route and confirm the resulting access before closing the administrator session used for repair.

Edit this page