AppliesTo: | Component: | Priority: | CurrentState: | WaitingFor: | TargetRelease | ReleasedIn |
---|---|---|---|---|---|---|
Extension | TWikiUserMappingContrib | Normal | Closed | n/a | 4.2.4, 5.0.0 |
$TWiki::cfg{UserMappingManager} = 'TWiki::Users::TWikiUserMapping'; $TWiki::cfg{PasswordManager} = 'TWiki::Users::LdapUserand this patch in
twiki/lib/TWiki/Users/TWikiUserMapping.pm
:
[root@twiki Users]# diff -u TWikiUserMapping.pm.save1 TWikiUserMapping.pm --- TWikiUserMapping.pm.save1 2008-10-24 21:22:46.000000000 -0400 +++ TWikiUserMapping.pm 2008-11-14 13:49:51.000000000 -0500 @@ -74,7 +74,7 @@ #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')) { + if ($this->{passwords}->readOnly() && ($TWiki::cfg{PasswordManager} !~ /^(none|TWiki::Users::LdapUser)$/)) { $session->writeWarning( 'TWikiUserMapping has TURNED OFF EnableNewUserRegistration, because the password file is read only.' ); $TWiki::cfg{Register}{EnableNewUserRegistration} = 0; } @@ -284,7 +284,7 @@ 'New password did not match existing password for this user'); } # User exists, and the password was good. - } else { + } elsif( $TWiki::cfg{PasswordManager} ne 'TWiki::Users::LdapUser' ) { # add a new user unless( defined( $password )) {-- TWiki:Main.PeterThoeny
ItemTemplate | |
---|---|
Summary | changes required in TWikiUserMappings.pm required to support registration in case PasswordManager is LdapUser |
ReportedBy |
TWiki:Main.SopanShewale![]() |
Codebase | 4.2.2 |
SVN Range | TWiki-5.0.0, Wed, 22 Oct 2008, build 17677 |
AppliesTo | Extension |
Component | TWikiUserMappingContrib |
Priority | Normal |
CurrentState | Closed |
WaitingFor | |
Checkins |
TWikirev:17740![]() |
TargetRelease | n/a |
ReleasedIn | 4.2.4, 5.0.0 |