Hi again, I dug a bit more into why NaviServer at master might not be allowing us to configure any nscp users.
I created a pull request to show you which changes got it working for us. At master, for us, LoadUsers ignores any nscp users defined in the "ns/server/default/module/nscp/users" section unless we make this type of change: https://bitbucket.org/naviserver/naviserver/pull-requests/10/illustrative-fix-for-nscp-loadusers Hope this might help. Regards, David On Tue, 19 Jan 2021 at 16:58, David Osborne <da...@qcode.co.uk> wrote: > Hi again, > > One issue I'm noticing since these changes is that setting up users for > the control port has changed. > Using the default config of nsd-config.tcl from master (the same basic > test case from the top of this thread): > > sudo /usr/local/ns/bin/nsd -u nsadmin -t /usr/local/ns/conf/nsd-config.tcl > ... > [19/Jan/2021:16:50:46][19522.7fcb4ff43700][-main:default-] Notice: > modload: loading module nscp from file nscp > [19/Jan/2021:16:50:46][19522.7fcb4ff43700][-main:default-] Notice: > nscp[default]: listening on [127.0.0.1]:4080 > [19/Jan/2021:16:50:46][19522.7fcb4ff43700][-main:default-] Warning: > nscp[default]: no authorized users > > And then obviously, no access of the cp is possible: > > $ nc 127.0.0.1 4080 > login: > Password: > Access denied! > > Previously, the default config would allow logging into the control port > with blank user and password from the config: > > ns_section "ns/server/default/module/nscp" { > ns_param port 4080 > #ns_param address 0.0.0.0 > } > > ns_section "ns/server/default/module/nscp/users" { > ns_param user "::" > } > > Regards, > David > > On Tue, 12 Jan 2021 at 11:07, David Osborne <da...@qcode.co.uk> wrote: > >> Thank you for a very quick turnaround Gustaf! I'll do a build at rc4 and >> continue testing. >> Regards, >> >> On Tue, 12 Jan 2021 at 10:16, Gustaf Neumann <neum...@wu.ac.at> wrote: >> >>> On 11.01.21 16:45, Gustaf Neumann wrote: >>> > Will go through these more carefully and produce a new rc when done. >>> -gn >>> >>> The updated version is running since yesterday on openacs.org (4 >>> virtual >>> servers [1]), i have tested also with macOS 10.14.6, Ubuntu 20.04, >>> Fedora Core 32, OpenBSD 6.8 (LibreSSL 3.1.1), FreeBSD 12.2. >>> >>> There is also an updated release candidate on sourceforge [2]. My plan >>> would be to release on Friday. >>> >>> all the best and many thanks for your help >>> >>> -g >>> >>> [1] https://openacs.org/forums/message-view?message_id=5468281 >>> [2] >>> https://sourceforge.net/projects/naviserver/files/naviserver/4.99.20/ >>> >>> >>> >>> -- *David Osborne | Software Engineer* Qcode Software, Castle House, Fairways Business Park, Inverness, IV2 6AA *Email:* da...@qcode.co.uk | *Phone:* 01463 896 484 www.qcode.co.uk
_______________________________________________ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel