Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The account password has expired, but the web interface does not show that the password has expired #25

Closed
ilanni2460 opened this issue Oct 13, 2020 · 17 comments
Labels
question Further information is requested

Comments

@ilanni2460
Copy link

The account password has expired, but the web interface does not show that the password has expired
0

@coudot
Copy link
Member

coudot commented Oct 13, 2020

If the password is already expired, you should have a warning on the page.

We don't display expiration date, see #19

@ilanni2460
Copy link
Author

ilanni2460 commented Oct 13, 2020

@coudot I mean, it didn't show the password expired, like this picture:

1

@coudot
Copy link
Member

coudot commented Oct 13, 2020

What is the pwdMaxAge of your ppolicy?

@coudot coudot added the question Further information is requested label Oct 13, 2020
@ilanni2460
Copy link
Author

pwdMaxAge is 7776000 , 90d

@ilanni2460
Copy link
Author

the account is expired 2020.9.27

@coudot
Copy link
Member

coudot commented Oct 13, 2020

Check that this account is not linked to another ppolicy, or that the pwdMaxAge is well defined in the default ppolicy

@ilanni2460
Copy link
Author

@coudot this is ldap config ppolicy :
0

this ppolicy account :

1

From the above two pictures, it can be clearly seen that the password policy is effective. And this password policy, we have been using it.
So I guess it’s because there is a problem in the code about whether the user password has expired

@coudot
Copy link
Member

coudot commented Oct 13, 2020

The code is here: https://github.com/ltb-project/service-desk/blob/master/htdocs/display.php#L136

I don't see why it does not work on your side. Do you have any error in logs? Do you see requests in OpenLDAP logs?

@ilanni2460
Copy link
Author

@coudot I have checked the ldap service and did not find any error information for the account, but I found such a line in the error log of the service-desk, but I don’t think it will be affected

2

@ilanni2460
Copy link
Author

@coudot I thought of a way to put
$pwdMaxAge
$pwdChangedTime
$changedDate
$expirationDate

Print out the values ​​of these variables to see

But i don't know how to print

@coudot
Copy link
Member

coudot commented Oct 13, 2020

You can use "error_log" in the code to print them in logs

@ilanni2460
Copy link
Author

@coudot ok i try ,tks

@ilanni2460
Copy link
Author

ilanni2460 commented Oct 13, 2020

@coudot i try in display.php the code error_log(print_r($pwdMaxAge, 1));

But there is no information in the log

3

@coudot
Copy link
Member

coudot commented Oct 13, 2020

Does the Service Desk application account have enough rights to read ppolicies entries?

@ilanni2460
Copy link
Author

@coudot Sure enough, it is caused by no permission, you are too awesome

very tks
4

@coudot
Copy link
Member

coudot commented Oct 13, 2020

You're welcome. If you want to contribute a lang file for Chinese, it could be great!

@ilanni2460
Copy link
Author

OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants