{"id":20789069,"url":"https://github.com/timoguin/goldap","last_synced_at":"2026-04-21T12:03:32.863Z","repository":{"id":57571214,"uuid":"285121384","full_name":"timoguin/goldap","owner":"timoguin","description":"An LDAP CLI client written in Golang","archived":false,"fork":false,"pushed_at":"2023-04-10T18:59:13.000Z","size":3844,"stargazers_count":1,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T02:53:40.787Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timoguin.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-04T23:08:14.000Z","updated_at":"2023-01-16T03:30:24.000Z","dependencies_parsed_at":"2024-06-20T14:11:49.814Z","dependency_job_id":"9278e7f2-28b6-42e0-80bb-7ef829957304","html_url":"https://github.com/timoguin/goldap","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/timoguin/goldap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timoguin%2Fgoldap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timoguin%2Fgoldap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timoguin%2Fgoldap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timoguin%2Fgoldap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timoguin","download_url":"https://codeload.github.com/timoguin/goldap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timoguin%2Fgoldap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27763231,"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","status":"online","status_checked_at":"2025-12-16T02:00:10.477Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-17T15:19:26.402Z","updated_at":"2025-12-16T10:54:35.827Z","avatar_url":"https://github.com/timoguin.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# goldap\n\nThis tool is intended to be a clone of the standard LDAP CLI tool suite written in\nGolang. It is fully configurable via CLI flags, environment variables, or config files.\n\nIt currently only supports LDAP search functionality.\n\n## Installing\n\nIf you have a properly-configured Golang development environment, you can quickly build\nand install from source with `go get`:\n\n```\n$ go get github.com/timoguin/goldap\n```\n\nBinaries are currently not published, but they will be published with GitHub releases\nin the future.\n\nIf you clone the repo, you can build and install with `make install`.\n\n## Usage\n\nHelp documentation is built-in to the CLI itself. You can pass `-h` to any command to\nget help output.\n\n```\n$ goldap search -h\n===========================================================================================\n|                                                                                         |\n| Clone of the ldapsearch tool.                                                           |\n|                                                                                         |\n| The short format of the flags are identical between the two. Long names are formatted   |\n| to be more readable, while the familiar names from ldapsearch are supported as aliases. |\n| The filter must be passed via the --filter flag, and attributes must be passed via one  |\n| or more --attribute flags.                                                              |\n|                                                                                         |  \n===========================================================================================\n\nUsage:\n  goldap search [flags]\n\nFlags:\n  -a, --alias-deref string   How to handle alias derefering (never | always | search | find) (default \"never\")\n      --attribute strings    Specify multiple attributes by passing this flag multiple times\n  -D, --bind-dn string       LDAP binddn used for authentication\n  -f, --filter string        The filter string for the query (default \"(objectClass=*)\")\n  -h, --help                 help for search\n  -H, --ldap-uri string      URI of the LDAP host\n  -p, --paging-size int      Number of records to return with pagination (default 100)\n  -w, --password string      LDAP password\n  -s, --scope string         The search scope (base | one | sub) (default \"sub\")\n  -b, --search-base string   The starting point for the search (LDAP searchbase)\n  -z, --size-limit int       Limit the number of records returned\n  -Z, --start-tls            Connect using TLS\n  -l, --time-limit int       Number of seconds to wait for the query to return (default: 60) (default 60)\n  -A, --types-only           Only return attribute names (not values)\n\nGlobal Flags:\n  -c, --config-file string   Path to the config file\n  -d, --debug                Enable debug logs\n```\n\n## Configuration\n\nAll configuration options can be specifed in one or more ways. Here is the order of\nprecendence for determining the final configuration of any one command:\n\n- CLI flags\n- Environment variables prefixed with `GOLDAP_`\n- Config file\n\nAll 3 of these configuration sources are merged together in that order of precendence.\nThis allows setting default configuration options via a file, but using environment\nvariables and flags to customize the specific command.\n\nFor example, you can put the `ldap-uri` and `bind-dn` into a config file to set the\ndefault LDAP endpoint and your LDAP Bind DN (username for simple auth), while setting\nyour password via the `GOLDAP_PASSWORD` environment variable.\n\n### Config File\n\nThe config file location can be customized via the `--config-file` flag. By default,\nthe CLI searches for the config file in the following order of precedence:\n\n- `/etc/goldap/`\n- `$HOME/`\n- `./`\n\nThe config file can be written in multiple formats. The CLI uses the file extension to\ndetermine how to parse the config. Use whichever of the following you are most\ncomfortable with:\n\n| Format          | File Name      | File Extension               |\n|-----------------|----------------|------------------------------|\n| JSON            | .goldap        | json                         |\n| TOML            | .goldap        | toml                         |\n| YAML            | .goldap        | yaml / yml                   |\n| HCL             | .goldap        | hcl                          |\n| INI             | .goldap        | ini                          |\n| envfile         | dotfile or env | None                         |\n| Java properties | .goldap        | .properties / .props / .prop |\n\nIf a config file is found that has no file extension, the CLI attempts to parse it as\nYAML.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoguin%2Fgoldap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimoguin%2Fgoldap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoguin%2Fgoldap/lists"}