{"id":16700502,"url":"https://github.com/glasswalk3r/posix2ldap","last_synced_at":"2025-07-06T23:40:28.801Z","repository":{"id":58273839,"uuid":"530033933","full_name":"glasswalk3r/posix2ldap","owner":"glasswalk3r","description":"Migration of POSIX databases to OpenLDAP","archived":false,"fork":false,"pushed_at":"2024-04-07T22:48:33.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T00:34:21.925Z","etag":null,"topics":["golang","migration","openldap","posix"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/glasswalk3r.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":"2022-08-29T02:04:13.000Z","updated_at":"2024-04-07T22:50:20.000Z","dependencies_parsed_at":"2024-06-21T09:04:25.347Z","dependency_job_id":null,"html_url":"https://github.com/glasswalk3r/posix2ldap","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"df49d8b432989490821e23fd23d60e469715c400"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glasswalk3r%2Fposix2ldap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glasswalk3r%2Fposix2ldap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glasswalk3r%2Fposix2ldap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glasswalk3r%2Fposix2ldap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glasswalk3r","download_url":"https://codeload.github.com/glasswalk3r/posix2ldap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243529127,"owners_count":20305545,"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":["golang","migration","openldap","posix"],"created_at":"2024-10-12T18:10:50.408Z","updated_at":"2025-03-14T05:26:58.774Z","avatar_url":"https://github.com/glasswalk3r.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# posix2ldap\n\n![Unit tests](https://github.com/glasswalk3r/posix2ldap/actions/workflows/unit.yml/badge.svg?branch=main)\n\nMigration of POSIX databases to OpenLDAP.\n\n# Description\n\nThis is a CLI to migrate users and groups from a Linux POSIX database to a\nOpenLDAP server by creating LDIF files.\n\nIt is mostly based on the\n[migrationtools](https://gitlab.com/future-ad-laboratory/migrationtools) code,\nmore specifically the `migrate_common.ph`, `migrate_group.pl` and\n`migrate_passwd.pl`. Although the code from there is pretty archaic (even for\nPerl long tradition of backwards compatibility), the definitions for OpenLDAP\nseems to be pretty solid though.\n\nThis CLI **does not** supports Samba or NIS handling, only the regular files to\nmanage users and groups (`/etc/passwd` and `/etc/group`).\n\nThis CLI **does** supports `/etc/gshadow`, which is not included in the\n[migrationtools](https://gitlab.com/future-ad-laboratory/migrationtools) already\nmentioned files.\n\n## Requirements\n\nThe minimal expected schemas to be available in the OpenLDAP server are:\n\n- cosine\n- nis\n- inetorgperson\n- misc\n\n## Usage\n\nSee the CLI program help:\n\n```\n$ posix2ldap --help\nUsage of ./posix2ldap:\n  -base-dn string\n        Specify the base DN, default to dc=foobar,dc=org (default \"dc=foobar,dc=org\")\n  -dns-domain string\n        Specify the DNS domain to use, default to foobar.org (default \"foobar.org\")\n  -ignore-gid-above int\n        Specify the maximum GID to consider retrieving, default is 2000 (default 2000)\n  -ignore-gid-below int\n        Specify the minimum GID to consider retrieving, default is 1000 (default 1000)\n  -ignore-uid-above int\n        Specify the maximum UID to consider retrieving, default is 2000 (default 2000)\n  -ignore-uid-below int\n        Specify the minimum UID to consider retrieving, default is 1000 (default 1000)\n  -mail-host string\n        Optional, define inetLocalMailRecipient attributes if provided\n  -save-to string\n        Optional, path to a file to save LDIF result if provided\n  -use-extended\n        Uses the LDAP inetOrgPerson class for extended attributes, otherwise Account will be used by default\n```\n\n### Development requirements\n\n- see `go.mod` for minimum Golang version and modules required to compile and run\ntests.\n- GNU Make.\n- [golangci-lint](https://golangci-lint.run/usage/install/) is required to run\nvalidations.\n\nSee the `Makefile` for the available targets.\n\n## Install\n\nSee the project [releases](https://github.com/glasswalk3r/posix2ldap/releases)\nto download the binary.\n\n## References\n\n- [migrationtools project repository](https://gitlab.com/future-ad-laboratory/migrationtools)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglasswalk3r%2Fposix2ldap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglasswalk3r%2Fposix2ldap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglasswalk3r%2Fposix2ldap/lists"}