Auto Light Dark
Auto Light Dark

PAM Password Troubleshooting & FAQ

This page goes with Using a PAM Tool for Agentless Data Collector Passwords, which explains how to set up the PAM command and set hosts to use it.

How ADC Protects the Account from Lockout

If the vault has the wrong password, for example because the password was changed on the server but not in the vault, every login with it counts toward your account lockout threshold. ADC limits these logins:

  • When a host rejects the password, ADC stops logging in to that host for the Lockout backoff time (15 minutes by default). The time doubles each time the host rejects it again, up to 4 hours.

  • When 3 hosts in a row reject the password, ADC stops logging in to every host that uses the account and shows them as Error.

  • For a Windows domain account, when a host only answers "Access is denied", ADC asks the domain whether the password is right:

    • If the domain accepts it, the account is missing rights on that host, for example it isn't in the host's Administrators group. ADC doesn't pause anything.

    • If the domain rejects it, or reports that the account is locked out, disabled or expired, ADC stops logging in to every host that uses the account straight away.

  • When the problem is fixed, select the hosts and click Retry Credentials. ADC runs the command again for each account, ends the pause and checks the hosts.

We recommend excluding the discovery accounts from account lockout, or using a generous lockout threshold. Set Lockout backoff to 0 only if the accounts are excluded from lockout: ADC then tries a rejected password on every host at each connection check.

Troubleshooting

Click More Info next to the host's status to see the error.

Message starts with

What to do

The PAM credential command is not configured.

Set the command in Parameter Setup > PAM Credential Command, or change the hosts to a password.

The PAM command program was not found

Check the Program path on the ADC machine.

The PAM command ... failed with exit code N

Run the command yourself on the ADC machine with the same arguments. If it fails only in the ADC services, check that your PAM tool allows LocalSystem.

The PAM command ... did not finish within N seconds and was stopped.

Check that the vault can be reached from the ADC machine, or increase Timeout.

The PAM command ... printed no password.

The command must print the password on the first line of its standard output.

The ... contains '...', which can't be passed to the PAM command.

The account name or credential reference has a character that isn't allowed in placeholders. See Step 1 in Using a PAM Tool for Agentless Data Collector Passwords.

This host rejected the password from the PAM command for account ...

Check the account's access to this host and that the vault has the current password, then click Retry Credentials.

The domain rejected the password from the PAM command, or 3 hosts in a row rejected the password from the PAM command

Update the password in the vault, then click Retry Credentials.

The domain reports that account ... is locked out, disabled or expired.

Unlock or re-enable the account, then click Retry Credentials.

The domain accepted the password from the PAM command for account ..., so the account probably lacks rights on this host

The password is right. Give the account the rights it needs on the host; see Windows Error 0x80070005 (Access Denied).

The ADC log is C:\Program Files (x86)\CloudamizeAgentlessDC\log_backup.txt. It records PAM command failures and their error output, but never the password.

Frequently Asked Questions

Does ADC store the password?

No. ADC keeps it in memory only. It is never written to HostInfo.xml, log files or temporary files, and it is never sent to Cloudamize.

How often does ADC query the vault?

Each of the two ADC services runs the command once per account each cache TTL. With the default 60-minute TTL, that is about 2 queries per account per hour. ADC also runs it when you add hosts, click Retry Credentials or Test, and after a failed login (at most once every 5 minutes per account). If the arguments use {host}, these counts are per host instead of per account.

Can some hosts use the PAM command and others a stored password?

Yes. The setting is per host.

Does ADC also use the PAM password for sudo on Linux?

Yes. If the Linux account needs its password for sudo, ADC uses the password from the PAM command.

If you have any queries, please get in touch with the helpdesk via our Helpdesk Portal or by email at helpdesk@cloudamize.com.