{"id":21615268,"url":"https://github.com/eea/bdr.dataobfuscation","last_synced_at":"2025-03-18T16:52:01.107Z","repository":{"id":137838302,"uuid":"100931889","full_name":"eea/bdr.dataobfuscation","owner":"eea","description":"BDR Data Obfuscation Scripts","archived":false,"fork":false,"pushed_at":"2017-10-11T10:59:34.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":43,"default_branch":"master","last_synced_at":"2025-01-24T20:43:31.833Z","etag":null,"topics":["bdr","obfuscation-script"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-08-21T08:44:14.000Z","updated_at":"2017-10-06T05:08:01.000Z","dependencies_parsed_at":"2023-04-17T05:35:08.427Z","dependency_job_id":null,"html_url":"https://github.com/eea/bdr.dataobfuscation","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eea%2Fbdr.dataobfuscation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eea%2Fbdr.dataobfuscation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eea%2Fbdr.dataobfuscation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eea%2Fbdr.dataobfuscation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eea","download_url":"https://codeload.github.com/eea/bdr.dataobfuscation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244266091,"owners_count":20425825,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bdr","obfuscation-script"],"created_at":"2024-11-24T22:11:03.412Z","updated_at":"2025-03-18T16:52:01.079Z","avatar_url":"https://github.com/eea.png","language":"Python","readme":"# BDR Data Obfuscation Script\n\nThis repository contains two scripts which obfuscate data from bdr registry database and generate a ldif file for LDAP account changes.\n\nThe repository contains a script which obfuscates persons and companies data from BDR-registry database.\n\n\n### Prerequisites\n\n1. Clone this project:\n\n        $ git clone https://github.com/eea/bdr.registry.dataobfuscation.git\n        $ cd bdr.registry.dataobfuscation\n\n2. Set the target BDR-registry database name, the MySQL root password and a default password for all company accounts:\n\n        $ cp mysql.env.example mysql.env\n        $ vi mysql.env\n        $ source mysql.env\n\n\n### BDR-registry instructions\n\nThe obfuscation script expects to find the source database file in the same folder under the name _dump.sql_. The target database should exists in a local MySQL server.\n\n**WARNING: The existing target database will be overwritten!**\n\n    $ ./bdr.registry.sh\n\n\n### Ldap instructions\n\nAfter the BDR-registry data obfuscation, ldap database must be updated with the new accounts. This script will generate a ldif file named _bdr.ldif_, in the current directory, ready for import.\n\nCalling the script without any arguments will generate a full dummy data ldif, for the eionet branch and the Business Reporters branch. In order to properly populate the eionet branch with users, it expects the eionet.users file to be filled with `user:password` entries, one entry for each line.\n\nThere are 3 named arguments required by the script:\n\n    --type=full|eionet|bdr\n    --rootuid=\u003cuid_of_the_root_user\u003e\n    --rootpw=\u003cpassword_for_the_root_user\u003e\nThe type indicates which branch to be populated, _full_ means that both eionet and the business reporter branches are going to be populated, while _bdr_ will only generate the initial structure of the eionet branch with the additional root user defined. _eionet_ will only generate the eionet branch.\n_rootuid_ and _rootpw_ are used to generate an entry to be used as the root dn.\nA typical call would then look like:\n\n    $ ./ldap.sh --type=full --rootuid=foo --rootpw=bar\n\nThe template for the ldif is defined in the ldap_template.txt template file.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feea%2Fbdr.dataobfuscation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feea%2Fbdr.dataobfuscation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feea%2Fbdr.dataobfuscation/lists"}