Commit graph

22 commits

Author SHA1 Message Date
Eric Chiang
b5d2b7eba5 Merge pull request #483 from ericchiang/ldap-groups
Clean up LDAP Connector
2016-06-28 16:06:14 -07:00
Eric Chiang
5a78e89807 clean up LDAP connector
* Remove some unlikely to be used fields to help configurability.
  * Combined "serverHost" and "serverPort" into "host"
  * Remove "timeout" (just default to 30 seconds).
  * Remove "maxIdleConn" will add it back if users feel the need
    to control the number of cached connections.
  * Remove "trustedEmailProvider" (just always trust).
  * Remove "skipCertVerification" you can't make this connector
    ingore TLS errors.
* Fix configs that don't search before bind (previously broken).
* Add more examples to Documentation
* Refactor LDAPPool Acquire() and Put() into a Do() function which
  always does the flow correctly.
* Added more comments and renamed some functions.
* Moved methods on LDAPIdentityProvider to the LDAPConnector
2016-06-28 15:01:39 -07:00
Eric Chiang
f25f882e07 build with go 1.6 and actually push to quay 2016-06-27 16:32:23 -07:00
Eric Chiang
1ffb243e9a *: Update Go versions used for Travis tests and test tip 2016-06-03 10:56:03 -07:00
Christoph Hartmann
fd573a3b8f allow local image building without pushing 2016-05-04 14:17:03 +02:00
Eric Chiang
70cb0546ce *: don't go get vet (#397)
It's part of the standard tooling and no longer lives in
golang.org/x/tools.

See https://golang.org/cl/20810
2016-04-08 08:40:37 -07:00
Eric Chiang
4a830ddcc3 *: move build scripts to use GO15VENDOREXPERIMENT
closes #328
2016-03-09 13:06:23 -08:00
Eric Chiang
bf88fe48a6 functional: don't fail if postgres or ldap isn't availabl 2016-02-25 11:57:26 -08:00
bobbyrullo
f51125f555 Merge pull request #304 from ericchiang/sqlite3
move to sqlite3 for --no-db mode and tests
2016-02-19 16:03:15 -08:00
Eric Chiang
abc91564ba *: add go 1.6 to CI 2016-02-17 16:32:46 -08:00
Eric Chiang
2cc0ae6fac functional: remove in memory connector configs from ldap tests 2016-02-16 15:21:38 -08:00
Eric Chiang
5052d8007f functional: clean up functional tests
Adjust logic and remove panics from functional tests.
2016-02-12 13:19:05 -08:00
Frode Nordahl
4d970d5fc4 connector: add LDAP connector
Authentication is performed by binding to the configured LDAP server using
the user supplied credentials. Successfull bind equals authenticated user.

Optionally the connector can be configured to search before authentication.
The entryDN found will be used to bind to the LDAP server.

This feature must be enabled to get supplementary information from the
directory (ID, Name, Email). This feature can also be used to limit access
to the service.

Example use case: Allow your users to log in with e-mail address instead of
the identification string in your DNs (typically username).

To make re-use of HTTP form handling code from the Local connector possible:
- Implemented IdentityProvider interface
- Moved the re-used functions to login_local.go

Fixes #119
2016-02-11 18:30:16 +01:00
Dalton Hubble
4b9afb84d6 travis: Quote cwd build-docker-push script 2016-01-20 00:41:40 -08:00
Dalton Hubble
cf0c2afa4c travis: Change from after_success script to travis deploy 2016-01-19 11:22:46 -08:00
Eric Chiang
9db1062e46 *: upgrade to go 1.5.3 2016-01-13 15:01:26 -08:00
Eric Chiang
4fa7e27ab5 :* run all functional tests through travis CI 2015-12-28 14:33:16 -08:00
bobbyrullo
0f7fed8d5b Merge pull request #236 from bobbyrullo/push_it_good
.travis.yml: Push to repo after success
2015-12-21 15:44:42 -08:00
Bobby Rullo
a60a4d25bf .travis.yml: Push to repo after success. 2015-12-21 15:40:29 -08:00
Eric Chiang
064b3bae47 *: use coreos postgres image for travis ci
Moved postgres image from personal account to quay.io/coreos.
2015-12-21 15:00:04 -08:00
Eric Chiang
5dd08a8dd4 *: add functional tests to travis config 2015-12-21 14:37:50 -08:00
Jonathan Boulle
da4b5d972b *: add .travis.yml and status badge to README 2015-12-21 14:58:34 +01:00