{"id":18524364,"url":"https://github.com/omniauth/omniauth-ldap","last_synced_at":"2025-08-06T16:34:01.154Z","repository":{"id":44788109,"uuid":"2609367","full_name":"omniauth/omniauth-ldap","owner":"omniauth","description":"LDAP strategy for OmniAuth","archived":false,"fork":false,"pushed_at":"2024-01-28T14:26:36.000Z","size":115,"stargazers_count":147,"open_issues_count":39,"forks_count":157,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-07-31T14:31:57.950Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omniauth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2011-10-19T21:52:26.000Z","updated_at":"2025-05-03T21:05:43.000Z","dependencies_parsed_at":"2024-06-18T13:58:53.440Z","dependency_job_id":"a2cff72f-b585-44cf-af16-d6572786abb3","html_url":"https://github.com/omniauth/omniauth-ldap","commit_stats":null,"previous_names":["intridea/omniauth-ldap"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/omniauth/omniauth-ldap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omniauth%2Fomniauth-ldap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omniauth%2Fomniauth-ldap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omniauth%2Fomniauth-ldap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omniauth%2Fomniauth-ldap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omniauth","download_url":"https://codeload.github.com/omniauth/omniauth-ldap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omniauth%2Fomniauth-ldap/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269112912,"owners_count":24362059,"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-08-06T02:00:09.910Z","response_time":99,"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-06T17:41:06.112Z","updated_at":"2025-08-06T16:34:01.110Z","avatar_url":"https://github.com/omniauth.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OmniAuth LDAP\n\n== LDAP\n\nUse the LDAP strategy as a middleware in your application:\n\n    use OmniAuth::Strategies::LDAP, \n        :title =\u003e \"My LDAP\", \n        :host =\u003e '10.101.10.1',\n        :port =\u003e 389,\n        :method =\u003e :plain,\n        :base =\u003e 'dc=intridea, dc=com',\n        :uid =\u003e 'sAMAccountName',\n        :name_proc =\u003e Proc.new {|name| name.gsub(/@.*$/,'')},\n        :bind_dn =\u003e 'default_bind_dn',\n        # Or, alternatively:\n        #:filter =\u003e '(\u0026(uid=%{username})(memberOf=cn=myapp-users,ou=groups,dc=example,dc=com))'\n        :name_proc =\u003e Proc.new {|name| name.gsub(/@.*$/,'')}\n        :bind_dn =\u003e 'default_bind_dn'\n        :password =\u003e 'password'\n\nAll of the listed options are required, with the exception of :title, :name_proc, :bind_dn, and :password.\nAllowed values of :method are: :plain, :ssl, :tls.\n\n:bind_dn and :password is the default credentials to perform user lookup.\n  most LDAP servers require that you supply a complete DN as a binding-credential, along with an authenticator\n  such as a password. But for many applications, you often don’t have a full DN to identify the user. \n  You usually get a simple identifier like a username or an email address, along with a password. \n  Since many LDAP servers don't allow anonymous access, search function will require a bound connection, \n  :bind_dn and :password will be required for searching on the username or email to retrieve the DN attribute \n  for the user. If the LDAP server allows anonymous access, you don't need to provide these two parameters.\n\n:uid is the LDAP attribute name for the user name in the login form. \n  typically AD would be 'sAMAccountName' or 'UserPrincipalName', while OpenLDAP is 'uid'.\n\n:filter is the LDAP filter used to search the user entry. It can be used in place of :uid for more flexibility.\n  `%{username}` will be replaced by the user name processed by :name_proc.\n\n:name_proc allows you to match the user name entered with the format of the :uid attributes. \n  For example, value of 'sAMAccountName' in AD contains only the windows user name. If your user prefers using \n  email to login, a name_proc as above will trim the email string down to just the windows login name. \n  In summary, use :name_proc to fill the gap between the submitted username and LDAP uid attribute value.\n \n:try_sasl and :sasl_mechanisms are optional. :try_sasl [true | false], :sasl_mechanisms ['DIGEST-MD5' | 'GSS-SPNEGO']\n  Use them to initialize a SASL connection to server. If you are not familiar with these authentication methods, \n  please just avoid them.\n\nDirect users to '/auth/ldap' to have them authenticated via your company's LDAP server.\n\n\n## License\n\nCopyright (C) 2011 by Ping Yu and Intridea, Inc.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomniauth%2Fomniauth-ldap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomniauth%2Fomniauth-ldap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomniauth%2Fomniauth-ldap/lists"}