Alex
dc3fd4df65
Use consul's stale reads by default
1 year ago
Alex
e4b5c67be0
Style changes
2 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
afcad41e85
Use lowercase attributes objectclass and structuralobjectclass
3 years ago
Alex
fd6a555216
Ensure objects have an objectclass property
3 years ago
Alex
13d8cf028a
Add a function to resync member/memberOf values over the database
3 years ago
Alex
6f893138a3
Make getAttribute return an empty array instead of nil when key not found
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
8e819b7d5c
Modify initial administrator account to include displayname attribute
3 years ago
Maximilien Richer
a6faceb559
Import upstream lor00x/goldap reposity
3 years ago
Maximilien Richer
3644fdfe61
Rename go module to bottin
3 years ago
Alex
0c801e02d5
Remove spaces between dn components, use warnings when necessary
3 years ago
Alex
e9e7a4cb4b
Update README with accurate info on how to build Bottin
3 years ago
Maximilien Richer
0274ab0038
Implements go modules
Following errors compiling with go 1.13
See https://blog.golang.org/migrating-to-go-modules for details.
3 years ago
Alex
da2c37bb95
Better logging
3 years ago
Alex
c3bfcdf9a1
Fix password comparison
3 years ago
Alex
2f9ad411c7
Fix missing newline after TLS warning
3 years ago
Alex
7962e7b262
Rebrand to Bottin (with Superboum's benediction)
3 years ago
Alex
e1f5c31402
More logs
3 years ago
Alex
3edaad9317
Use better randomness
3 years ago
Alex
e7ded9d6b5
Fix slice bounds
3 years ago
Alex
dce432426e
Allow for both TLS and non-TLS connections
3 years ago
Alex
66c6479770
Implement TLS mechanisms correctly, I hope
3 years ago
Alex
8a605f44b0
Don't do stupid things like use a dn as a pattern
Also add metadata fields in objects created on initialization
3 years ago
Alex
f8c726dcda
Fix missing procedure for delete membership & "better" failure handling
After an object has been updated, membership information must be
propagated to other object. Such operations may fail when calling consul
but if they do we don't return fail immediatly returning an error code
any more. Instead we just print all the errors to our logs and try to
process the remaining updates.
3 years ago
Alex
b27eb45239
Split off read and write functions in separate files
3 years ago
Alex
97f5effe55
More serious schema enforcement
3 years ago
Alex
8e4537d2ef
Fixes
3 years ago
Alex
94eafa2a9b
Less logs but better logs
3 years ago
Alex
c1f0247586
Externalize config
3 years ago
Alex
611d182907
Add anyread to admins in example acl because don't be ridiculous
3 years ago
Alex
82402749e6
First ACL implementation
3 years ago
Alex
2ad9bce75c
Apply gofmt & minor refactoring
3 years ago
Alex
a7ccdad378
Fix handling of empty set of values as absence of the key
3 years ago
Alex
3b793c90a0
Add TODO list
3 years ago
Alex
c7534dd06b
Forbid "/" in DN
3 years ago
Alex
7e4079b3d8
Implement Modify
3 years ago
Alex
f9cb0552be
Handle LDAP Compare and Delete requests
3 years ago
Alex
3decb94271
Basic code cleanup
3 years ago
Alex
19854a1ef4
Use correct return code for unimplemented filters
3 years ago
Alex
5ae18daff7
Better DN suffix validation
3 years ago
Alex
b238a6eb0e
Implement add with group membership
3 years ago
Alex
2bfb6b4ced
Use only []string for values, implement add
3 years ago
Alex
131297a33f
Case insensitive match on attribute names
3 years ago
Alex
4c5b3d929d
Implement Search with basic filter support
3 years ago
Alex
67fa504e20
Add ldapserver source in here & add support for client state
3 years ago
Alex
bade33cf15
Begin Go reimplementation of Bottin
3 years ago