Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
supr-ldap-integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Swestore
supr-ldap-integration
Commits
75c99021
You need to sign in or sign up before continuing.
Commit
75c99021
authored
2 years ago
by
Einar Largenius
Browse files
Options
Downloads
Patches
Plain Diff
Remove settings.py
parent
d534bbf8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
settings-default.py
+69
-0
69 additions, 0 deletions
settings-default.py
with
70 additions
and
0 deletions
.gitignore
+
1
−
0
View file @
75c99021
...
...
@@ -3,6 +3,7 @@
/include/
/lib/
/pyvenv.cfg
/settings.py
# Generated files
*.pyc
This diff is collapsed.
Click to expand it.
settings.py
→
settings
-default
.py
+
69
−
0
View file @
75c99021
#!/usr/bin/python
#! -*- coding: utf-8 -*-
import
datetime
# Settings File for supr_swestore
# Copy this file to settings.py
# SUPR API USER NAME
SUPR_API_USER_NAME
=
"
api-c-9
"
# SUPR API PASSWORD
SUPR_API_PASSWORD
=
"
PrQVGecH9C
"
# SUPR API URL
SUPR_BASE_URL
=
"
https://disposer.c3se.chalmers.se/supr-test/api/
"
import
datetime
SUPR_API_USER_NAME
=
""
SUPR_API_PASSWORD
=
""
SUPR_BASE_URL
=
""
# LDAP HOST
HOST_NAME
=
"
ldaptest.swestore.se
"
LDAP_PORT
=
"
636
"
HOST_NAME
=
""
LDAP_PORT
=
""
LDAP_HOST
=
"
ldaps://
"
+
HOST_NAME
+
"
:
"
+
LDAP_PORT
#LDAP_HOST = "ldapi:///"
# LDAP BIND DN
baseDN
=
"
dc=swestore-ldap
"
LDAP_ADMIN
=
"
cn=admin,
"
+
baseDN
# LDAP BIND PASSWORD
LDAP_PASSWORD
=
"
paradise23
"
baseDN
=
""
LDAP_ADMIN
=
""
LDAP_PASSWORD
=
""
# TLS Certificate Paths
#
TLS_CACERTDIR = "/etc/openldap/certs/"
TLS_CACERTFILE
=
"
/etc/grid-security/certificates/TERENA-eScience-SSL-CA-3.pem
"
TLS_CERTFILE
=
"
/etc/grid-security/supr-cert.pem
"
TLS_KEYFILE
=
"
/etc/grid-security/supr-key.pem
"
TLS_CACERTDIR
=
"
/etc/openldap/certs/
"
TLS_CACERTFILE
=
""
TLS_CERTFILE
=
""
TLS_KEYFILE
=
""
# LDAP DN
groupsDN
=
"
ou=Groups,
"
+
baseDN
groupsDN
=
"
ou=Groups,
"
+
baseDN
peopleDN
=
"
ou=People,
"
+
baseDN
uidNumberStart
=
30000
gidNumberStart
=
6000
...
...
@@ -41,61 +37,33 @@ resource_centre_id = 9
PDC_centre_id
=
7
# PDC Kerberos tag
PDC_kerberos
=
"
NADA.KTH.SE
"
# iRODS Resource ID in SUPR
irods_resource_id
=
'
33
'
PDC_kerberos
=
""
# dcache Resource ID in SUPR for Swestore
dcache_resource_id
=
'
23
'
# IRODS Settings for connection
IRODS_DIR
=
"
/snic.se/proj
"
IRODS_HOME_DIR
=
"
/snic.se/home
"
IRODS_HOST
=
"
snic2-irods.nsc.liu.se
"
IRODS_PORT
=
2432
IRODS_ADMIN_USER
=
"
supr
"
IRODS_ADMIN_PWD
=
"
diarloq416erioca
"
IRODS_ZONE
=
"
snic.se
"
# FreeIPA User
IPA_HOST
=
"
auth1.swestore.se
"
IPA_ADMIN_USER
=
"
supr
"
IPA_ADMIN_PWD
=
"
haicodpio389darikrouma996
"
dcache_resource_id
=
""
# Kerberos settings
keytab
=
"
/home/dcache/private/dcache-usermgmt.keytab
"
adminprincipal
=
"
dcache/usermgmt
"
keytab
=
"
"
adminprincipal
=
"
"
# Get a date object
today
=
datetime
.
date
.
today
().
strftime
(
"
%Y-%m-%d
"
)
BASEDIR
=
"
/supr/
"
IRODS_LOG_FILE
=
BASEDIR
+
"
logs/irods_
"
+
str
(
today
)
+
"
.log
"
BASEDIR
=
""
DELETE_LOG_FILE
=
BASEDIR
+
"
logs/delete_
"
+
str
(
today
)
+
"
.log
"
LOG_FILE
=
BASEDIR
+
"
logs/ldap_
"
+
str
(
today
)
+
"
.log
"
IPA_LOG_FILE
=
BASEDIR
+
"
logs/ipa_
"
+
str
(
today
)
+
"
.log
"
LOG_FILE_MODE
=
'
a
'
LOG_FILE_FORMAT
=
'
%(asctime)s - %(name)s - %(levelname)s - %(message)s
'
LOG_FILE_DATEFORMAT
=
'
%H:%M:%S
'
# DCache Admin Mail Ids to send mail
DCACHE_ADMIN_MAIL
=
'
dcache-admin@swestore.se
'
# iRODS Admin Mail Ids to send mail
IRODS_ADMIN_MAIL
=
'
irods-admin@swestore.se
'
DCACHE_ADMIN_MAIL
=
""
# Send Mail Attributes
SMTP_HOST
=
'
localhost
'
SMTP_PORT
=
25
FROM_ADDRS
=
'
supr@
'
+
HOST_NAME
IRODS_FROM_ADDRS
=
'
irods-admin@swestore.se
'
LDAP_SUBJECT
=
"
SUPR - SWESTORE LDAP Integration Daily Mail
"
IRODS_SUBJECT
=
"
SUPR - SWESTORE IRODS Integration Daily Mail
"
LDAP_DEL_SUBJECT
=
"
SUPR - SWESTORE LDAP Deletion Mail
"
IRODS_DEL_SUBJECT
=
"
SUPR - SWESTORE IRODS Deletion Mail
"
IRODS_USR_SUBJECT
=
"
SNIC - iRODS Username and Project Path
"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment