stable

Clone or download

Read-only

The 'LDAP username' of users is only used to authenticate them in approved projects

In non-approved projects the Tuleap username should be used like it is done in the Tuleap.pm module. Part of request #26407: De-duplicate authz/authn code used for SVN accesses Change-Id: I8ca2784df7647d587df8688b201e53306d61db6d

Modified Files

Name
M plugins/dynamic_credentials/include/dynamic_credentialsPlugin.php +10 −6 Go to diff View file
M plugins/ldap/include/ldapPlugin.php +37 −6 Go to diff View file
A src/common/SVNCore/AccessControl/AfterLocalSVNLogin.php +57 −0 Go to diff View file
A src/common/SVNCore/AccessControl/BeforeSVNLogin.php +63 −0 Go to diff View file
M src/common/SVNCore/AccessControl/SVNAuthenticationMethod.php +1 −1 Go to diff View file
A src/common/SVNCore/AccessControl/SVNLoginNameUserProvider.php +46 −0 Go to diff View file
M src/common/SVNCore/AccessControl/SVNPasswordBasedAuthenticationMethod.php +10 −6 Go to diff View file
M src/common/SVNCore/AccessControl/SVNProjectAccessController.php +17 −18 Go to diff View file
M src/common/SVNCore/AccessControl/SVNProjectAccessRouteDefinition.php +1 −1 Go to diff View file
M src/common/SVNCore/AccessControl/SVNTokenBasedAuthenticationMethod.php +12 −6 Go to diff View file
A src/common/SVNCore/AccessControl/UserRetrieverBySVNLoginNameEvent.php +40 −0 Go to diff View file
M src/common/User/AfterLocalLogin.php +5 −44 Go to diff View file
A src/common/User/AfterLocalStandardLogin.php +69 −0 Go to diff View file
M src/common/User/BeforeLogin.php +4 −46 Go to diff View file
A src/common/User/BeforeStandardLogin.php +71 −0 Go to diff View file
M src/common/User/LoginManager.class.php +23 −8 Go to diff View file
A tests/unit/common/SVNCore/AccessControl/AfterLocalSVNLoginTest.php +52 −0 Go to diff View file
A tests/unit/common/SVNCore/AccessControl/BeforeSVNLoginTest.php +55 −0 Go to diff View file
A tests/unit/common/SVNCore/AccessControl/SVNLoginNameUserProviderTest.php +86 −0 Go to diff View file
M tests/unit/common/SVNCore/AccessControl/SVNPasswordBasedAuthenticationMethodTest.php +4 −3 Go to diff View file
M tests/unit/common/SVNCore/AccessControl/SVNProjectAccessControllerTest.php +20 −15 Go to diff View file
M tests/unit/common/SVNCore/AccessControl/SVNTokenBasedAuthenticationMethodTest.php +23 −5 Go to diff View file
M tests/unit/common/User/User_LoginManagerTest.php +14 −14 Go to diff View file