Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
re2o
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nounous
re2o
Commits
e4e592a7
Commit
e4e592a7
authored
May 17, 2018
by
Maël Kervella
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ajoute une fonction 'update-settings' + cleanup
parent
8f1ec697
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
289 additions
and
217 deletions
+289
-217
install_re2o.sh
install_re2o.sh
+215
-142
install_utils/db.ldiff
install_utils/db.ldiff
+46
-46
install_utils/schema.ldiff
install_utils/schema.ldiff
+20
-20
re2o/settings_local.example.py
re2o/settings_local.example.py
+8
-9
No files found.
install_re2o.sh
View file @
e4e592a7
This diff is collapsed.
Click to expand it.
install_utils/db.ldiff
View file @
e4e592a7
dn: dc=example,dc=
org
dn: dc=example,dc=
net
o: rezo
structuralObjectClass: organization
entryUUID: fc97a0fe-514b-1034-9e4d-59675b32507b
creatorsName: cn=admin,dc=example,dc=
org
creatorsName: cn=admin,dc=example,dc=
net
createTimestamp: 20150225150906Z
description: ldap
objectClass: top
objectClass: dcObject
objectClass: organization
entryCSN: 20151003212702.245118Z#000000#000#000000
modifiersName: cn=admin,dc=example,dc=
org
modifiersName: cn=admin,dc=example,dc=
net
modifyTimestamp: 20151003212702Z
contextCSN: 20161004233332.689769Z#000000#000#000000
dn: cn=admin,dc=example,dc=
org
dn: cn=admin,dc=example,dc=
net
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
structuralObjectClass: organizationalRole
entryUUID: fc97fa72-514b-1034-9e4e-59675b32507b
creatorsName: cn=admin,dc=example,dc=
org
creatorsName: cn=admin,dc=example,dc=
net
createTimestamp: 20150225150906Z
description:: TERBUCBhZG1pbmlzdHJhdG9yDQo=
userPassword: FILL_IT
entryCSN: 20160604005945.576566Z#000000#000#000000
modifiersName: cn=admin,dc=example,dc=
org
modifiersName: cn=admin,dc=example,dc=
net
modifyTimestamp: 20160604005945Z
dn: cn=Utilisateurs,dc=example,dc=
org
dn: cn=Utilisateurs,dc=example,dc=
net
gidNumber: 500
cn: Utilisateurs
structuralObjectClass: posixGroup
entryUUID: 5d53854e-5204-1034-8c61-8da535cabdfc
creatorsName: cn=admin,dc=example,dc=
org
creatorsName: cn=admin,dc=example,dc=
net
createTimestamp: 20150226130856Z
sambaSID: 500
uid: Users
...
...
@@ -41,143 +41,143 @@ objectClass: top
objectClass: sambaSamAccount
objectClass: radiusprofile
entryCSN: 20150226130950.194154Z#000000#000#000000
modifiersName: cn=admin,dc=example,dc=
org
modifiersName: cn=admin,dc=example,dc=
net
modifyTimestamp: 20150226130950Z
dn: ou=groups,dc=example,dc=
org
dn: ou=groups,dc=example,dc=
net
objectClass: organizationalUnit
description: Groupes d'utilisateurs
ou: groups
structuralObjectClass: organizationalUnit
entryUUID: 986aa1b6-bb86-1035-9a4c-2ff0c800ec24
creatorsName: cn=admin,dc=example,dc=
org
creatorsName: cn=admin,dc=example,dc=
net
createTimestamp: 20160531142039Z
entryCSN: 20160531142039.780151Z#000000#000#000000
modifiersName: cn=admin,dc=example,dc=
org
modifiersName: cn=admin,dc=example,dc=
net
modifyTimestamp: 20160531142039Z
dn: ou=services,ou=groups,dc=example,dc=
org
dn: ou=services,ou=groups,dc=example,dc=
net
objectClass: organizationalUnit
description: Groupes de comptes techniques
ou: services
structuralObjectClass: organizationalUnit
entryUUID: cbb56904-bc6a-1035-9fbb-3dc3850d88ba
creatorsName: cn=admin,dc=example,dc=
org
creatorsName: cn=admin,dc=example,dc=
net
createTimestamp: 20160601173411Z
entryCSN: 20160601173411.088359Z#000000#000#000000
modifiersName: cn=admin,dc=example,dc=
org
modifiersName: cn=admin,dc=example,dc=
net
modifyTimestamp: 20160601173411Z
dn: ou=service-users,dc=example,dc=
org
dn: ou=service-users,dc=example,dc=
net
objectClass: organizationalUnit
description: Utilisateurs techniques de l'annuaire
ou: service-users
structuralObjectClass: organizationalUnit
entryUUID: 0e397270-bc6b-1035-9fbd-3dc3850d88ba
creatorsName: cn=admin,dc=example,dc=
org
creatorsName: cn=admin,dc=example,dc=
net
createTimestamp: 20160601173602Z
entryCSN: 20160601173602.683304Z#000000#000#000000
modifiersName: cn=admin,dc=example,dc=
org
modifiersName: cn=admin,dc=example,dc=
net
modifyTimestamp: 20160601173602Z
dn: cn=freeradius,ou=service-users,dc=example,dc=
org
dn: cn=freeradius,ou=service-users,dc=example,dc=
net
objectClass: applicationProcess
objectClass: simpleSecurityObject
cn: freeradius
userPassword: FILL_IT
structuralObjectClass: applicationProcess
entryUUID: 8596e4ec-bc6b-1035-9fbf-3dc3850d88ba
creatorsName: cn=admin,dc=example,dc=
org
creatorsName: cn=admin,dc=example,dc=
net
createTimestamp: 20160601173922Z
entryCSN: 20160601173922.944598Z#000000#000#000000
modifiersName: cn=admin,dc=example,dc=
org
modifiersName: cn=admin,dc=example,dc=
net
modifyTimestamp: 20160601173922Z
dn: cn=nssauth,ou=service-users,dc=example,dc=
org
dn: cn=nssauth,ou=service-users,dc=example,dc=
net
objectClass: applicationProcess
objectClass: simpleSecurityObject
cn: nssauth
structuralObjectClass: applicationProcess
entryUUID: cfbdadc6-bc6b-1035-9fc4-3dc3850d88ba
creatorsName: cn=admin,dc=example,dc=
org
creatorsName: cn=admin,dc=example,dc=
net
createTimestamp: 20160601174127Z
userPassword: FILL_IT
entryCSN: 20160603093724.770069Z#000000#000#000000
modifiersName: cn=admin,dc=example,dc=
org
modifiersName: cn=admin,dc=example,dc=
net
modifyTimestamp: 20160603093724Z
dn: cn=auth,ou=services,ou=groups,dc=example,dc=
org
dn: cn=auth,ou=services,ou=groups,dc=example,dc=
net
objectClass: groupOfNames
cn: auth
member: cn=nssauth,ou=service-users,dc=example,dc=
org
member: cn=nssauth,ou=service-users,dc=example,dc=
net
structuralObjectClass: groupOfNames
entryUUID: 98524836-bc6d-1035-9fc7-3dc3850d88ba
creatorsName: cn=admin,dc=example,dc=
org
creatorsName: cn=admin,dc=example,dc=
net
createTimestamp: 20160601175413Z
entryCSN: 20160620005705.309928Z#000000#000#000000
modifiersName: cn=admin,dc=example,dc=
org
modifiersName: cn=admin,dc=example,dc=
net
modifyTimestamp: 20160620005705Z
dn: ou=posix,ou=groups,dc=example,dc=
org
dn: ou=posix,ou=groups,dc=example,dc=
net
objectClass: organizationalUnit
description: Groupes de comptes POSIX
ou: posix
structuralObjectClass: organizationalUnit
entryUUID: fbd89c4a-bdb5-1035-9045-d5a09894d93e
creatorsName: cn=admin,dc=example,dc=
org
creatorsName: cn=admin,dc=example,dc=
net
createTimestamp: 20160603090455Z
entryCSN: 20160603090455.267192Z#000000#000#000000
modifiersName: cn=admin,dc=example,dc=
org
modifiersName: cn=admin,dc=example,dc=
net
modifyTimestamp: 20160603090455Z
dn: cn=wifi,ou=service-users,dc=example,dc=
org
dn: cn=wifi,ou=service-users,dc=example,dc=
net
objectClass: applicationProcess
objectClass: simpleSecurityObject
cn: wifi
structuralObjectClass: applicationProcess
entryUUID: 8cc2d1a6-bdc2-1035-9051-d5a09894d93e
creatorsName: cn=admin,dc=example,dc=
org
creatorsName: cn=admin,dc=example,dc=
net
createTimestamp: 20160603103452Z
userPassword: FILL_IT
entryCSN: 20160603103638.682210Z#000000#000#000000
modifiersName: cn=admin,dc=example,dc=
org
modifiersName: cn=admin,dc=example,dc=
net
modifyTimestamp: 20160603103638Z
dn: cn=usermgmt,ou=services,ou=groups,dc=example,dc=
org
dn: cn=usermgmt,ou=services,ou=groups,dc=example,dc=
net
objectClass: groupOfNames
cn: usermgmt
structuralObjectClass: groupOfNames
entryUUID: ec01e206-bdc2-1035-9054-d5a09894d93e
creatorsName: cn=admin,dc=example,dc=
org
creatorsName: cn=admin,dc=example,dc=
net
createTimestamp: 20160603103732Z
member: cn=wifi,ou=service-users,dc=example,dc=
org
member: cn=wifi,ou=service-users,dc=example,dc=
net
entryCSN: 20160603103746.897151Z#000000#000#000000
modifiersName: cn=admin,dc=example,dc=
org
modifiersName: cn=admin,dc=example,dc=
net
modifyTimestamp: 20160603103746Z
dn: cn=replica,ou=service-users,dc=example,dc=
org
dn: cn=replica,ou=service-users,dc=example,dc=
net
objectClass: applicationProcess
objectClass: simpleSecurityObject
cn: replica
structuralObjectClass: applicationProcess
entryUUID: caef5c54-c0e4-1035-948f-dfe369fe3d4f
creatorsName: cn=admin,dc=example,dc=
org
creatorsName: cn=admin,dc=example,dc=
net
createTimestamp: 20160607101733Z
userPassword: FILL_IT
entryCSN: 20160607101829.424643Z#000000#000#000000
modifiersName: cn=admin,dc=example,dc=
org
modifiersName: cn=admin,dc=example,dc=
net
modifyTimestamp: 20160607101829Z
dn: cn=readonly,ou=services,ou=groups,dc=example,dc=
org
dn: cn=readonly,ou=services,ou=groups,dc=example,dc=
net
objectClass: groupOfNames
cn: readonly
structuralObjectClass: groupOfNames
entryUUID: f6bd2366-c0e4-1035-9492-dfe369fe3d4f
creatorsName: cn=admin,dc=example,dc=
org
creatorsName: cn=admin,dc=example,dc=
net
createTimestamp: 20160607101846Z
member: cn=replica,ou=service-users,dc=example,dc=
org
member: cn=freeradius,ou=service-users,dc=example,dc=
org
member: cn=replica,ou=service-users,dc=example,dc=
net
member: cn=freeradius,ou=service-users,dc=example,dc=
net
entryCSN: 20160619214628.287369Z#000000#000#000000
modifiersName: cn=admin,dc=example,dc=
org
modifiersName: cn=admin,dc=example,dc=
net
modifyTimestamp: 20160619214628Z
install_utils/schema.ldiff
View file @
e4e592a7
...
...
@@ -1108,35 +1108,35 @@ objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {1}hdb
olcDbDirectory: /var/lib/ldap
olcSuffix: dc=example,dc=
org
olcSuffix: dc=example,dc=
net
olcAccess: {0}to attrs=userPassword,sambaNTPassword,mail by self write by an
onymous auth by dn="cn=admin,dc=example,dc=
org
" write by group="cn
=readonly,ou=services,ou=groups,dc=example,dc=
org
" read by group="
cn=usermgmt,ou=services,ou=groups,dc=example,dc=
org
" write by * no
onymous auth by dn="cn=admin,dc=example,dc=
net
" write by group="cn
=readonly,ou=services,ou=groups,dc=example,dc=
net
" read by group="
cn=usermgmt,ou=services,ou=groups,dc=example,dc=
net
" write by * no
ne
olcAccess: {1}to attrs=shadowLastChange,gecos,loginShell by self write by an
onymous auth by dn="cn=admin,dc=example,dc=
org
" write by group="cn
=readonly,ou=services,ou=groups,dc=example,dc=
org
" read by group="
cn=auth,ou=services,ou=groups,dc=example,dc=
org
" read by group="cn
=usermgmt,ou=services,ou=groups,dc=example,dc=
org
" write by * none
onymous auth by dn="cn=admin,dc=example,dc=
net
" write by group="cn
=readonly,ou=services,ou=groups,dc=example,dc=
net
" read by group="
cn=auth,ou=services,ou=groups,dc=example,dc=
net
" read by group="cn
=usermgmt,ou=services,ou=groups,dc=example,dc=
net
" write by * none
olcAccess: {2}to dn.base="" by * read
olcAccess: {3}to dn.sub="ou=groups,dc=example,dc=
org
" by group="cn=
auth,ou=services,ou=groups,dc=example,dc=
org
" read by group="cn=re
adonly,ou=services,ou=groups,dc=example,dc=
org
" read
olcAccess: {4}to dn.sub="cn=Utilisateurs,dc=example,dc=
org
" by grou
p="cn=auth,ou=services,ou=groups,dc=example,dc=
org
" read by self r
ead by group="cn=readonly,ou=services,ou=groups,dc=example,dc=
org
"
olcAccess: {3}to dn.sub="ou=groups,dc=example,dc=
net
" by group="cn=
auth,ou=services,ou=groups,dc=example,dc=
net
" read by group="cn=re
adonly,ou=services,ou=groups,dc=example,dc=
net
" read
olcAccess: {4}to dn.sub="cn=Utilisateurs,dc=example,dc=
net
" by grou
p="cn=auth,ou=services,ou=groups,dc=example,dc=
net
" read by self r
ead by group="cn=readonly,ou=services,ou=groups,dc=example,dc=
net
"
read by group="cn=usermgmt,ou=services,ou=groups,dc=example,dc=or
g" write
olcAccess: {5}to dn.sub="ou=service-users,dc=example,dc=
org
" by gro
up="cn=auth,ou=services,ou=groups,dc=example,dc=
org
" read by group
="cn=readonly,ou=services,ou=groups,dc=example,dc=
org
" read
olcAccess: {6}to dn.base="dc=example,dc=
org
" by * read
olcAccess: {7}to * by dn="cn=admin,dc=example,dc=
org
" write by self
olcAccess: {5}to dn.sub="ou=service-users,dc=example,dc=
net
" by gro
up="cn=auth,ou=services,ou=groups,dc=example,dc=
net
" read by group
="cn=readonly,ou=services,ou=groups,dc=example,dc=
net
" read
olcAccess: {6}to dn.base="dc=example,dc=
net
" by * read
olcAccess: {7}to * by dn="cn=admin,dc=example,dc=
net
" write by self
read by group="cn=readonly,ou=services,ou=groups,dc=example,dc=or
g" read
olcLastMod: TRUE
olcRootDN: cn=admin,dc=example,dc=
org
olcRootDN: cn=admin,dc=example,dc=
net
olcRootPW: FILL_IT
olcDbCheckpoint: 512 30
olcDbConfig: {0}set_cachesize 0 2097152 0
...
...
re2o/settings_local.example.py
View file @
e4e592a7
...
...
@@ -19,9 +19,8 @@
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
"""re2o.settings_locale.example
The example settings_locale.py file with all the available
options for a locale configuration of re2o
"""re2o.settings_locale
The file with all the available options for a locale configuration of re2o
"""
from
__future__
import
unicode_literals
...
...
@@ -41,7 +40,7 @@ AES_KEY = 'A_SECRET_AES_KEY'
DEBUG
=
False
# A list of admins of the services. Receive mails when an error occurs
ADMINS
=
[(
'Example'
,
'
rezo-admin@example.org
'
)]
ADMINS
=
[(
'Example'
,
'
admin@example.net
'
)]
# The list of hostname the server will respond to.
ALLOWED_HOSTS
=
[
'URL_SERVER'
]
...
...
@@ -81,16 +80,16 @@ SESSION_COOKIE_AGE = 60 * 60 * 3
LOGO_PATH
=
"static_files/logo.png"
# The mail configuration for Re2o to send mails
SERVER_EMAIL
=
'no-reply@example.
org
'
# The mail address to use
SERVER_EMAIL
=
'no-reply@example.
net
'
# The mail address to use
EMAIL_HOST
=
'MY_EMAIL_HOST'
# The host to use
EMAIL_PORT
=
MY_EMAIL_PORT
# The port to use
# Settings of the LDAP structure
LDAP
=
{
'base_user_dn'
:
'cn=Utilisateurs,dc=example,dc=
org
'
,
'base_userservice_dn'
:
'ou=service-users,dc=example,dc=
org
'
,
'base_usergroup_dn'
:
'ou=posix,ou=groups,dc=example,dc=
org
'
,
'base_userservicegroup_dn'
:
'ou=services,ou=groups,dc=example,dc=
org
'
,
'base_user_dn'
:
'cn=Utilisateurs,dc=example,dc=
net
'
,
'base_userservice_dn'
:
'ou=service-users,dc=example,dc=
net
'
,
'base_usergroup_dn'
:
'ou=posix,ou=groups,dc=example,dc=
net
'
,
'base_userservicegroup_dn'
:
'ou=services,ou=groups,dc=example,dc=
net
'
,
'user_gid'
:
500
,
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment