Skip to content
This repository was archived by the owner on Jan 1, 2026. It is now read-only.

Conversation

@zctmdc
Copy link
Contributor

@zctmdc zctmdc commented Jun 9, 2022

fixed #4

使用 htpasswd 加密密码:

root@50b303640d95:/# htpasswd -nb uu pp

> htpasswd: Unable to generate random bytes: Function not implemented

使用 htpasswd 明文密码:

  • -p Do not encrypt the password (plaintext, insecure).
root@50b303640d95:/# docker-compose logs -f gitweb
gitweb | 2022/06/09 04:57:31 [error] 37#37: *6 user "uu": password mismatch,

使用 openssl passwd 加密密码:

root@50b303640d95:/# printf "uu:$(openssl passwd -apr1 pp)\n"
> uu:$apr1$pYsO9KFh$ZOeuVdAzbkxPd.5WZ1aCv/

测试正常

zctmdc added 4 commits June 9, 2022 12:40
fix bug

使用加密

```
root@50b303640d95:/# htpasswd -nb uu pp

> htpasswd: Unable to generate random bytes: Function not implemented
```
尝试不使用加密
use -p 
>  -p  Do not encrypt the password (plaintext, insecure).
```
root@50b303640d95:/# htpasswd -npb uu pp
> Warning: storing passwords as plain text might just not work on this platform.
uu:pp

```
测试正常
修复 htpasswd 明文密码不可用bug:
-   `ningx`  在 `Linux` 中使用 `htpasswd`` 明文密码不可用
- 使用 `openssl passwd -apr1` 创建密码
@fraoustin fraoustin merged commit 8e13187 into fraoustin:master Jun 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

htpasswd erro

2 participants