Closed gedw99 closed 10 months ago
https://github.com/gedw99/ldapsvc/actions/runs/7290045069
I am cross OS testing.
Must be the hard coded paths ...
https://github.com/gsmonni/ldapsvc/blob/main/data/conf/default.json#L8
The config system is super nice. can override file based config with cli and env variables.
I guess I just need to gen mock data that does not have hardcoded paths.
Maybe even have a data-templates folder that we know works as a base for running and tests ?
@gedw99 ill have a look and submit a PR in the next 1-2 days
Must be the hard coded paths ...
https://github.com/gsmonni/ldapsvc/blob/main/data/conf/default.json#L8
yep that looks like it, got to clean up the code.
@gedw99 just tested on my macbook, and it works fine...
gianstefanomonni@gsm-mb-m2air ldapsvc % git status
On branch main
Your branch is up to date with 'origin/main'.
nothing to commit, working tree clean
gianstefanomonni@gsm-mb-m2air ldapsvc % go run ./...
2023/12/21 20:46:27 configuration loaded from data/conf/conf.json
--certificate-use-tls=false
--certificate-use-mtls=false
--certificate-ca-file=data/certs/ca/cacert.pem
--certificate-cert-file=data/certs/clientcert/clientcert.pem
--certificate-key-file=data/certs/clientcert/clientkey.pem
--certificate-ca-path=data/certs/ca/
--local-address=
--port=443
--save-last-config=true
--ldap-bind-string=cn=admin,dc=example,dc=example
--ldap-bind-password=mypass
--ldap-base-dn=
--ldap-server=localhost
--ldap-port=389
--ldap-use-ldaps=false
--ldap-mock=true
--ldap-mock-data-file=data/ldapsvc/ldap-data.json
--ldap-mock-items-num=20 <nil>
Thanks mate !!
just hit this. On on Mac...