Hi Alex, I've to run from my computer, so can't have a look at this right now, but a couple of guesses:
- as for 1) check that the user running your tomcat instance has write permissions on /etc/tomcat/jspwiki.. files - re. 2), I'd first check that your jspwiki-custom file is being readed (should appear on logs). Seems that you can login b/c the default login mechanism is still in place. IIRC, it allows anyone to log in, and the moment you try to save your profile you come again with the error on 1).. Would you mind checking your jspwiki.log file? You should have there clear indications of what's going on and what configuration is being loaded. Would you mind sharing the logs when you try to save your profile? Also, I've cc'ed [email protected], may be someone else has experience something similar and can give some advice? Last, https://github.com/apache/jspwiki/tree/master/jspwiki-it-tests/jspwiki-it-test-cma builds a jspwiki war that uses container managed authentication (and runs some integration tests if you mvn install -Pintegration-tests, you by default just only need chrome available on your path). thx + best regards, juan pablo On Sun, Jan 12, 2020 at 1:03 AM Alex Machina <[email protected]> wrote: > Juan, > > Sorry to bother you again, but I wonder if you can give some advice and > references as to what to read to configure what I want? > > 1) My attempt to update my wiki profile results in "Could not save > profile: /etc/tomcat/jspwiki-users.xml.new: (Permission denied)" > > 2) Yet a login to JSPWiki with my Linux UID/PSWD succeeds. Where is > JSPWiki getting this information, since my jspwiki-custom.properties file > specifies a place to look for this information (which happens to be > currently empty)? > > The /usr/share/tomcat/lib/jspwiki-custom.properties file: > > #Sat Jan 11 01:41:36 EST 2020 > jspwiki.basicAttachmentProvider.storageDir=/opt/JSPWiki > jspwiki.fileSystemProvider.pageDir=/opt/JSPWiki > jspwiki.pageProvider=VersioningFileProvider > jspwiki.applicationName=JSPWiki > jspwiki.workDir=/opt/work > # Manually added after initial creation by Install.jsp: > # http://localhost:8080/JSPWiki/Install.jsp > jspwiki.pageNameComparator.class=HumanComparator > jspwiki.translatorReader.camelCaseLinks=true > jspwiki.xmlGroupDatabaseFile=/etc/tomcat/jspwiki-groups.xml > jspwiki.xmlUserDatabaseFile=/etc/tomcat/jspwiki-users.xml > jspwiki.defaultprefs.template.dateformat =dd.MM.yyyy, HH:mm > log4j.rootCategory=INFO,FileLog > log4j.appender.FileLog =org.apache.log4j.RollingFileAppender > log4j.appender.FileLog.MaxFileSize=4MB > log4j.appender.FileLog.MaxBackupIndex=4 > log4j.appender.FileLog.File=/var/log/JSPWiki.log > log4j.appender.FileLog.layout=org.apache.log4j.PatternLayout > log4j.appender.FileLog.layout.ConversionPattern=%d [%t] %p %c %x - %m%n > > Files /etc/tomcat/jspwiki-groups.xml and /etc/tomcat/jspwiki-users.xml are > currently empty, and file /etc/tomcat/tomcat-users.xml is still in its > initial state after the install of tomcat (i.e. it has not been modified). > So the question is, why does my local instance of JSPWiki allow me to login > at all, and then when I attempt to modify my JSPWiki profile, it attempts > to create a new file (/etc/tomcat/jspwiki-users.xml.new)? > > What I want to do is for JSPWiki to use the contents of > /etc/tomcat/jspwiki-groups.xml and ...../jspwiki-users.xml. Although I am > not wedded to that outcome, if I continue to use the currently working > Linux UID/PSWD as my login credentials to JSPWiki, I want to at least > understand where/how JSPWiki is getting that information. > > I don't want to impose on your time, so just a quick pointer to > documentation and a short answer to get me started would be sufficient. > > Thanks, > Alex > > PS - I am currently reading: > > > https://jspwiki-wiki.apache.org/Wiki.jsp?page=JSPWikiContainerManagedAuthenticationInstallation > > and > > https://jspwiki-wiki.apache.org/Wiki.jsp?page=Wiki.Admin.Security > > in an attempt to wrap my head around this, but a few pointers in the right > direction would help. > > >
