{"id":13819376,"url":"https://github.com/nerney/dappy","last_synced_at":"2025-12-15T18:56:53.267Z","repository":{"id":57486673,"uuid":"139863767","full_name":"nerney/dappy","owner":"nerney","description":"Basic LDAP Authenticator for Go 🔓🔑","archived":false,"fork":false,"pushed_at":"2020-07-31T08:11:29.000Z","size":161,"stargazers_count":59,"open_issues_count":2,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-04T08:02:09.102Z","etag":null,"topics":["active-directory","authentication","go","golang","ldap","ldap-authentication","login"],"latest_commit_sha":null,"homepage":"","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/nerney.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}},"created_at":"2018-07-05T14:50:04.000Z","updated_at":"2024-07-10T10:48:20.000Z","dependencies_parsed_at":"2022-09-01T21:02:18.375Z","dependency_job_id":null,"html_url":"https://github.com/nerney/dappy","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/nerney%2Fdappy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerney%2Fdappy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerney%2Fdappy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nerney%2Fdappy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nerney","download_url":"https://codeload.github.com/nerney/dappy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225405598,"owners_count":17469374,"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":["active-directory","authentication","go","golang","ldap","ldap-authentication","login"],"created_at":"2024-08-04T08:00:46.344Z","updated_at":"2025-12-15T18:56:53.208Z","avatar_url":"https://github.com/nerney.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"\u003cimg src=logo.svg /\u003e\n\n# Basic LDAP client for Go\n\n[![GoDoc](https://img.shields.io/badge/godoc-reference-5272B4.svg?style=flat-square)](https://godoc.org/github.com/nerney/dappy)\n[![Report Card](https://goreportcard.com/badge/github.com/nerney/dappy)](https://goreportcard.com/report/github.com/nerney/dappy)\n\nLDAP is complicated. Many times, all you really need to do is authenticate users with it.\nThis package boils down LDAP functionality to User Authentication, that's it.\n\nThanks to https://github.com/go-ldap/ldap\n\n`go get github.com/nerney/dappy`\n\nExample:\n\n```go\npackage main\n\nimport (\n\t\"log\"\n\n\t\"github.com/nerney/dappy\"\n)\n\nfunc main() {\n\tvar client dappy.Client\n\tvar err error\n\n\t// create a new client\n\tif client, err = dappy.New(dappy.Config{\n\t\tBaseDN: \"dc=example,dc=com\",\n\t\tFilter: \"uid\",\n\t\tROUser: dappy.User{Name: \"cn=read-only-admin,dc=example,dc=com\", Pass: \"password\"},\n\t\tHost:   \"ldap.forumsys.com:389\",\n\t}); err != nil {\n\t\tpanic(err)\n\t}\n\n\t// username and password to authenticate\n\tusername := \"tesla\"\n\tpassword := \"password\"\n\n\t// attempt the authentication\n\tif err := client.Auth(username, password); err != nil {\n\t\tpanic(err)\n\t} else {\n\t\tlog.Println(\"Success!\")\n\t}\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerney%2Fdappy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnerney%2Fdappy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnerney%2Fdappy/lists"}