perun.proxy.utils 2.6.0__tar.gz → 2.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/PKG-INFO +25 -2
  2. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/README.md +21 -1
  3. perun.proxy.utils-2.7.0/perun/proxy/utils/oracle2postgresql.py +213 -0
  4. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun.proxy.utils.egg-info/PKG-INFO +25 -2
  5. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun.proxy.utils.egg-info/SOURCES.txt +1 -0
  6. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun.proxy.utils.egg-info/entry_points.txt +1 -0
  7. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun.proxy.utils.egg-info/requires.txt +4 -0
  8. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/setup.cfg +1 -1
  9. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/setup.py +5 -0
  10. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/LICENSE +0 -0
  11. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/__init__.py +0 -0
  12. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/metadata_expiration.py +0 -0
  13. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/__init__.py +0 -0
  14. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/check_custom_command.py +0 -0
  15. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/check_dockers.py +0 -0
  16. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/check_exabgp_propagation.py +0 -0
  17. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/check_ldap.py +0 -0
  18. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/check_ldap_syncrepl.py +0 -0
  19. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/check_mongodb.py +0 -0
  20. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/check_nginx.py +0 -0
  21. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/check_oidc_login.py +0 -0
  22. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/check_pgsql.py +0 -0
  23. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/check_php_syntax.py +0 -0
  24. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/check_privacyidea.py +0 -0
  25. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/check_rpc_status.py +0 -0
  26. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/check_saml.py +0 -0
  27. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/check_user_logins.py +0 -0
  28. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/nagios/webserver_availability.py +0 -0
  29. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/print_docker_versions.py +0 -0
  30. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/run_probes.py +0 -0
  31. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/run_version_script.py +0 -0
  32. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/separate_oidc_logs.py +0 -0
  33. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/separate_ssp_logs.py +0 -0
  34. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun/proxy/utils/sync_usable_token_types.py +0 -0
  35. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun.proxy.utils.egg-info/dependency_links.txt +0 -0
  36. {perun.proxy.utils-2.6.0 → perun.proxy.utils-2.7.0}/perun.proxy.utils.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: perun.proxy.utils
3
- Version: 2.6.0
3
+ Version: 2.7.0
4
4
  Summary: Utilities and monitoring probes for Perun ProxyIdP
5
5
  Home-page: https://gitlab.ics.muni.cz/perun/perun-proxyidp/perun-proxy-utils.git
6
6
  Requires-Python: >=3.9
@@ -19,11 +19,14 @@ Requires-Dist: perun.connector~=3.8
19
19
  Requires-Dist: privacyidea~=3.9
20
20
  Requires-Dist: flask~=1.1
21
21
  Requires-Dist: idpyoidc~=2.1
22
+ Requires-Dist: sqlalchemy~=1.4
22
23
  Provides-Extra: ldap
23
24
  Requires-Dist: ldap3~=2.9.1; extra == "ldap"
24
25
  Requires-Dist: check_syncrepl_extended~=2020.13; extra == "ldap"
25
26
  Provides-Extra: postgresql
26
27
  Requires-Dist: psycopg2-binary~=2.9; extra == "postgresql"
28
+ Provides-Extra: oracle
29
+ Requires-Dist: cx-Oracle~=8.3; extra == "oracle"
27
30
 
28
31
  # Perun proxy utils
29
32
 
@@ -42,7 +45,8 @@ There are several extras which are required only for some scripts:
42
45
  - `[ldap]` for check_ldap and check_ldap_syncrepl
43
46
  - this also requires
