Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ldap2rdbm): migration output directory #1057

Open
devrimyatar opened this issue Sep 30, 2024 · 0 comments
Open

fix(ldap2rdbm): migration output directory #1057

devrimyatar opened this issue Sep 30, 2024 · 0 comments
Assignees
Labels
bug issue in existing feature or functionality

Comments

@devrimyatar
Copy link
Collaborator

devrimyatar commented Sep 30, 2024

root@migrate:/install/community-edition-setup# python3 ldap2rdbm.py -rdbm-type="pgsql" -rdbm-user="gluu" -rdbm-password="***" -rdbm-db="gluudb" -rdbm-host="localhost" -rdbm-port="5432"
This is experimental script. Continue anyway? [y/N]y
Please wait while collecting properties...
Dumping data from LDAP Server
Dumping data from LDAP with filter '(objectClass=jansStatEntry)' to /install/community-edition-setup/output/ldap_dump/statistic_data.ldif. This may take a while...
Dumping data from LDAP with filter '(&(objectClass=*)(!(objectClass=jansStatEntry)))' to /install/community-edition-setup/output/ldap_dump/current_data.ldif. This may take a while...
Migrating Statistic Data
Preparing custom schema from attributes
Creating RDBM tables
Traceback (most recent call last):
  File "/install/community-edition-setup/ldap2rdbm.py", line 202, in <module>
    rdbmInstaller.create_tables(schmema_files)
  File "/install/community-edition-setup/setup_app/installers/rdbm.py", line 302, in create_tables
    self.create_table(tbl_name, tables_dict[tbl_name])
  File "/install/community-edition-setup/setup_app/installers/rdbm.py", line 261, in create_table
    self.appendLine(sql_cmd, os.path.join(self.output_dir, 'gluu_tables.sql'), backup=False)
AttributeError: 'RDBMInstaller' object has no attribute 'output_dir'

Use branch https://github.com/GluuFederation/community-edition-setup/tree/ldap-to-pgsql-migration/tools/ldap_to_rdbm

@devrimyatar devrimyatar added the bug issue in existing feature or functionality label Sep 30, 2024
@devrimyatar devrimyatar self-assigned this Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue in existing feature or functionality
Projects
None yet
Development

No branches or pull requests

1 participant