Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
LDAP Access Server Authenticating Expired Accounts
« previous
next »
Print
Pages: [
1
]
Author
Topic: LDAP Access Server Authenticating Expired Accounts (Read 2613 times)
leacho73
Newbie
Posts: 33
Karma: 0
LDAP Access Server Authenticating Expired Accounts
«
on:
August 06, 2020, 03:34:48 pm »
Hi,
I'm just doing some testing with an LDAP Access server, and I noticed that I am still able to successfully authenticate even though my account password has expired. I would expect the authentication to fail at this point, even if it is unable to prompt you to change your password. I am reading user attributes, and when I test the connection, I can see that the password expiry has expired.
Is there any way to get OpnSense to refuse authentication should an LDAP password have expired?
Thanks
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: LDAP Access Server Authenticating Expired Accounts
«
Reply #1 on:
August 06, 2020, 05:08:10 pm »
Using 20.1.9.
Auth failed for users with password expired or account expired.
whats your config for LDAP?
Logged
leacho73
Newbie
Posts: 33
Karma: 0
Re: LDAP Access Server Authenticating Expired Accounts
«
Reply #2 on:
August 06, 2020, 05:19:58 pm »
Hi,
I am polling a FreeIPA LDAP server - using LDAP over 636 with a bind user - then polling a specific OU for the UID of the user - I'm also using an extended query that limits the result based on group membership - ie, you have to be part of this group to pass authentication.
Do I need an extended query for the password expiration?
Thanks
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: LDAP Access Server Authenticating Expired Accounts
«
Reply #3 on:
August 06, 2020, 05:41:32 pm »
Sorry, Im using Active Directory as LDAP servers.
In AD simple filter (or " extended query") cannot be used to filter expired passwords or account out.
Its not in simple attributes. Some additional calculations with dates needed.
May be FreeIPA uses special attributes to mark password\account expiry and you can use filter for it
Logged
Fright
Hero Member
Posts: 1777
Karma: 164
Re: LDAP Access Server Authenticating Expired Accounts
«
Reply #4 on:
August 06, 2020, 06:34:47 pm »
https://serverfault.com/questions/716556/freeipa-ldap-refuse-auth-for-users-with-expired-password
https://pagure.io/freeipa/issue/1539
issue is still open
Logged
leacho73
Newbie
Posts: 33
Karma: 0
Re: LDAP Access Server Authenticating Expired Accounts
«
Reply #5 on:
August 06, 2020, 07:18:02 pm »
Thanks for the update! Looks like there isn't much I can do then! Appreciate the links though
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
20.7 Legacy Series
»
LDAP Access Server Authenticating Expired Accounts