AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-16351

Jürgen Steinblock's questions

Martin Hope
Jürgen Steinblock
Asked: 2020-08-18 03:33:47 +0800 CST

使用 mysql 生成 apache 兼容密码

  • 2

我目前正在迁移旧的网络服务器。

旧服务器使用存储在 mysql 表中并mod_auth_mysql启用的用户的基本身份验证。

密码存储在 apaches 的 sha1 函数SELECT sha1('secret')中,适用于mod_auth_mysql

不幸mod_auth_mysql的是不再支持。这就是为什么我找到mod_authn_dbd了替代方案。

https://documentation.help/httpd-2.4-es/mod_authn_dbd.html

我已经设法让所有东西都启动并运行,直到我可以使用基本身份验证和固定密码登录为止

<Location />
        AuthType Basic
        AuthName "Test"
        AuthBasicProvider dbd
        Require valid-user
        AuthDBDUserPWQuery "SELECT '{SHA}qUqP5cyxm6YcTAhz05Hph5gvu9M=' FROM users WHERE user = %s"
</Location>

我只将 sha1 哈希存储在用户表中。虽然由 mysql ( ) mod_authn_dbd 生成的旧mod_auth_mysql接受的哈希SELECT sha1('test')=a94a8fe5ccb19ba61c4c0873d391e987982fbbd3没有。

根据https://documentation.help/httpd-2.4-es/password_encryptions.html

SHA1 "{SHA}" + Base64 编码的密码 SHA-1 摘要。

接受 htpasswd 生成的密码。

htpasswd -bns user test
user:{SHA}qUqP5cyxm6YcTAhz05Hph5gvu9M=

现在我需要将此值a94a8fe5ccb19ba61c4c0873d391e987982fbbd3(存储在我的数据库中用于密码测试)转换qUqP5cyxm6YcTAhz05Hph5gvu9M=为 mysql 内部的(密码测试的接受值)

我已经试过了

SELECT to_base64(sha1('test')), to_base64(ucase(sha1('test'))), to_base64(lcase(sha1('test')));`

但没有一个产生预期的结果。

我要么需要一种方法将我现有的密码哈希转换为预期的格式,要么说服mod_authn_dbd我接受我现有的 sha1 哈希。

任何帮助,将不胜感激

mysql apache2 htpasswd mod-auth-mysql
  • 2 个回答
  • 358 Views
Martin Hope
Jürgen Steinblock
Asked: 2017-03-27 23:48:36 +0800 CST

是否允许在没有 Enterprise Plus 的情况下使用 VMware 集成容器?

  • -3

我们使用带有 Essentials Plus 许可证的 VMware VCenter 安装。

官方的VIC 文档说明如下

获取 vSphere Integrated Containers
要获取 vSphere Integrated Containers 的最新官方版本,请转至 vmware.com 上的 vSphere Integrated Containers 下载页面。此页面包括 vSphere Integrated Containers Engine 和 vSphere Integrated Containers Registry 的下载。您需要vSphere Enterprise Plus 许可证才能下载受支持的官方 vSphere Integrated Container 版本。

您还可以获得比最新官方版本更新的 vSphere Integrated Container的开源版本:

这怎么理解?

a) 如果您有vSphere Enterprise Plus 许可证,您也可以下载开源版本
b) 如果您没有vSphere Enterprise Plus 许可证,您可以下载开源版本

vmware-vsphere
  • 1 个回答
  • 1501 Views
Martin Hope
Jürgen Steinblock
Asked: 2014-06-05 23:42:52 +0800 CST

哪里可以找到 Fujitsu Primergy 服务器的安装说明?

  • -2

我刚刚安装了带有 Windows Server 2012 R2 的 PRIMERGY RX300 S8

该系统附带一张 Fujitsu Server View DVD。但是我找不到手册,安装驱动程序的推荐顺序是什么。

我相信在 2014 年你会得到一个很好的向导,比如工具,它可以告诉你缺少什么,但手册也可以。

windows-server-2012
  • 1 个回答
  • 2129 Views
Martin Hope
Jürgen Steinblock
Asked: 2014-05-08 05:37:05 +0800 CST

pfsense live cd 和引导选项

  • 1

我下载了 pfsense live cd 2.1.3,现在我想从 USB 光驱运行 pfsense。

它会加载一段时间,然后会因“无法安装......”而崩溃

我知道我必须选择启动选项3才能从 USB 光盘启动,但我没有看到这个菜单。

在此处输入图像描述

电脑刚开机。我是否需要按特定键才能调出此菜单,或者当前 iso 中是否缺少此菜单?

boot
  • 1 个回答
  • 6230 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve