94 Commits
Author SHA1 Message Date
Ben Yanke 5681dc4d02 Remove byanke's donation fields 2021-02-27 07:51:46 -06:00
Ben Yanke bf5ddba2be Remove byanke's donation fields 2021-02-27 07:50:23 -06:00
Ben Yanke c9b40b87d4 Minor tweak of help text 2019-04-24 21:13:07 -05:00
Ben Yanke 28802ff87d Pulling in latest changes and fixes for 1.1.1 (#56)
* Adding a few test dockerfiles

* Continued work on docker builds

* Basic example of docker build and run works - see build.sh for now

* Continuing to work on docker build

* Removing testing from build script, since it belongs later in process

* Implementing dumb init

* Docker build fully switched to alpine

* Setting up alpine build

* Cleaning up dockerfile

* Cleaning up repo in prep for merge

* Updating permissions for clean merge

* Removing old ansible cruft, as per #12

* Removing binaries (since we now build)

* Updating sample config to use new fields now available

* Testing travis

* another travis test

* Still working on travis builds

* Fix missing amazon packages

* Merge in Travis config feature branch (#26)

* Adding version string

* Fixing and cleaning up docker build

* Adding image hashing and verification to 'make all'

* Testing build

* Running gofmt to fix build

* Testing switching travis to make

* Testing build again

* Merging in Fixes from travis-build feature branch (#33)

This includes an integration test which runs glauth and compares ldapsearch snapshot output stored in the repo compared to the snapshot output of the glauth.

Additionally, removing old versions of go, and adding windows and linuxar builds (but not tests) to the makefile, and consequently, the travis build.

While the mac, linux-arm, and windows binaries are not able to be run in travis, they are able to be at least compiled.

* Remove needless comment from integration test

* Adding 'is-process-running' check before integration tests run, to clearly note if the program crashes on run

* Switching from 1 sec to 2 sec timeout for integration test

* Adding back config file to fix build. Previous commit intended to see if build failed (and it did)

* Add support for including groups in groups (#23)

* Add support for including groups in groups
* Pulling in Makefile structure to allow easier testing and builds

* Forgot to remove spare test

* Add Version Info at Buildtime  (#39)

Adds the build info to the binary at buildtime via buildtime variables. This is shown by `./glauth --version`.

Example output for a non-release:
```
GLauth
Non-release build from branch feature/buildversion

Build time: 20180531_181011Z
Commit: 07ba631c2fd0050f375655ad7c44f862e0e6640c
```

And example of a built release:
```
GLauth v2.3.4

Build time: 20180601_041330Z
Commit: 931d666262b96bab8a5c760be42d7facec7a2d74

```

* Fixing Broken Docker Build (#41)

Forgot to include go-bindata run in Dockerfile.

* Removing leftover TODO from merge

* Testing releases

* Testing releases

* Testing releases

* Adjusting logging

* Add new group tests to integration tests

* add cleanup to test process

* Add documentation about otherGroups, which was a previously undocumented field.

* Auto fetching bindata during build so it's not needed to be done manually

* Syntax fix

* starting framework for unit tests

* Merging in ongoing progress from Feature/travis build (#44)

Fixes a few minor issues:

#42 - now uses the makefile in the docker build, which means version info is correctly embedded at runtime - also now outputs version data at the top of the log when the container starts

Fixing a simple issue found by go vet. Need to do more work on fixing issues found in go vet.

* Forgot to run 'go fmt'

* Adding codecov for go now that a single test is written

* Testing not quite ready yet, removing from build

* Add Support For 2 Factor Authentication

Merging in feature from @ryskov (PR #24) adding 2FA support during LDAP binds. This is accomplished by concatenating the code to the end of the password. 

Also added integration tests for the TOTP method to run in CI. Could not, however, add automated tests for the yubikey, due the physical nature.

* Expose LDAPS ports in Docker container (#49)

Currently, the LDAPS ports are not exposed in the docker container.

* Adding better logging to docker start script

* Add more logging info to docker startup script

* Fix Arm32 Build (#52)

As discussed in issue #51, Arm32 builds were using 368 (intel/amd) arch accidentally, generating linux 32 bit binaries instead of arm 32 bit binaries. This commit fixes this in the Makefile, which will fix both the local builds, as well as the travis CI and release builds.

fixes #52

* Update docker hub image badge to a working one

previous one simply returned 0.

* Removing 3893 - fixes #50

* Fixing readme MD formatting

* Adding travis_retry to fix against intermittent network outages

* Add TLS options for running both with TLS and without on the same time (#27)

* Add TLS options for running both with TLS and without on the same time.

This commit expands on the settings available for using TLS. It puts TLS settings under the [frontend.tls] section and adds a new setting to [frontend] called TLSExclusive (bool).
TLSExclusive specifies whether or not to only run TLS when it is enabled, and is 'true' by default. Setting it to 'false' and having TLS enabled, causes the server to start both a LDAP and LDAPS server,
and therefore requires to seperate 'listen' options (to run on different ports) - the Frontend.Listen and the Frontend.TLS.Listen. If TLSExclusive is set to 'true' and no Frontend.TLS.Listen is specified, it will use the Frontend.Listen.

* Adding PR template and improving integration test tooling

* Updating formatting

* Add get dependencies step to makefile setup

* Add go 1.11

* Add App Password Support (#60)

App passwords can now be used to allow easier OTP use alongside applications which need to bind with a static password. Use the key `passappsha256` and specify an array of password hashes. See the readme and sample configuration file for more information.

Fixes #54

* Adding NCoC as official project code of conduct

We happily accept contributions based on the merit of the contributions.

* Properly handling paramaters in logs - fixes #64

* Adding ldapsearch for healthchecks
2018-12-25 11:25:42 -06:00
Ben Yanke 75fa168e9a Merge branch 'master' into dev 2018-12-25 11:24:55 -06:00
Ben Yanke 7a573aad93 Adding ldapsearch for healthchecks 2018-12-25 11:18:53 -06:00
Ben Yanke 9f349d10c8 Properly handling paramaters in logs - fixes #64 2018-11-15 06:56:00 -06:00
Ben Yanke e546a1a289 Add App Password Support (#60)
App passwords can now be used to allow easier OTP use alongside applications which need to bind with a static password. Use the key `passappsha256` and specify an array of password hashes. See the readme and sample configuration file for more information.

Fixes #54
2018-09-09 22:41:29 -05:00
Ben Yanke c550eb60e9 Add go 1.11 2018-09-09 20:18:32 -05:00
Ben Yanke 2b4aa3b78d Update README.md 2018-08-30 11:51:52 -05:00
Ben Yanke 6fbd8105cd Add get dependencies step to makefile setup 2018-08-23 00:24:10 -05:00
Ben Yanke e606ecbb56 Merge branch 'master' into dev 2018-08-21 22:58:21 -05:00
Ben Yanke 72c8e84a0d Adding travis_retry to fix against intermittent network outages 2018-08-09 23:18:41 -05:00
Ben Yanke c162ed8366 Fixing readme MD formatting 2018-08-04 22:56:30 -05:00
Ben Yanke 986a9187ee Removing 3893 - fixes #50 2018-08-04 22:14:05 -05:00
Ben Yanke a835e569cd Update docker hub image badge to a working one
previous one simply returned 0.
2018-07-31 16:03:21 -05:00
Ben Yanke d410b01955 Switching docker hub size badge to a working one 2018-07-31 16:02:52 -05:00
Ben Yanke 6516741b3c Add more logging info to docker startup script 2018-07-21 20:17:40 -05:00
Ben Yanke 5c1a39bd47 Adding better logging to docker start script 2018-07-21 16:18:13 -05:00
Ben Yanke 3a513c4ee6 Removing bindata - should have been previously gitignored 2018-07-20 23:38:14 -05:00
Ben Yanke 6a3f96c04d Pulling from Dev for v1.1 (#48)
Includes a number of fixes and improvements:

 - Add 2 factor auth (thanks @ryskov)
 - Dockerfile imporvements
 - Removing repo cruft
 - Improving travis builds and integration tests
 - Fixing broken amazon s3 packages (thanks @ryskov)
 - Vastly improved version string - now autogenerates based on git status in the repo at the time of build
 - Starting on travis builds for releases (currently built on my workstation)
 - Starting framework for unit tests
 - Add codecov to CI
2018-07-20 23:31:55 -05:00
Ben Yanke 2020579614 Merging branches 2018-07-20 23:24:59 -05:00
Ben Yanke 6cd27aa790 Testing not quite ready yet, removing from build 2018-06-15 23:43:40 -05:00
Ben Yanke 9495943701 Adding codecov for go now that a single test is written 2018-06-15 23:38:42 -05:00
Ben Yanke 8de56c87a9 Forgot to run 'go fmt' 2018-06-15 23:35:18 -05:00
Ben Yanke 208fb1e33d Merge branch 'dev' of github.com:glauth/glauth into dev 2018-06-15 23:29:49 -05:00
Ben Yanke 32a13ec85a Merging in ongoing progress from Feature/travis build (#44)
Fixes a few minor issues:

#42 - now uses the makefile in the docker build, which means version info is correctly embedded at runtime - also now outputs version data at the top of the log when the container starts

Fixing a simple issue found by go vet. Need to do more work on fixing issues found in go vet.
2018-06-15 23:29:45 -05:00
Ben Yanke a75743ef7d starting framework for unit tests 2018-06-15 23:29:15 -05:00
Ben Yanke fef26916e9 Adding donate info 2018-06-15 22:15:52 -05:00
Ben Yanke 8e48638f05 Adding donate info 2018-06-15 22:14:59 -05:00
Ben Yanke a9837f3112 Add documentation about otherGroups, which was a previously undocumented field. 2018-06-06 12:49:56 -05:00
Ben Yanke 2d7a2ab8ce add cleanup to test process 2018-06-05 21:10:30 -05:00
Ben Yanke bc94f47c9e Add new group tests to integration tests 2018-06-05 20:21:42 -05:00
Ben Yanke 39b50ec92a Adjusting logging 2018-06-05 12:22:49 -05:00
Ben Yanke 50a78e3c56 Testing releases 2018-06-01 22:02:47 -05:00
Ben Yanke 5e2114e04b Testing releases 2018-06-01 21:55:56 -05:00
Ben Yanke 706c144f82 Testing releases 2018-06-01 21:47:01 -05:00
Ben Yanke 5519634a3e Removing leftover TODO from merge 2018-06-01 12:49:49 -05:00
Ben Yanke b32db95f4f Fixing Broken Docker Build (#41)
Forgot to include go-bindata run in Dockerfile.
2018-05-31 23:32:24 -05:00
Ben Yanke 0b1c979247 Add Version Info at Buildtime (#39)
Adds the build info to the binary at buildtime via buildtime variables. This is shown by `./glauth --version`.

Example output for a non-release:
```
GLauth
Non-release build from branch feature/buildversion

Build time: 20180531_181011Z
Commit: 07ba631c2fd0050f375655ad7c44f862e0e6640c
```

And example of a built release:
```
GLauth v2.3.4

Build time: 20180601_041330Z
Commit: 931d666262b96bab8a5c760be42d7facec7a2d74

```
2018-05-31 23:18:12 -05:00
Ben Yanke b04ff2dd67 Forgot to remove spare test 2018-05-24 12:52:57 -05:00
Ben Yanke 1155d214ed Adding back config file to fix build. Previous commit intended to see if build failed (and it did) 2018-05-14 12:49:48 -05:00
Ben Yanke 9ae4613a7f Switching from 1 sec to 2 sec timeout for integration test 2018-05-14 12:44:14 -05:00
Ben Yanke 8d808c80a0 Adding 'is-process-running' check before integration tests run, to clearly note if the program crashes on run 2018-05-13 22:05:05 -05:00
Ben Yanke 5728484e61 Remove needless comment from integration test 2018-05-12 21:01:48 -05:00
Ben Yanke 6df835dd68 Merging in Fixes from travis-build feature branch (#33)
This includes an integration test which runs glauth and compares ldapsearch snapshot output stored in the repo compared to the snapshot output of the glauth.

Additionally, removing old versions of go, and adding windows and linuxar builds (but not tests) to the makefile, and consequently, the travis build.

While the mac, linux-arm, and windows binaries are not able to be run in travis, they are able to be at least compiled.
2018-05-12 20:55:32 -05:00
Ben Yanke 80883e4a57 Testing build again 2018-05-12 19:37:46 -05:00
Ben Yanke 02970c82ff Testing switching travis to make 2018-05-12 19:32:59 -05:00
Ben Yanke 7124c108a7 Running gofmt to fix build 2018-05-12 19:29:37 -05:00
Ben Yanke 136d7d7833 Testing build 2018-05-12 19:25:54 -05:00
Ben Yanke f0cf6488e4 Adding image hashing and verification to 'make all' 2018-05-11 22:58:18 -05:00
Ben Yanke 1876eb9ff7 Adding nano swap files to gitignore 2018-05-11 12:40:51 -05:00
Ben Yanke a3797bbe08 Merging in minor fixes for v1.0.1 (#29)
Merging in:

 * fixes to amazon s3 packages
 * dockerfiles (build was previously not yet working)
 * adding version number to bin so `glauth --version` reports correctly
 * Some Travis CI tweaks
2018-05-11 12:35:39 -05:00
Ben Yanke dc90cd6819 Fixing and cleaning up docker build 2018-05-10 22:28:03 -05:00
Ben Yanke c2aca63246 Adding version string 2018-05-10 22:17:26 -05:00
Ben Yanke 60ac4368c6 Merge in Travis config feature branch (#26) 2018-05-03 23:45:33 -05:00
Ben Yanke 64fbf20dcd Merge pull request #22 from pasientskyhosting/amazon_fix_dev
Fix missing amazon packages
2018-05-03 22:48:48 -05:00
Ben Yanke 18d128dd0c Update README.md 2018-04-28 23:23:38 -05:00
Ben Yanke f317b73009 Update README.md 2018-04-28 23:23:13 -05:00
Ben Yanke efe89aff4b Update README.md 2018-04-28 23:22:47 -05:00
Ben Yanke c232ee0476 Adding travis builds to dev
Adding travis builds
2018-04-28 23:18:55 -05:00
Ben Yanke 4f82bf2baf Still working on travis builds 2018-04-28 23:12:59 -05:00
Ben Yanke 17bce790a9 Update README.md 2018-04-28 22:25:39 -05:00
Ben Yanke 5aa56138ce Adding more readme badges 2018-04-28 21:39:36 -05:00
Ben Yanke 8b00a524fb Adding readme badges 2018-04-28 17:08:51 -05:00
Ben Yanke 41ec0fdb10 Adding readme badges 2018-04-28 16:55:12 -05:00
Ben Yanke 7608bc0133 another travis test 2018-04-28 16:22:50 -05:00
Ben Yanke 2ae84a9034 Testing travis 2018-04-28 16:05:30 -05:00
Ben Yanke ac85255d86 Updating sample config to use new fields now available 2018-04-25 13:05:27 -05:00
Ben Yanke 2a16b13a01 Removing binaries (since we now build) 2018-04-25 13:05:07 -05:00
Ben Yanke 5b84deb1c1 Removing old ansible cruft, as per #12 2018-04-25 12:30:55 -05:00
Ben Yanke d1d51d5c7c updating for v1.0.0 release 2018-04-24 20:07:08 -05:00
Ben Yanke c5cc0f5572 Merge pull request #19 from nmcclain/feature/dockerfile
Merging in Docker Build Tools
2018-04-22 22:59:22 -05:00
Ben Yanke dd71d9ac4e Updating permissions for clean merge 2018-04-22 22:57:39 -05:00
Ben Yanke 5f5c12e78d Cleaning up repo in prep for merge 2018-04-22 22:56:57 -05:00
Ben Yanke d5a1b6f216 Cleaning up dockerfile 2018-04-22 22:51:51 -05:00
Ben Yanke 82bff3fc36 Setting up alpine build 2018-04-22 22:49:14 -05:00
Ben Yanke fd9aaa243d Docker build fully switched to alpine 2018-04-22 22:41:08 -05:00
Ben Yanke e2c9210beb Implementing dumb init 2018-04-22 11:11:24 -05:00
Ben Yanke e03e9216fa Removing testing from build script, since it belongs later in process 2018-04-22 10:34:32 -05:00
Ben Yanke 70ff3600ec Continuing to work on docker build 2018-04-22 10:33:31 -05:00
Ben Yanke 68edcdc228 Basic example of docker build and run works - see build.sh for now 2018-04-21 22:33:36 -05:00
Ben Yanke f076f868dc Continued work on docker builds 2018-04-21 22:33:36 -05:00
Ben Yanke 975d1d3b13 Updating docs to be accurate 2018-04-19 16:06:38 -05:00
Ben Yanke d7aad4a8c7 Update README.md 2018-04-19 12:33:39 -05:00
Ben Yanke 915a64fb52 Update README.md 2018-04-19 12:32:20 -05:00
Ben Yanke 6a737a2190 Update README.md 2018-04-19 12:31:44 -05:00
Ben Yanke 808e115f30 Merge pull request #16 from nmcclain/add-license-1
Create LICENSE
2018-04-19 10:52:36 -05:00
Ben Yanke f039bbb964 Adding a few test dockerfiles 2018-04-18 21:41:19 -05:00
Ben Yanke e8a354cd37 Merge pull request #8 from benyanke/master
Added optional fields with sane defaults
2018-04-18 20:13:01 -05:00
Ben Yanke 0281f92959 Update readme to match new config options available 2018-04-18 20:12:33 -05:00
Ben Yanke befbb51c25 Merge pull request #9 from benyanke/patch-1
Fixing broken link
2018-04-18 19:47:17 -05:00
Ben Yanke a3512a6ecb Fixing broken link 2018-04-11 11:12:43 -05:00
Ben Yanke 0a105a83b4 Adding account disabling feature 2018-04-11 10:08:35 -05:00