Skip to content

Commit 189cc5e

Browse files
Merge pull request #5 from noris-network/fix_crypt
Updated crypt's salt to use entire hash
2 parents fa74f85 + 54db160 commit 189cc5e

5 files changed

Lines changed: 14 additions & 4 deletions

File tree

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,7 @@ All notable changes to this project will be documented in this file.
6363
#### 2025-05-30
6464

6565
* `./pysieved/main.py`: Enabled listening to IPv6 addresses in `class Server(SocketServer.ForkingTCPServer)`.
66+
67+
#### 2025-07-14
68+
69+
* `./pysieved/plugins/htpasswd.py`: Used entire `cpass` value as a salt instead of only the first 2 characters.

build_deb.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
export BUILD_VERSION=${BUILD_VERSION:-0.2.1}
3+
export BUILD_VERSION=${BUILD_VERSION:-0.2.2}
44

55
docker build -t pysieved-deb-builder .
66
docker run --name pysieved-builder pysieved-deb-builder bash -c "

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
pysieved (0.2.2) jammy; urgency=medium
2+
3+
* Updated salt for htpasswd authentication
4+
5+
-- Team noris SKG-PRJ <prj-d@noris.de> Fri, 14 JUL 2025 15:41:32 +0300
6+
17
pysieved (0.2.1) jammy; urgency=medium
28

39
* Enabled listening on IPv6

pysieved/plugins/htpasswd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
1919
## USA
2020
#
21-
# 24 January 2025 - Modified by F. Ioannidis.
21+
# 14 July 2025 - Modified by F. Ioannidis.
2222

2323

2424
from crypt import crypt
@@ -44,4 +44,4 @@ def auth(self, params):
4444
except KeyError:
4545
return False
4646

47-
return cpass == crypt(params["password"], cpass[:2])
47+
return cpass == crypt(params["password"], cpass)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
setup(
66
name="pysieved",
77
description="Core daemon for the pysieved project",
8-
version=os.getenv("BUILD_VERSION", "0.2.1"),
8+
version=os.getenv("BUILD_VERSION", "0.2.2"),
99
packages=find_packages(where="."),
1010
entry_points={
1111
"console_scripts": [

0 commit comments

Comments
 (0)