Jörn Friedrich Dreyer
692cf503cc
validate input and return proper ldap result codes
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2020-07-27 11:24:21 +02:00
Jörn Friedrich Dreyer
ec1b45cc38
query numeric attribute values without quotes
...
Some LDAP properties like `uidnumber` and `gidnumber` are numeric. When an OS tries to look up a user it will not only try to lookup the user by username, but also by the `uidnumber`: `(&(objectclass=posixAccount)(uidnumber=20000))`. The accounts backend for glauth was sending that as a string query `uid_number eq '20000'` in the ListAccounts query. This PR changes that to `uid_number eq 20000`. The removed quotes allow the parser in ocis-accounts to identify the numeric literal.
Related:
- https://github.com/owncloud/ocis-accounts/pull/68
- https://github.com/owncloud/ocis-glauth/issues/28
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2020-07-24 21:09:19 +02:00
Jörn Friedrich Dreyer
409f497954
handle ownCloudUUID attribute
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2020-07-24 10:39:05 +02:00
Jörn Friedrich Dreyer
fd5e371ee1
Bugfix: ignore case when comparing objectclass values
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2020-07-23 13:32:15 +02:00
David Christofas
70420fc8fc
implement group queries
...
Signed-off-by: David Christofas <dchristofas@owncloud.com >
2020-07-13 12:09:49 +02:00
David Christofas
d8c538f720
refactor to make the code more readable
...
Signed-off-by: David Christofas <dchristofas@owncloud.com >
2020-07-08 19:14:32 +02:00
Jörn Friedrich Dreyer
9c1fb51906
properly parse filter, update deps
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2020-06-18 16:02:31 +02:00
Jörn Friedrich Dreyer
0d71588498
directly talk to accounts
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2020-06-17 17:25:32 +02:00
Michael Barz
ff3ca75cd8
Merge pull request #12 from owncloud/ocis-single-binary-defaults
...
Change default settings to be able to run ocis server without any con…
2020-03-18 21:36:16 +01:00
Ilja Neumann
cc10b14134
Change default settings to be able to run ocis server without any configuration
...
- Konnectd uses no TLS as it is behind the proxy
- Glauth generates dev-certificates for ldap on startup if none are provided,
- Glauth can launch unencrypted (9125) and encrypted (9126) port in parallel
2020-03-18 20:18:52 +01:00
A.Unger
c8c66c8b31
call ParseConfig on server command
2020-03-18 14:31:30 +01:00
A.Unger
d06f84627c
abstract ParseConfig to its own scope
2020-03-18 14:31:15 +01:00
Jörn Friedrich Dreyer
b7a5b86405
use physicist demo users
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2020-03-17 18:13:04 +01:00
Jörn Friedrich Dreyer
327731160c
default to config backend
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2020-03-16 23:10:28 +01:00
Jörn Friedrich Dreyer
5152815992
fix flagset
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2020-02-28 09:57:42 +01:00
Jörn Friedrich Dreyer
d06a0de75f
add cert and key config options
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2020-02-28 09:57:42 +01:00
Jörn Friedrich Dreyer
e357c3a931
proper server shutdown
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2020-02-28 09:57:42 +01:00
Jörn Friedrich Dreyer
047380eac6
use new options, wrap logger
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2020-02-28 09:57:42 +01:00
Jörn Friedrich Dreyer
460cde921d
actually start glauth server
...
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de >
2020-02-28 09:57:42 +01:00
Thomas Müller
178b6ccde3
Initial commit
2020-02-21 11:59:19 +01:00