Skip to content

Commit 03955ea

Browse files
committed
Disable AppArmor for slapd to allow slapdtest to create temp instances
Signed-off-by: tdruez <[email protected]>
1 parent a75e2c9 commit 03955ea

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/run-unit-tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ jobs:
4545
- name: Install python-ldap OS dependencies
4646
run: |
4747
sudo apt-get update
48-
sudo apt-get install -y libldap2-dev libsasl2-dev slapd ldap-utils
48+
# https://github.com/python-ldap/python-ldap/blob/main/.github/workflows/ci.yml
49+
sudo apt-get install -y libldap2-dev libsasl2-dev slapd ldap-utils apparmor-utils
50+
# Disable AppArmor for slapd to allow slapdtest to create temp instances
51+
sudo aa-disable /usr/sbin/slapd
4952
5053
- name: Install dependencies
5154
run: make dev envfile

dje/tests/test_ldap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
https://www.python-ldap.org/en/latest/reference/slapdtest.html
1212
1313
On Debian:
14-
$ apt-get install slapd
14+
$ apt-get install slapd ldap-utils
1515
1616
On macOS:
1717
$ brew install openldap

0 commit comments

Comments
 (0)