Fixed authentication; fixed configuration loading

This commit is contained in:
2023-03-31 12:12:48 -04:00
parent 72bb25a6ad
commit 980728bb07
5 changed files with 11 additions and 7 deletions

View File

@ -1,6 +1,8 @@
ldap:
server_url: 'ldap://ldap.example.com'
port: 389
user_uid_attr: 'uid'
user_ou: 'ou=People,dc=example,dc=com'
server:
address: '127.0.0.1'

View File

@ -1,6 +1,6 @@
# Load application config
require './app/config.rb'
$conf = Config.new(File.join(__dir__, 'config/config.yaml'))
$conf = Config.new(File.join(__dir__, '../config/config.yaml'))
bind_address = "tcp://#{$conf.get('server.address')}:#{$conf.get('server.port')}"
bind bind_address