Fixed authentication; fixed configuration loading
This commit is contained in:
@ -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'
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user