Skip to content

Commit

Permalink
fix(ldap2rdbm): saml datasource.propertie
Browse files Browse the repository at this point in the history
fix(ldap2rdbm): saml datasource.propertie
  • Loading branch information
yuriyz authored Nov 20, 2024
2 parents 15403aa + c579ab1 commit 60a36d7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions community-edition-setup/tools/ldap_to_rdbm/ldap2rdbm.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
from setup_app.utils.ldif_utils import myLdifParser
from setup_app.installers.opendj import OpenDjInstaller
from setup_app.installers.rdbm import RDBMInstaller
from setup_app.installers.saml import SamlInstaller

from setup_app.pylib.ldif4.ldif import LDIFWriter
from ldap3.utils import dn as dnutils

Expand All @@ -63,6 +65,7 @@
openDjInstaller = OpenDjInstaller()
rdbmInstaller = RDBMInstaller()
propertiesUtils = PropertiesUtils()
samlInstaller = SamlInstaller()

parser = myLdifParser("/opt/opendj/config/schema/77-customAttributes.ldif")
parser.parse()
Expand Down Expand Up @@ -225,6 +228,11 @@ def dump_ldap(ldap_filter, output_fn):
print("Creating indexes...")
rdbmInstaller.create_indexes()

if samlInstaller.installed():
print("Writing saml persistence configuration")
samlInstaller.saml_persist_configurations()
samlInstaller.run(['chown', 'jetty:gluu', os.path.join(samlInstaller.idp3ConfFolder, 'datasource.properties')])

print("Writing Gluu config properties")
rdbmInstaller.rdbmProperties()
gluuInstaller.renderTemplateInOut(
Expand Down

0 comments on commit 60a36d7

Please sign in to comment.