Commit Graph

101 Commits (main)
 

Author SHA1 Message Date
Adrien 55ef7530ae cleaned Docker process
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is pending Details
2 months ago
Quentin a2be316d91
use legacy ssha algorithm, new one is incompatible
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
2 months ago
Alex 9cab98d2ce
Set correct package path
continuous-integration/drone/push Build was killed Details
6 months ago
Alex de71260bbf
Make repo a Nix flake
continuous-integration/drone/push Build is pending Details
6 months ago
Quentin 0ef8313a67
Add Nix packaging
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build was killed Details
continuous-integration/drone Build was killed Details
11 months ago
Simon Beck 9ce0d22c99 Fix wrong handling of multi value attributes
continuous-integration/drone/push Build is passing Details
While ldapsearch doesn't seem to mind, apps like keycloak seem to have
issues with adding multiple attributes with different values. While
the resulting ldif in ldapsearch is indistinguishable there seems to
be a slight different on the protocol level.

If adding multiple attributes with the same name and different values,
keycloak will only see the last entry. But adding a single attribute
a slice of values is seems to handle it correctly.
1 year ago
Simon Beck f05e41c9aa Improve password hash handling
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
This adds support for more hash algorithms. Also a stored password will
be updated to SSHA512 upon a successful bind. It will also automatically
hash a cleartext password if the `userpassword` field is modified with
a cleartext one.

Hashes supported:
* SSHA
* SSHA256
* SSHA512
1 year ago
Quentin dbd9003714
Disable reconnect in tests + some cosmetic changes
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details
2 years ago
Quentin a08be6b395
Patch ASN.1 BER encoding of integers and length + unit tests 2 years ago
Quentin 2a844bd559
Encoding errors must be logged 2 years ago
Quentin 2707dd77c5
Use vendored goldap 2 years ago
Quentin 477d7014ed
Vendor goldap 2 years ago
MrArmonius a53641e773 Correct the function GenerateName
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
The problem was the encode in `name += string(alphabet[])`
It takes only 1 byte but the characters like 'è','@' are encoding
on several bytes (1 to 4 bytes).
The better solution was to create a slice of string, like this
we don't have problem about take only one byte instead of 2,3 or 4
bytes.
2 years ago
MrArmonius 9a8c19ec0f Bottin's Test V2.0 with Framework Testing
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is passing Details
V2 the test end-to-end,
Tests made similar to V1.0,

Add the possibility to pararellize the tests,
Create an environnement for easy integration of news test,
2 years ago
MrArmonius da627ac39a Script in ash to launch our test V1.0 (end-to-end) in a Consul's
container
2 years ago
MrArmonius a98556d5c1 Test End-to-end V1.0, testing Bottin's behavior
Tests wrote in golang without framework Testing on the Bottin's behavior

Tests made:
- crated random Users and Group - LDAP ADD
- check the match between Consul's data and Test's data- LDAP
  Search
- modify attributes and check them -
  LDAP Modify
2 years ago
Alex aa912b5ceb Add drone signature
continuous-integration/drone/push Build is passing Details
2 years ago
Alex c32d605a11 Fix logo in readme
continuous-integration/drone/push Build is passing Details
2 years ago
Alex 91bd4c35dd Drone CI badge for branch main
continuous-integration/drone/push Build is passing Details
2 years ago
Alex 2b0c6f09ff Update bottin version in hcl example
continuous-integration/drone/push Build is passing Details
2 years ago
Alex 99d8955ab3 Refactor & add case normalization logic to putAttributes
continuous-integration/drone/push Build is passing Details
2 years ago
Alex 1a20a64eff Refactoring
continuous-integration/drone/push Build is passing Details
2 years ago
Alex dc3fd4df65 Use consul's stale reads by default 2 years ago
Alex b17e3fe3c7 Add bottin CI badge
continuous-integration/drone/push Build is passing Details
2 years ago
Alex af6dd95107 test add drone CI
continuous-integration/drone/push Build is passing Details
2 years ago
Alex e4b5c67be0 Style changes 3 years ago
Alex 4367e4a232 Fix horrible, horrible bug 3 years ago
Alex f43934a7b9 Fix image link in README.md 3 years ago
Alex 15b2b812bf Add use case paragraph in README 3 years ago
Alex f244607a7a Mention Guichet in README 3 years ago
Alex 825aa77089 Hopefully, fix most case-sensitivity issues
- DNs are always used in canonical form: lowercase, no spaces. This is
  how they are internally handled and stored in paths and fields such as
  member and memberof
- Attribute names now can have any combination of lower/uppercase and
  stuff should work
- When modifying an attribute with a name that hase a different
  lower/upper combination than the previously stored value, keep the
  previous attribute name
- Trim spaces from values and do not store empty values
3 years ago
Alex 0c4d55895c Update docker image version 3 years ago
Alex afcad41e85 Use lowercase attributes objectclass and structuralobjectclass 3 years ago
Alex fd6a555216 Ensure objects have an objectclass property 3 years ago
Alex 81328aa321 Update docker image to version 12 3 years ago
Alex 13d8cf028a Add a function to resync member/memberOf values over the database 3 years ago
Alex 49be2069f6 Refactor memberOf management logic 3 years ago
Alex 6f893138a3 Make getAttribute return an empty array instead of nil when key not found 3 years ago
Alex 851573e28f Fix equality test in ldap compare request 3 years ago
Alex c3d30df155 Update Docker image 3 years ago
Alex 8ca2d39971 Optimize some kv.List requests to not list all children 3 years ago
Alex e52a1f74a3 Handle search attribute * 3 years ago
Alex 9e365d4b53 Update nomad hcl file to use template instead of artifact 3 years ago
Alex 938311a48e Make Makefile more generic 3 years ago
Alex 8e819b7d5c Modify initial administrator account to include displayname attribute 3 years ago
Alex 0402f7806a Implement (inefficiently) search scopes 3 years ago
Quentin d02bd17b16 Fix logo path (broken due to repo renaming) 3 years ago
Alex adc5ecdbbc Change some Printf's to Debugf's 3 years ago
Alex f32c272db2 Merge branch 'gomod' of Deuxfleurs/bottin into master 3 years ago
Maximilien Richer a6faceb559
Import upstream lor00x/goldap reposity 3 years ago