Question
Hi, i tried to upgrade our 4.1.2 installation to 4.2.1. Authentication and group mapping works fine with
LdapContrib 2.99.5, but when i enable the ldap passwordmanager the registration link diappears and the registration form becomes uneditable.
In warn...txt following line appears:
TWikiUserMapping has TURNED OFF
EnableNewUserRegistration, because the password file is read only.
$TWiki::cfg{Htpasswd}{FileName} is set to '/var/www/data/.htpasswd';
ls -lah /var/www/data/.htpasswd
-rw-rw---- 1 www-data www-data 2,8K 1. Dez 08:57 /var/www/data/.htpasswd
CGI User is www-data
$TWiki::cfg{Ldap}{SecondaryPasswordManager} is set to 'TWiki::Users::HtPasswdUser';
I dont't use mod_perl or suexec
The following code disables the registration i think: (lib/TWiki/Users/TWikiUserMapping.pm)
#if password manager says sorry, we're read only today
#'none' is a special case, as it means we're not actually using the password manager for
# registration.
if ($this->{passwords}->readOnly() && ($TWiki::cfg{PasswordManager} ne 'none'))
{ $session->writeWarning( 'TWikiUserMapping has TURNED OFF
EnableNewUserRegistration, because the password file is read only.' );
$TWiki::cfg{Register}{EnableNewUserRegistration} = 0; }
I also tried to enable $TWiki::cfg{Ldap}{AllowChangePassword} but no success.
First of all: is is possible to use the new user registration and
LdapContrib in 4.2.1?
Regards
Environment
--
TimmWunderlich - 01 Dec 2008
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
I think this is a design limitation of LdapContrib, you can't register users locally. I prefer to register users locally in TWiki even with LDAP authentication. The idea is to have a wiki homepage where people can find each other and give feedback to each other the wiki way.
You can do that with a small patch as described in
TWikibug:Item6135.
--
PeterThoeny - 01 Dec 2008
Hi,
thanks for your fast answer.
i applied the patch and can register users now. but the change/reset password sites don't work, cause the context passwords_modifyable seems to be disabled.
and the ldap usermapping don't work, the ldap users don't get mapped to their cn attribute.
regards
--
TimmWunderlich - 01 Dec 2008
Sorry, again with correct status...
Hi,
thanks for your fast answer.
i applied the patch and can register users now. but the change/reset password sites don't work, cause the context passwords_modifyable seems to be disabled.
and the ldap usermapping don't work, the ldap users don't get mapped to their cn attribute.
regards
--
TimmWunderlich - 01 Dec 2008
if i register an new user the username and email are written to the .htpasswd file, but not the password
--
TimmWunderlich - 01 Dec 2008
Closing very old support question.
--
PeterThoeny - 2009-06-06