Skip to content

Commit 6c07ccb

Browse files
committed
corrections
1 parent 9f44590 commit 6c07ccb

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
cp copy_ssh_key.py .debpkg/var/lib/sesame-daemon/backends-modules/ad
2727
chmod 700 .debpkg/var/lib/sesame-daemon/backends-modules/ad/install.sh
2828
chmod 700 .debpkg/var/lib/sesame-daemon/backends-modules/ad/copy_ssh_key.py
29+
chmod 700 .debpkg/var/lib/sesame-daemon/backends-modules/bin/*
2930
cp requirements.txt .debpkg/var/lib/sesame-daemon/backends-modules/ad
3031
- uses: jiro4989/build-deb-action@v3
3132
with:

install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ cp ./etc/* $INSTALL/etc
2020
mkdir $INSTALL/bin
2121
mkdir $INSTALL/lib
2222
PWD=`pwd`
23+
chmod 700 ./bin/*
2324
cp ./lib/__init__.py $INSTALL/lib
2425
ln -s $PWD/lib/backend_utils.py $INSTALL/lib/backend_utils.py
2526
ln -s $PWD/lib/ad_utils.py $INSTALL/lib/ad_utils.py
@@ -28,7 +29,7 @@ ln -s $PWD/bin/ping.py $INSTALL/bin/ping.py
2829
ln -s $PWD/bin/resetpwd.py $INSTALL/bin/resetpwd.py
2930
ln -s $PWD/bin/delentity.py $INSTALL/bin/delentity.py
3031
ln -s $PWD/bin/upsertidentity.py $INSTALL/bin/upsertidentity.py
31-
chmod 700 $INSTALL/bin/*
32+
ln -s $PWD/bin/activation.py $INSTALL/bin/activation.py
3233
mkdir $INSTALL/ps1_templates
3334
cp ./ps1_templates/* $INSTALL/ps1_templates
3435
chmod 600 $INSTALL/ps1_templates/*

src/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ actions:
1919
IDENTITY_DELETE:
2020
script: 'delentity.py'
2121
onError: 'stop'
22+
IDENTITY_ENABLE:
23+
script: 'activation.py --active 1'
24+
onError: 'stop'
25+
IDENTITY_DISABLE:
26+
script: 'activation.py --active 0'
27+
onError: 'stop'
2228
PING_TARGET:
2329
script: 'ping.py'
2430
onError: 'stop'

src/etc/config.conf.exemple

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
host=ad.mydomain.com
22
user=administrator
33
base=dc=mydomain,dc=com
4-
userbase=ou=peoples,dc=mydomain,dc=com
5-
rdnattribute=uid
64
branchForEtd=ou=Etudiants
75
branchForAdm=ou=Administratifs
86
branchForEsn=ou=Enseignants
9-
branchAttr=supannTypeEntiteAffectation
7+
branchAttr=supannEntiteAffectationPrincipale
108
backendFor=adm,etd,esn

0 commit comments

Comments
 (0)