-
Notifications
You must be signed in to change notification settings - Fork 920
pdnsutil hash-password doesn't work on RHEL8 #12926
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
Comments
In the logs of our el-8 build I see:
so either el-8's OpenSSL is lacking that function or our detection is broken. |
According to the same logs el-8's OpenSSL version is 1:1.1.1k-9.el8_7 which in theory should have that function. |
Ah, it's a function-like macro in OpenSSL 1.1.1 and a real function in 3.x, that might be a clue. |
Hmm, we use |
OK, I'm lost.. What I see in the log is:
As far as I can tell this does not match any released version of OpenSSL.. |
|
I filed a ticket at RH: https://bugzilla.redhat.com/show_bug.cgi?id=2215856 |
RH is not going to fix it, unfortunately, apparently shipping a broken header by half-assing the backport of a new to a stable branch is not a big enough problem:
|
I'll see what I can do since we apparently cannot rely on Red Hat's expensive support. |
Short description
'pdnsutil hash-password' gives - Error while hashing the supplied password: Hashing a password requires scrypt support in OpenSSL, and it is not available
Environment
Steps to reproduce
$ pdnsutil hash-password
Error while hashing the supplied password: Hashing a password requires scrypt support in OpenSSL, and it is not available
Other information
Team, first of all - thank you for this great product, I use it - I like it!
I believe that the issue could be related to the fact that during compilation time some macro left part of the code aside
https://github.com/PowerDNS/pdns/blob/auth-4.7.2/pdns/credentials.cc#L166
std::string hashPassword(const std::string& password, uint64_t workFactor, uint64_t parallelFactor, uint64_t blockSize)
{
#if !defined(DISABLE_HASHED_CREDENTIALS) && defined(HAVE_EVP_PKEY_CTX_SET1_SCRYPT_SALT)
<-Hashing code->
#else
throw std::runtime_error("Hashing a password requires scrypt support in OpenSSL, and it is not available");
#endif
}
Checked all the libraries like openssl.x86_64 , libsodium.x86_64, openssl-devel.x86_64 are installed on PowerDNS server
The text was updated successfully, but these errors were encountered: