Password expired notification is send even if it never expires

Support forums for the Habitat Automate plugin
Post Reply
mwilhelmi
Posts: 37
Joined: Thu Nov 19, 2020 7:16 am
3

Password expired notification is send even if it never expires

Post by mwilhelmi »

Hello,

at least two users at one of our clients received a notification about their password expiring in 0 and -75 days. Both are set to "password never expires" in AD. Both got this notification at the same time.
I do not know, what triggered the notifications at the same time.
However my main question is, how to disable mails to "never expire" users?

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: Password expired notification is send even if it never expires

Post by Cubert »

That may have been a glitch or some other reason. The plugin has several limitations built in.


# 1 User must have a valid email address
#2 User must be active, not disabled
#3 User must not be set to never expire
#4 User not set to can not change password

Here is that code logic

Code: Select all

>> | where {($_.CannotChangePassword -ne $True) `
>> -and ($_.passwordneverexpires -ne $True) `
>> -and ($_.UserAccountControl -ne 514) `
>> -and ($_.mail -ne $null)

So only these users will show up in email list inside plug and we only email from the list.

Could it be that user was once in list and maybe was updated to new settings but remained in the old list?

What I would look for is do you see these users in the current list of accounts that are being shown for LDAP selection inside plugin?

mwilhelmi
Posts: 37
Joined: Thu Nov 19, 2020 7:16 am
3

Re: Password expired notification is send even if it never expires

Post by mwilhelmi »

The users show up in the LDAP list.
After lead my eye onto this, I put some more research into this.
There where duplicates of the users with the same mail but other settings.

Not a Habitat problem. Thanks for your help Cubert! :)

User avatar
Cubert
Posts: 2430
Joined: Tue Dec 29, 2015 7:57 pm
8
Contact:

Re: Password expired notification is send even if it never expires

Post by Cubert »

Well, glad I could help!

Post Reply

Return to “Habitat”