Thanks!
I'm trying to follow the instructions but it does not work and I don't even see anything about it in the logs. I do get some warnings when I use my old syntax but nothing with the new.
On our current xnat 1.6.5,
where ldap1 login works, this is how the service.properties look (db and ldap in bold):
xnat@xnatdev:~$ cat /home/xnat/Development/xnat_builder_1_6dev/projects/xnat/src/conf/services.properties
#
# D:/Development/XNAT/1.6/xnat_builder_1_6dev/plugin-resources/conf/services.properties
# XNAT
http://www.xnat.org# Copyright (c) 2014, Washington University School of Medicine
# All Rights Reserved
#
# Released under the Simplified BSD.
#
# Last modified 2/7/14 12:19 PM
#
site.title=XNAT
datasource.name=@XDAT_DB_NAME@
datasource.driver=@XDAT_DB_DRIVER@
datasource.url=@XDAT_DB_URL@
datasource.username=@XDAT_DB_USERNAME@
datasource.password=@XDAT_DB_PASSWORD@
mailserver.host=@XDAT_MAIL_SERVER@
mailserver.port=@XDAT_MAIL_PORT@
mailserver.username=@XDAT_MAIL_USERNAME@
mailserver.password=@XDAT_MAIL_PASSWORD@
mailserver.protocol=@XDAT_MAIL_PROTOCOL@
mailserver.admin=@XDAT_MAIL_ADMIN@
mailserver.prefix=@XDAT_MAIL_PREFIX@
# Session XML rebuilder settings. interval is in minutes, repeat is in milliseconds.
services.rebuilder.interval=5
services.rebuilder.repeat=60000
# Settings for the DICOM SCP Receiver. You can change the AE title and port here, as well as change the user that is
# used for operations on received files, e.g. archiving sessions in projects with auto-archiving.
services.dicom.scp.aetitle=XNAT
services.dicom.scp.port=8104
services.dicom.scp.receivedfileuser=admin
# Indicate the required security channel for the server. This can be http, https, or any.
security.channel=@XDAT_SECURITY_CHANNEL@
# Number of failed login attempts before accounts are temporarily locked (-1 disables feature).
security.max_failed_logins=-1
# Number of milliseconds to lock user accounts that have exceeded the max_failed_logins count (3600000 for 1 hour, 86400000 for 24 hours).
security.max_failed_logins_lockout_duration=86400000
# Number of seconds of inactivity before an account is disabled (31556926 for 1 year).
security.inactivity_before_lockout=31556926
# Interval for timing out alias tokens. Uses PostgreSQL interval notation:
http://www.postgresql.org/docs/9.0/static/functions-datetime.htmlsecurity.token_timeout=2 days
# Java regular expression that new passwords must match. For no complexity checks, set this to ^.*$
security.password_complexity=^.*$
# Message that explains the password complexity requirements. This is displayed when user chooses a new password that fails to meet them.
security.password_complexity_message=Password is not sufficiently complex.
# Number of days for which a password cannot be reused.
security.password_history=365
# The maximum number of permitted sessions a user can have open simultaneously.
security.sessions.concurrent_max=1000
# The following parameters are used to allow/force users to enter change justifications when modifying data.
audit.require_change_justification=false
audit.show_change_justification=false
# Sets default values for the ActiveMQ configuration.
amq.usage.temp=128mb
amq.usage.mem=512mb
amq.usage.store=1gb
# Comma-separated list of the providers that users will be able to use to authenticate.
provider.providers.enabled=ldap1,db
#local db
provider.db.name=Xnat Login
provider.db.id=localdb
provider.db.type=dbprovider.ldap1.name=MyDomain Login
provider.ldap1.id=ldap1
provider.ldap1.type=ldap
provider.ldap1.address=ldap://my.domain:389/DC=my,DC=doman
provider.ldap1.userdn=srv-xnat
provider.ldap1.password=MyPassword
provider.ldap1.search.base=OU=my
provider.ldap1.search.filter=(sAMAccountName={0})
This does not succeed and the logs look like this: cat /data/xnat/home/logs/*
xnat@Vader:/data/xnat/home/config/auth$ cat ../../logs/*
0 [localhost-startStop-1] ERROR org.apache.axis.configuration.EngineConfigurationFactoryServlet - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
125 [localhost-startStop-1] ERROR org.apache.axis.configuration.EngineConfigurationFactoryServlet - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
2018-02-09 14:37:04,997 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.CreateOrUpdateDatabaseViews - This service is the primary XNAT node, checking whether database updates are required.
2018-02-09 14:37:05,025 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.CreateOrUpdateDatabaseViews - Initializing database views...
2018-02-09 14:37:08,181 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.CreateOrUpdateDatabaseViews - View initialization complete.
2018-02-09 14:37:08,270 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.UpdateConfigurationService - No suspect configuration entries found.
xnat@Vader:/data/xnat/home/config/auth$
I tried to follow the syntax of the link you sent me and nothing really happens:
name=MyDomain-Login
id=ldap1
type=ldap
adress=ldap://my.domain:389/dc=my,dc=domain
userdn=cn=srv-xnat
password=MyPassword
search.base=ou=my
search.filter=(sAMAccountName={0})
When trying the syntax just above (from the link) I get no info in the logfiles.
cat logs/*
xnat@Vader:/data/xnat/home/config/auth$ cat ../../logs/*
0 [localhost-startStop-1] ERROR org.apache.axis.configuration.EngineConfigurationFactoryServlet - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
125 [localhost-startStop-1] ERROR org.apache.axis.configuration.EngineConfigurationFactoryServlet - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
2018-02-09 14:37:04,997 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.CreateOrUpdateDatabaseViews - This service is the primary XNAT node, checking whether database updates are required.
2018-02-09 14:37:05,025 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.CreateOrUpdateDatabaseViews - Initializing database views...
2018-02-09 14:37:08,181 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.CreateOrUpdateDatabaseViews - View initialization complete.
2018-02-09 14:37:08,270 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.UpdateConfigurationService - No suspect configuration entries found.
xnat@Vader:/data/xnat/home/config/auth$
With this specific syntax (your link but a little altered I get some other errors in the logs):
service.properties:
name=MyDomain-Login
id=ldap1
type=ldap
adress=ldap://my.domain:389/dc=my,dc=domain
userdn=srv-xnat
password=MyPassword
search.base=ou=my
search.filter=(sAMAccountName={0})
Errorlog:
xnat@Vader:/data/xnat/home/config/auth$ cat ../../logs/*
0 [localhost-startStop-1] ERROR org.apache.axis.configuration.EngineConfigurationFactoryServlet - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
130 [localhost-startStop-1] ERROR org.apache.axis.configuration.EngineConfigurationFactoryServlet - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
0 [localhost-startStop-1] ERROR org.apache.axis.configuration.EngineConfigurationFactoryServlet - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
122 [localhost-startStop-1] ERROR org.apache.axis.configuration.EngineConfigurationFactoryServlet - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
2018-02-09 14:49:19,032 Encountered a JMSException - resetting the underlying JMS Connection
javax.jms.JMSException: Broker has been stopped: org.apache.activemq.broker.BrokerService$5@5aed2ed
at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
at org.apache.activemq.ActiveMQConnection.onAsyncException(ActiveMQConnection.java:1949)
at org.apache.activemq.ActiveMQConnection$3$1.run(ActiveMQConnection.java:1869)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.activemq.broker.BrokerStoppedException: Broker has been stopped: org.apache.activemq.broker.BrokerService$5@5aed2ed
at org.apache.activemq.broker.ErrorBroker.getBrokerService(ErrorBroker.java:252)
at org.apache.activemq.broker.MutableBrokerFilter.getBrokerService(MutableBrokerFilter.java:261)
at org.apache.activemq.broker.region.Queue.isSlave(Queue.java:1712)
at org.apache.activemq.broker.region.Queue.removeSubscription(Queue.java:577)
at org.apache.activemq.broker.region.AbstractRegion.removeConsumer(AbstractRegion.java:381)
at org.apache.activemq.broker.region.RegionBroker.removeConsumer(RegionBroker.java:445)
at org.apache.activemq.broker.BrokerFilter.removeConsumer(BrokerFilter.java:117)
at org.apache.activemq.advisory.AdvisoryBroker.removeConsumer(AdvisoryBroker.java:254)
at org.apache.activemq.broker.BrokerFilter.removeConsumer(BrokerFilter.java:117)
at org.apache.activemq.broker.BrokerFilter.removeConsumer(BrokerFilter.java:117)
at org.apache.activemq.broker.MutableBrokerFilter.removeConsumer(MutableBrokerFilter.java:123)
at org.apache.activemq.broker.TransportConnection.processRemoveConsumer(TransportConnection.java:593)
at org.apache.activemq.command.RemoveInfo.visit(RemoveInfo.java:76)
at org.apache.activemq.broker.TransportConnection.service(TransportConnection.java:294)
at org.apache.activemq.broker.TransportConnection$1.onCommand(TransportConnection.java:152)
at org.apache.activemq.transport.ResponseCorrelator.onCommand(ResponseCorrelator.java:116)
at org.apache.activemq.transport.MutexTransport.onCommand(MutexTransport.java:50)
at org.apache.activemq.transport.vm.VMTransport.iterate(VMTransport.java:241)
at org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:129)
at org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:47)
... 3 more
2018-02-09 14:50:17,180 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.CreateOrUpdateDatabaseViews - This service is the primary XNAT node, checking whether database updates are required.
2018-02-09 14:50:17,204 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.CreateOrUpdateDatabaseViews - Initializing database views...
2018-02-09 14:50:20,435 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.CreateOrUpdateDatabaseViews - View initialization complete.
2018-02-09 14:50:20,545 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.UpdateConfigurationService - No suspect configuration entries found.
And with just this small change (usrdn=srv-xnat ----> usrdn=xnat) the error log gets back to not showing anything:
xnat@Vader:/data/xnat/home/config/auth$ cat ../../logs/*
0 [localhost-startStop-1] ERROR org.apache.axis.configuration.EngineConfigurationFactoryServlet - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
130 [localhost-startStop-1] ERROR org.apache.axis.configuration.EngineConfigurationFactoryServlet - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd
2018-02-09 14:55:05,369 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.CreateOrUpdateDatabaseViews - This service is the primary XNAT node, checking whether database updates are required.
2018-02-09 14:55:05,379 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.CreateOrUpdateDatabaseViews - Initializing database views...
2018-02-09 14:55:08,608 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.CreateOrUpdateDatabaseViews - View initialization complete.
2018-02-09 14:55:08,725 [taskScheduler-1] INFO org.nrg.xnat.initialization.tasks.UpdateConfigurationService - No suspect configuration entries found.
xnat@Vader:/data/xnat/home/config/auth$
So, at least what the file says seems to matter but I have not managed to make the config file to work. It worked for 1.6.5...
Thanks for a any input!