mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 05:18:52 +00:00
[ticket/16659] Adjust slapd setup for apparmor configuration
PHPBB3-16659
This commit is contained in:
parent
67da9e0e85
commit
2a1a22dffe
3 changed files with 8 additions and 7 deletions
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
@ -142,7 +142,7 @@ jobs:
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php }}
|
php-version: ${{ matrix.php }}
|
||||||
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysqli, sqlite, pdo_sqlite, intl, gd, exif, iconv, sqlsrv, pdo_sqlsrv
|
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysqli, sqlite, pdo_sqlite, intl, gd, exif, iconv, sqlsrv, pdo_sqlsrv, ldap
|
||||||
coverage: none
|
coverage: none
|
||||||
|
|
||||||
- name: Setup environment for phpBB
|
- name: Setup environment for phpBB
|
||||||
|
|
|
@ -4,13 +4,13 @@ include /etc/ldap/schema/cosine.schema
|
||||||
include /etc/ldap/schema/inetorgperson.schema
|
include /etc/ldap/schema/inetorgperson.schema
|
||||||
include /etc/ldap/schema/nis.schema
|
include /etc/ldap/schema/nis.schema
|
||||||
|
|
||||||
pidfile /tmp/slapd/slapd.pid
|
pidfile /var/tmp/slapd/slapd.pid
|
||||||
argsfile /tmp/slapd/slapd.args
|
argsfile /var/tmp/slapd/slapd.args
|
||||||
|
|
||||||
modulepath /usr/lib/openldap
|
modulepath /usr/lib/openldap
|
||||||
|
|
||||||
database ldif
|
database ldif
|
||||||
directory /tmp/slapd
|
directory /var/tmp/slapd
|
||||||
|
|
||||||
suffix "dc=example,dc=com"
|
suffix "dc=example,dc=com"
|
||||||
rootdn "cn=admin,dc=example,dc=com"
|
rootdn "cn=admin,dc=example,dc=com"
|
||||||
|
|
|
@ -15,9 +15,10 @@ SLOWTESTS=$1
|
||||||
|
|
||||||
if [ "$SLOWTESTS" == '1' ]
|
if [ "$SLOWTESTS" == '1' ]
|
||||||
then
|
then
|
||||||
sudo apt-get -y install ldap-utils slapd php-ldap
|
sudo apt-get -y install ldap-utils slapd
|
||||||
mkdir /tmp/slapd
|
mkdir /var/tmp/slapd
|
||||||
slapd -f travis/ldap/slapd.conf -h ldap://localhost:3389 &
|
cp travis/ldap/slapd.conf /var/tmp/slapd/slapd.conf
|
||||||
|
slapd -d 256 -d 128 -f /var/tmp/slapd/slapd.conf -h ldap://localhost:3389 &
|
||||||
sleep 3
|
sleep 3
|
||||||
ldapadd -h localhost:3389 -D "cn=admin,dc=example,dc=com" -w adminadmin -f travis/ldap/base.ldif
|
ldapadd -h localhost:3389 -D "cn=admin,dc=example,dc=com" -w adminadmin -f travis/ldap/base.ldif
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue