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

password_hash_custom issue in php 7.2.7.0? #3

Closed
filthyjason opened this issue Jul 5, 2018 · 5 comments
Closed

password_hash_custom issue in php 7.2.7.0? #3

filthyjason opened this issue Jul 5, 2018 · 5 comments

Comments

@filthyjason
Copy link

Not sure if this is just me, but I cannot create or modify users and I get the following error:

PHP Fatal error: Uncaught Error: Call to undefined function password_hash_custom() in /usr/share/phpldapa
dmin/lib/PageRender.php:289\nStack trace:\n#0 /usr/share/phpldapadmin/lib/Visitor.php(58): PageRender->getPostAttribute(Object(PasswordAttribute), '0')\n#1 /usr/share/phpldapadmin/lib/PageRe
nder.php(90): Visitor->__call('get', Array)\n#2 /usr/share/phpldapadmin/htdocs/create_confirm.php(19): PageRender->accept()\n#3 /usr/share/phpldapadmin/htdocs/cmd.php(59): include('/usr/shar
e/phpl...')\n#4 {main}\n thrown in /usr/share/phpldapadmin/lib/PageRender.php on line 289, referer: http://10.1.1.5/phpldapadmin/cmd.php

~Jason

@breisig
Copy link
Owner

breisig commented Jul 19, 2018

@filthyjason Hmmm, It works with earlier versions of php 7.2.x so it should work with php 7.2.7. I will try it out with the latest php 7.2.8

@filthyjason
Copy link
Author

Any luck testing? is this only affecting me? I have a pretty basic install on my linux box but happy to try something else too.

@breisig
Copy link
Owner

breisig commented Sep 27, 2018

@filthyjason I just installed the latest php 7.2 [7.2.10] on my system and downloaded the latest code and I just tried modifying a user and everything looks good for me.

@filthyjason
Copy link
Author

I'll look in to my Apache set up, and maybe add SSL on it too. I did a wireshark capture when I tried to add a Generic User Account and saw this coming back:

HTTP/1.0 500 Internal Server Error
Date: Tue, 09 Oct 2018 17:59:13 GMT
Server: Apache/2.4.29 (Ubuntu)
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: private
Pragma: no-cache
Content-Length: 1
Connection: close
Content-Type: text/html; charset="UTF-8"

I can add a Generic DNS Entry just fine, not that I use those, but I just tried it and it works every time.
I've tried multiple browsers on different computers too.

@filthyjason
Copy link
Author

Ok, resolved. I had not pulled the new "PageRender.php" file when I updated the others :( it was trying to call using the old function name password_hash_custom vs password_hash_pla.
Thanks for the assist and help there, not sure how I missed that file earlier.

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

No branches or pull requests

2 participants