| 21 Jan 2022 |
kenran_ | Please prefer your paid work over this :D | 15:50:18 |
das_j | you can pass options to Net::LDAP->new(): https://metacpan.org/pod/Catalyst::Authentication::Store::LDAP#ldap_server_options | 15:50:42 |
das_j | (from the yaml) | 15:50:46 |
das_j | one of these options can be debug | 15:50:52 |
@grahamc:nixos.org | nice! a PR with that in the docs would be great | 15:51:02 |
kenran_ | Thanks! | 15:52:49 |
@grahamc:nixos.org | if I could get a review on these doc updates that'd be great: https://github.com/NixOS/hydra/pull/1129
| 16:14:16 |
@grahamc:nixos.org | das_j: do you have an example of passing debug? | 17:24:54 |
@grahamc:nixos.org | ah:
store:
class: LDAP
ldap_server: localhost
ldap_server_options:
timeout: 30
debug: 2
| 17:29:06 |
@grahamc:nixos.org | ma27: we should probably update hydra in nixpkgs and backport it for this LDAP fix | 18:02:00 |
@grahamc:nixos.org | though maybe that is spooky to do on stable, could just backport that patch to stable | 18:02:18 |
das_j | nix --extra-experimental-features nix-command\ flakes build .#hydraJobs.tests.ldap.x86_64-linux | 18:35:03 |
das_j | is this really how it's supposed to work? It feels so cumbersome | 18:35:14 |
das_j | * nix --extra-experimental-features nix-command\ flakes build -L .#hydraJobs.tests.ldap.x86_64-linux | 18:36:37 |
das_j | I think I'm pretty close to actually fully configurable role mappings but I keep tripping over the damn Config::General which doesn't let me use my hashes as I want to use them | 19:35:32 |
@grahamc:nixos.org | oh cool | 20:28:53 |
das_j | It actually works | 20:29:10 |
@grahamc:nixos.org | nice! | 20:29:13 |
das_j | I hate hashrefs so much | 20:29:14 |
@grahamc:nixos.org | I mean lists and list flatenning and all of that is generally awful | 20:29:39 |
das_j | I'm always like %{%whatever and perl is always like "why would you do it this ugly way?" | 20:29:45 |
@grahamc:nixos.org | it is why I write (and ask for) small functions with tests | 20:29:49 |
das_j | In reply to @grahamc:nixos.org it is why I write (and ask for) small functions with tests oh no :D | 20:30:13 |
das_j | I didn't write one :/ | 20:30:20 |
@grahamc:nixos.org | well... I can help ... | 20:30:27 |
das_j | not sure how testable it is… most stuff comes from the framework and the weird plugin | 20:30:44 |
@grahamc:nixos.org | yeah | 20:30:50 |
das_j | there's already a PR if you want to take a look at the implementation… I really don't know how I would hook a test framework in it | 20:31:05 |
ma27 | grahamc (he/him): which LDAP fix? | 21:58:08 |
ma27 | btw anything missing to merge https://github.com/NixOS/hydra/pull/1091 ? :) | 21:58:29 |