Commit Graph
21 Commits
Author SHA1 Message Date
timmy a0adcc062b Fix test cases provided by @navibodybuilder in #7 2026-08-25 14:21:16 -07:00
timmy a8aa3dece1 Fix substring match 2026-08-25 14:21:16 -07:00
timmy bb17f0bc21 Publish GetFilterAttribute and return unmodified string from filter 2026-08-24 18:04:45 -07:00
timmy 93ce6da943 Stricter error handling 2026-08-24 18:04:45 -07:00
timmy a03b89f9be Rename package to ldaps 2026-08-24 16:30:01 -07:00
timmy a4b5f16b98 Minimal set of changes to remove client and use upstream ldap package
Switches to github.com/go-ldap/ldap/v3 for ldap management as it generally
 has better practices and security
2026-08-24 16:29:16 -07:00
b9bf4d1baf Start tls by @shipperizer (#1)
* switch nmcclain/asn1-ber to go-asn1-ber/and1-ber.
This newer package has ben updated with tests, and looks to actually be supported.
It is also is a forked version of nmcclain/asn1-ber, so supports the same API.

* no need to print errors if client disconnects early and unexpectedly

* added in Close method on server to avoid a race condition

* test ssl certs are untrusted, ldapsearch needs to be told to allow untrusted certs

* Extra time.Wait causes the test to fail

* removed singaling with a custom quit chanel

* feat: support StartTLS in server

* lint: fmt and imports

* feat: rename library to be used by glauth

* chore: renamed packages

---------

Co-authored-by: Daniel Barney <daniel@thoughtplot.io>
Co-authored-by: Mark Rushakoff <mark@influxdata.com>
Co-authored-by: shipperizer <alexcabb@gmail.com>
2023-12-10 14:58:23 -08:00
Apehaenger 6ebc2104fc Fixed handling of UTF8 chars in filter value (#9)
Thank you @Apehaenger
2021-07-20 10:27:06 -06:00
ned c43d537d5b Implemented other LDAP server operations (add/delete/modify/extended/etc.) and tests. 2014-11-23 12:03:05 -07:00
ned f4e67fa4cd LDAP server support 2014-11-12 14:52:16 -07:00
Vincent Vanackere 0e043b3393 cleanup : unexport FilterMap & remove FilterSubstringsMap (unneeded) 2014-08-01 22:14:03 +02:00
Vincent Vanackere acf536b08d filter_test : rewrite encode/decode tests to be table-driven
Only 1 test for now but other tests should be written, especially to check the various possible encoding issues...
2014-08-01 22:04:17 +02:00
Gregory Haik 81cd5e4d4d filter: bugfix for FilterPresent 2014-08-01 18:16:52 +02:00
Vincent Vanackere 192ce467a8 Switch asn1-ber dependency to "github.com/vanackere/asn1-ber" 2014-07-24 13:07:31 +02:00
John Weldon 6b7bf8da55 SpruceHealth disappeared :-( 2014-04-15 18:02:01 -07:00
Samuel Stauffer 2eea0c0a70 Use error instead of *Error 2014-03-19 14:22:55 -07:00
Samuel Stauffer 4e3f3713c8 Some more cleanup 2014-03-19 14:05:10 -07:00
Samuel Stauffer 222854694e Stylistic fixes, update imports, and some format string fixes 2014-03-19 13:57:59 -07:00
Marc Sauter e2ff8b4459 rename 2014-03-19 13:57:59 -07:00
tmfkams e45f834579 refactoring, fixes for go1.2, modify added 2014-03-19 13:57:58 -07:00
Michael Mitton 1094e1befc first commit 2011-02-18 01:36:55 -05:00