Hello,

First of all: Thanks for this great module! It's really helpfull.

I have question about deleted/deactivated users in the IdP.

Scenario:

  • A user logs in via the simpleSAMLphp module
  • Drupal automatically creates a new account for the user
  • The user changes its Drupal password
  • An IdP admin deletes/deactivates user from the IdP (because the user was fired or something)
  • Now the user can't log in via SAML, but it is still able to log in with its password

How can I check if the user is a SAML user (automatically created) an is still active in the IdP?

Many thanks in advance for helping.

Bryan

Comments

teknikqa’s picture

I've used the UserProtect module to disable modifications to username, email and password fields. Only the website admin is allowed to modify these if needed.

This works wonderfully.

odegard’s picture

IMO this is not a technical problem. Ideally, whoever is responsible for hiring/firing should also be responsible for telling you too. This really should be a policy, not the admins responisibility.

You can't say that lack of logins from an IdP means they are fired, I don't see how you can figure this out at all without checking with other systems with this kind of information (LDAP or something else).

snufkin’s picture

If you don't enable local authentication for a certain user role, then they will not be able to log in once their SSO has been suspended. Does that solve your problem?

bkosborne’s picture

Suggestion in comment #1 is the right idea. Basically you need to prevent users from modifying their password. At the time of writing, the 2.x version of this module already includes this functionality built in. You can configure it to prevent SAML authenticated users from changing their password.