44
47
  installing [build prerequisites of the python-ldap library](https://www.python-ldap.org/en/latest/installing.html#build-prerequisites)
45
- - `[postgresql]` for check_pgsql
48
+ - `[postgresql]` for check_pgsql and oracle2postgresql
49
+ - `[oracle]` for oracle2postgresql
46
50
 
47
51
  ## Scripts
48
52
 
@@ -138,6 +142,25 @@ python3 sync_usable_token_types.py
138
142
  --perun-connector-config-path "/path/to/file"
139
143
  ```
140
144
 
145
+ ### oracle2postgresql.py
146
+ Synchronizes data from Oracle db to PostgreSQL db.
147
+
148
+ Requires config file located at `/etc/oracle2postgresql_cfg.yaml` and [Oracle client](https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html).
149
+ #### Functionality
150
+ 1. Attribute Import:
151
+
152
+ Imports attributes from Oracle database tables to the PostgreSQL database, into a table compatible with [simplesamlphp-module-sqlattribs](https://github.com/tenet-ac-za/simplesamlphp-module-sqlattribs). Each attribute is specified with a corresponding SQL SELECT statement.
153
+
154
+ 2. Table Import:
155
+
156
+ Imports tables from the Oracle database to the PostgreSQL one. Supports both full and incremental synchronization.
157
+ For full synchronization, all records from the source table are imported.
158
+ For incremental synchronization, only records modified since the last synchronization are imported, based on designated change columns.
159
+ The full sync in turned off by default. Run with `-f` or `--full_sync` flag to turn it on.
160
+
161
+ Attributes and tables intended for import are stated in the config.
162
+ Target table names from PostgreSQL are hardcoded due to the possibility of needing to create them.
163
+
141
164
  ## Nagios probes
142
165
 
143
166
  All nagios scripts are located under `nagios` directory.
@@ -15,7 +15,8 @@ There are several extras which are required only for some scripts:
15
15
  - `[ldap]` for check_ldap and check_ldap_syncrepl
16
16
  - this also requires
17
17
  installing [build prerequisites of the python-ldap library](https://www.python-ldap.org/en/latest/installing.html#build-prerequisites)
18
- - `[postgresql]` for check_pgsql
18
+ - `[postgresql]` for check_pgsql and oracle2postgresql
19
+ - `[oracle]` for oracle2postgresql
19
20
 
20
21
  ## Scripts
21
22
 
@@ -111,6 +112,25 @@ python3 sync_usable_token_types.py
111
112
  --perun-connector-config-path "/path/to/file"
112
113
  ```
113
114
 
115
+ ### oracle2postgresql.py
116
+ Synchronizes data from Oracle db to PostgreSQL db.
117
+
118
+ Requires config file located at `/etc/oracle2postgresql_cfg.yaml` and [Oracle client](https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html).
119
+ #### Functionality
120
+ 1. Attribute Import:
121
+
122
+ Imports attributes from Oracle database tables to the PostgreSQL database, into a table compatible with [simplesamlphp-module-sqlattribs](https://github.com/tenet-ac-za/simplesamlphp-module-sqlattribs). Each attribute is specified with a corresponding SQL SELECT statement.
123
+
124
+ 2. Table Import:
125
+
126
+ Imports tables from the Oracle database to the PostgreSQL one. Supports both full and incremental synchronization.
127
+ For full synchronization, all records from the source table are imported.
128
+ For incremental synchronization, only records modified since the last synchronization are imported, based on designated change columns.
129
+ The full sync in turned off by default. Run with `-f` or `--full_sync` flag to turn it on.
130
+
131
+ Attributes and tables intended for import are stated in the config.
132
+ Target table names from PostgreSQL are hardcoded due to the possibility of needing to create them.
133
+
114
134
  ## Nagios probes
115
135
 
116
136
  All nagios scripts are located under `nagios` directory.
@@ -0,0 +1,213 @@
1
+ import argparse
2
+ import yaml
3
+ from sys import stderr, exit
4
+ from sqlalchemy import (
5
+ create_engine,
6
+ Table,
7
+ Column,
8
+ MetaData,
9
+ UniqueConstraint,
10
+ Integer,
11
+ BigInteger,
12
+ String,
13
+ Text,
14
+ Date,
15
+ text,
16
+ )
17
+ from sqlalchemy.exc import SQLAlchemyError
18
+
19
+
20
+ class Oracle2PostgreSQL:
21
+ """
22
+ Import append-only attributes from Oracle DB to Postgresql.
23
+ For all IDs returned from the Oracle SQL, insert a predefined value into an attribute.
24
+ Currently, for all alumni insert alum into eduPersonAffiliation.
25
+ """
26
+
27
+ def __init__(self, full_sync):
28
+ self.table_for_imported_attributes = "AttributeFromSQLUnique"
29
+ self.imported_table_name = "w_exp_passwd_all"
30
+ self.__get_config()
31
+ self.full_sync = full_sync
32
+ self.oracle_engine = self.__get_oracle_engine()
33
+ self.postgresql_engine = self.__get_postgresql_engine()
34
+ self.__create_tables_if_they_dont_exist()
35
+
36
+ def run_sync(self):
37
+ self.__import_attributes(self.import_attributes)
38
+ self.__import_tables(self.import_tables, self.full_sync)
39
+
40
+ def __get_config(self):
41
+ filepath = "/etc/oracle2postgresql_cfg.yaml"
42
+ try:
43
+ with open(filepath, "r") as file:
44
+ conf = yaml.safe_load(file)
45
+ self.batch_size = conf["batch_size"]
46
+ self.oracle_con_string = conf["oracle_con_string"]
47
+ self.postgresql_con_string = conf["postgres_con_string"]
48
+ self.import_attributes = conf["import_attributes"]
49
+ self.import_tables = conf["import_table"]
50
+ except OSError as e:
51
+ print(
52
+ f"Cannot open config with path: {filepath}, error: {e.strerror}",
53
+ file=stderr,
54
+ )
55
+ exit(2)
56
+
57
+ def __get_oracle_engine(self):
58
+ return create_engine(self.oracle_con_string)
59
+
60
+ def __get_postgresql_engine(self):
61
+ return create_engine(self.postgresql_con_string)
62
+
63
+ def __create_tables_if_they_dont_exist(self):
64
+ metadata = MetaData()
65
+
66
+ Table(
67
+ self.table_for_imported_attributes,
68
+ metadata,
69
+ Column("id", Integer, primary_key=True, autoincrement=True),
70
+ Column("uid", String(100), nullable=False),
71
+ Column("sp", String(250), default="%"),
72
+ Column("attribute", String(30), nullable=False),
73
+ Column("value", Text),
74
+ Column("expires", Date, default="9999-12-31"),
75
+ UniqueConstraint("uid", "attribute", "sp", "expires"),
76
+ )
77
+
78
+ Table(
79
+ "w_exp_passwd_all",
80
+ metadata,
81
+ Column("people_id", BigInteger, primary_key=True),
82
+ Column("login", String(31), nullable=True),
83
+ Column("heslo_primarni", String(255), nullable=True),
84
+ Column("heslo_sekundarni", String(255), nullable=True),
85
+ Column("zmeneno_primarni", Date, nullable=True),
86
+ Column("zmeneno_sekundarni", Date, nullable=True),
87
+ )
88
+
89
+ try:
90
+ metadata.create_all(self.postgresql_engine)
91
+ except SQLAlchemyError as e:
92
+ print(f"Error creating tables: {e}")
93
+
94
+ def __run_oracle_statement(self, select, params={}):
95
+ with self.oracle_engine.connect() as conn:
96
+ stmt = text(select)
97
+ return conn.execute(stmt, params)
98
+
99
+ def __import_attributes(self, imports):
100
+ """
101
+ Import attributes.
102
+ imports -- array in the form:
103
+ 'select': {
104
+ 'attribute_name': 'value'
105
+ }
106
+ """
107
+ for select, attribute in imports.items():
108
+ stmt = self.__run_oracle_statement(select)
109
+ batch = []
110
+ for row in stmt:
111
+ batch.append(row[0])
112
+ if len(batch) >= self.batch_size:
113
+ self.__insert(batch, attribute)
114
+ batch = []
115
+ if len(batch) > 0:
116
+ self.__insert(batch, attribute)
117
+
118
+ def __import_tables(self, source_table_info, full_sync):
119
+ """
120
+ Import table.
121
+ source_table_info -- array in the form:
122
+ 'source_table': 'source_table_name',
123
+ 'columns': ['first', 'second'],
124
+ 'changed': ['timestamp_column']
125
+
126
+ """
127
+ columns = source_table_info["columns"] + source_table_info["changed"]
128
+ column_list_expr = source_table_info["columns"]
129
+ for change_column in source_table_info["changed"]:
130
+ column_list_expr.append(
131
+ f"TO_CHAR({change_column}, 'YYYY-MM-DD HH24:MI:SS') AS {change_column}"
132
+ )
133
+ column_list_expr = ",".join(column_list_expr)
134
+ params = {}
135
+ if full_sync:
136
+ select = f"SELECT {column_list_expr} FROM {source_table_info.get('source_table', self.imported_table_name)}"
137
+ else:
138
+ selects = []
139
+ with self.oracle_engine.connect() as conn:
140
+ for change_column in source_table_info["changed"]:
141
+ select = f"SELECT {column_list_expr} FROM {source_table_info.get('source_table', self.imported_table_name)}"
142
+ last_value = conn.execute(
143
+ text(
144
+ f"SELECT MAX({change_column}) FROM {self.imported_table_name}"
145
+ )
146
+ ).scalar()
147
+ select += f" WHERE {change_column} >= TO_TIMESTAMP(:{change_column}, 'YYYY-MM-DD HH24:MI:SS')"
148
+ selects.append(select)
149
+ params[change_column] = last_value
150
+ select = " UNION ".join(selects)
151
+ with self.oracle_engine.connect() as conn:
152
+ insert_data = conn.execute(text(select), params)
153
+
154
+ updates = [f"{column} = EXCLUDED.{column}" for column in columns]
155
+ placeholders = [f":{column}" for column in columns]
156
+ query = text(
157
+ f"INSERT INTO {self.imported_table_name} ({','.join(columns)}) VALUES ({','.join(placeholders)}) ON CONFLICT (people_id) DO UPDATE SET {','.join(updates)}"
158
+ )
159
+ row_count = 0
160
+ with self.postgresql_engine.begin() as conn:
161
+ for row in insert_data:
162
+ row_count += 1
163
+ params = {columns[i]: row[i] for i in range(len(columns))}
164
+ conn.execute(query, params)
165
+ print(f"Oracle2PostgreSQL.py - {row_count} account(s) were updated.")
166
+
167
+ def __insert(self, usernames, attribute):
168
+ if not usernames:
169
+ return
170
+
171
+ insert_text = text(
172
+ f'INSERT INTO "{self.table_for_imported_attributes}" (uid, attribute, value) '
173
+ "VALUES (:uid, :attribute, :value) "
174
+ "ON CONFLICT (id) DO UPDATE SET id = EXCLUDED.id"
175
+ )
176
+ with self.postgresql_engine.begin() as conn:
177
+ for username in usernames:
178
+ for name, value in attribute.items():
179
+ try:
180
+ with conn.begin_nested():
181
+ conn.execute(
182
+ insert_text,
183
+ {"uid": username, "attribute": name, "value": value},
184
+ )
185
+ except Exception as e:
186
+ print(
187
+ f"Oracle2PostgreSQL - Failed to insert/update, "
188
+ f"user {username}, attribute {name}, value {value}"
189
+ f"{e}"
190
+ )
191
+
192
+
193
+ def get_args():
194
+ parser = argparse.ArgumentParser()
195
+ parser.add_argument(
196
+ "-f",
197
+ "--full_sync",
198
+ action="store_true",
199
+ default=False,
200
+ help="Whether to do a full sync or not.",
201
+ )
202
+ return parser.parse_args()
203
+
204
+
205
+ def main():
206
+ args = get_args()
207
+
208
+ ora2postgresql = Oracle2PostgreSQL(args.full_sync)
209
+ ora2postgresql.run_sync()
210
+
211
+
212
+ if __name__ == "__main__":
213
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: perun.proxy.utils
3
- Version: 2.6.0
3
+ Version: 2.7.0
4
4
  Summary: Utilities and monitoring probes for Perun ProxyIdP
5
5
  Home-page: https://gitlab.ics.muni.cz/perun/perun-proxyidp/perun-proxy-utils.git
6
6
  Requires-Python: >=3.9
@@ -19,11 +19,14 @@ Requires-Dist: perun.connector~=3.8
19
19
  Requires-Dist: privacyidea~=3.9
20
20
  Requires-Dist: flask~=1.1
21
21
  Requires-Dist: idpyoidc~=2.1
22
+ Requires-Dist: sqlalchemy~=1.4
22
23
  Provides-Extra: ldap
23
24
  Requires-Dist: ldap3~=2.9.1; extra == "ldap"
24
25
  Requires-Dist: check_syncrepl_extended~=2020.13; extra == "ldap"
25
26
  Provides-Extra: postgresql
26
27
  Requires-Dist: psycopg2-binary~=2.9; extra == "postgresql"
28
+ Provides-Extra: oracle
29
+ Requires-Dist: cx-Oracle~=8.3; extra == "oracle"
27
30
 
28
31
  # Perun proxy utils
29
32
 
@@ -42,7 +45,8 @@ There are several extras which are required only for some scripts:
42
45
  - `[ldap]` for check_ldap and check_ldap_syncrepl
43
46
  - this also requires
44
47
  installing [build prerequisites of the python-ldap library](https://www.python-ldap.org/en/latest/installing.html#build-prerequisites)
45
- - `[postgresql]` for check_pgsql
48
+ - `[postgresql]` for check_pgsql and oracle2postgresql
49
+ - `[oracle]` for oracle2postgresql
46
50
 
47
51
  ## Scripts
48
52
 
@@ -138,6 +142,25 @@ python3 sync_usable_token_types.py
138
142
  --perun-connector-config-path "/path/to/file"
139
143
  ```
140
144
 
145
+ ### oracle2postgresql.py
146
+ Synchronizes data from Oracle db to PostgreSQL db.
147
+
148
+ Requires config file located at `/etc/oracle2postgresql_cfg.yaml` and [Oracle client](https://www.oracle.com/database/technologies/instant-client/linux-x86-64-downloads.html).
149
+ #### Functionality
150
+ 1. Attribute Import:
151
+
152
+ Imports attributes from Oracle database tables to the PostgreSQL database, into a table compatible with [simplesamlphp-module-sqlattribs](https://github.com/tenet-ac-za/simplesamlphp-module-sqlattribs). Each attribute is specified with a corresponding SQL SELECT statement.
153
+
154
+ 2. Table Import:
155
+
156
+ Imports tables from the Oracle database to the PostgreSQL one. Supports both full and incremental synchronization.
157
+ For full synchronization, all records from the source table are imported.
158
+ For incremental synchronization, only records modified since the last synchronization are imported, based on designated change columns.
159
+ The full sync in turned off by default. Run with `-f` or `--full_sync` flag to turn it on.
160
+
161
+ Attributes and tables intended for import are stated in the config.
162
+ Target table names from PostgreSQL are hardcoded due to the possibility of needing to create them.
163
+
141
164
  ## Nagios probes
142
165
 
143
166
  All nagios scripts are located under `nagios` directory.
@@ -10,6 +10,7 @@ perun.proxy.utils.egg-info/requires.txt
10
10
  perun.proxy.utils.egg-info/top_level.txt
11
11
  perun/proxy/utils/__init__.py
12
12
  perun/proxy/utils/metadata_expiration.py
13
+ perun/proxy/utils/oracle2postgresql.py
13
14
  perun/proxy/utils/print_docker_versions.py
14
15
  perun/proxy/utils/run_probes.py
15
16
  perun/proxy/utils/run_version_script.py
@@ -15,6 +15,7 @@ check_saml = perun.proxy.utils.nagios.check_saml:main
15
15
  check_user_logins = perun.proxy.utils.nagios.check_user_logins:main
16
16
  check_webserver_availability = perun.proxy.utils.nagios.webserver_availability:main
17
17
  metadata_expiration = perun.proxy.utils.metadata_expiration:main
18
+ oracle2postgresql = perun.proxy.utils.oracle2postgresql:main
18
19
  print_docker_versions = perun.proxy.utils.print_docker_versions:main
19
20
  run_probes = perun.proxy.utils.run_probes:main
20
21
  run_version_script = perun.proxy.utils.run_version_script:main
@@ -11,10 +11,14 @@ perun.connector~=3.8
11
11
  privacyidea~=3.9
12
12
  flask~=1.1
13
13
  idpyoidc~=2.1
14
+ sqlalchemy~=1.4
14
15
 
15
16
  [ldap]
16
17
  ldap3~=2.9.1
17
18
  check_syncrepl_extended~=2020.13
18
19
 
20
+ [oracle]
21
+ cx-Oracle~=8.3
22
+
19
23
  [postgresql]
20
24
  psycopg2-binary~=2.9
@@ -1,5 +1,5 @@
1
1
  [metadata]
2
- version = 2.6.0
2
+ version = 2.7.0
3
3
  license_files = LICENSE
4
4
  long_description = file: README.md
5
5
  long_description_content_type = text/markdown
@@ -21,6 +21,7 @@ setuptools.setup(
21
21
  "privacyidea~=3.9",
22
22
  "flask~=1.1",
23
23
  "idpyoidc~=2.1",
24
+ "sqlalchemy~=1.4",
24
25
  ],
25
26
  extras_require={
26
27
  "ldap": [
@@ -30,6 +31,9 @@ setuptools.setup(
30
31
  "postgresql": [
31
32
  "psycopg2-binary~=2.9",
32
33
  ],
34
+ "oracle": [
35
+ "cx-Oracle~=8.3",
36
+ ],
33
37
  },
34
38
  entry_points={
35
39
  "console_scripts": [
@@ -57,6 +61,7 @@ setuptools.setup(
57
61
  "separate_oidc_logs=perun.proxy.utils.separate_oidc_logs:main",
58
62
  "separate_ssp_logs=perun.proxy.utils.separate_ssp_logs:main",
59
63
  "sync_usable_token_types=perun.proxy.utils.sync_usable_token_types:main",
64
+ "oracle2postgresql=perun.proxy.utils.oracle2postgresql:main",
60
65
  ]
61
66
  },
62
67
  )