Projects tigase _server server-core Issues #1504
is possibile to configure update-login-time-query? (#1504)
Unknown opened 1 year ago

Regarding this improvment, is it possible to configure from config.tdsl the SP query setting somewhere the key update-login-time-query ? How can I do it?

I didn't see it in the doc thanks

Unknown commented 1 year ago

Sorry, I can't resolve this issue. below is configuration file with setup(config.tdsl)

'config-type' = 'setup'

'vhost-man' () { 'defaults' () { 'domain-filter-policy' = null 's2s-secret' = null trusted = null 'vhost-disable-dns-check' = false 'vhost-max-users' = 0L 'vhost-message-forward-jid' = null 'vhost-presence-forward-jid' = null 'vhost-register-enabled' = true 'vhost-tls-required' = false } }

http () { setup () { 'admin-user' = 'admin' 'admin-password' = 'tigase' } }

Unknown commented 1 year ago

@davidemarrone You should be able to set it via authRepository:

authRepository () {
    default () {
        'update-login-time-query' = '{ call TigUpdateLoginTime(?) }'
    }
}

See documentation for more details: https://docs.tigase.net/en/latest/Tigase_Administration/Security/_Security.html#tigase-custom-auth-connector


@gradylu please don't hijack issues with unrelated questions - create new one.

Unknown commented 1 year ago

@woj-tek thank you, somewhere I a comment (i do not remember where) I have read to use

authRepository () {
    default () {
        'update-login-time-query' = null
    }
}

but it does not work, I will use

authRepository () {
    default () {
        'update-login-time-query' = 'select 1'
    }
}
issue 1 of 1
Type
Question
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#1504
Please wait...
Page is in error, reload to recover