SID-02498: Unable to login to Twiki
| Status: |
Answered |
TWiki version: |
5.1.1 |
Perl version: |
|
| Category: |
CategoryAuthentication |
Server OS: |
Centos 7 |
Last update: |
2 years ago |
I am trying to move twiki application from datacenter server to AWS. I have successfully moved everything but unable to login to the twiki URL. Copied required folders from DC to AWS. WE are using Ldap as authentication.
Below is the error message
TWikiUserMapping has TURNED OFF
EnableNewUserRegistration, because the password file is read only
Can you please help on how to fix this error OR please provide me instructions on how to enable debug logging so that I can view more logs regarding this issue.
--
Jaya Prasad kusuma - 2023-01-11
Discussion and Answer
This is an indication that the files are not writable by the webserver user. Make sure all TWiki files and directories are owned by
apache or whatever user it is on your system.
--
Peter Thoeny - 2023-01-13
All the files and folders are owned by apache user and they can be writable.
--
Jaya Prasad kusuma - 2023-01-24
What do you have for
$TWiki::cfg{PasswordManager}?
--
Peter Thoeny - 2023-01-25
Below are the values.
$TWiki::cfg{PasswordManager} = 'TWiki::Users::LdapUser';
$TWiki::cfg{Ldap}{SecondaryPasswordManager} = 'none';
--
Jaya Prasad kusuma - 2023-01-26
If you use LDAP login make sure to set also
$TWiki::cfg{UserMappingManager} = 'TWiki::Users::LdapUserMapping';
--
Peter Thoeny - 2023-01-26
See also related
RequireRegistrationPlugin
--
Peter Thoeny - 2023-01-26
$TWiki::cfg{UserMappingManager} = 'TWiki::Users::LdapUserMapping'; - This already exists in config file.
We have same setup working fine in datacenter. We are in process of moving it to AWS. Is there any way to enable logging on twiki to know more about logging issue.
--
Jaya Prasad kusuma - 2023-01-26
Your LDAP server is likely inside the firewall. Make sure the LDAP server is accessible from AWS.
Enable the debug flag
$TWiki::cfg{Ldap}{Debug}
You can hire one of the
TWikiConsultants to help you debug the LDAP integration.
--
Peter Thoeny - 2023-01-27
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.