Skip to content

Commit aea6e5b

Browse files
committed
[BUGFIX] Prevent accidental change of a LDAP user password
In order to prevent TYPO3 administrators from accidentally setting an arbitrary password for Backend/Frontend LDAP users, the "password" field is hidden in TCA. Resolves: #82028 Related: #58933 Change-Id: I6ca859f60db15a4babf7f4ea15a023a54ee66517 Reviewed-on: https://review.typo3.org/54158 Reviewed-by: Xavier Perseguers <[email protected]> Tested-by: Xavier Perseguers <[email protected]>
1 parent ec2b623 commit aea6e5b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Configuration/TCA/Overrides/be_users.php

+3
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@
1212
],
1313
];
1414

15+
// Remove password field for LDAP users
16+
$GLOBALS['TCA']['be_users']['columns']['password']['displayCond'] = 'FIELD:tx_igldapssoauth_dn:REQ:false';
17+
1518
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('be_users', $tempColumns);
1619
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('be_users', 'tx_igldapssoauth_dn;;;;1-1-1');

Configuration/TCA/Overrides/fe_users.php

+3
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,8 @@
1212
],
1313
];
1414

15+
// Remove password field for LDAP users
16+
$GLOBALS['TCA']['fe_users']['columns']['password']['displayCond'] = 'FIELD:tx_igldapssoauth_dn:REQ:false';
17+
1518
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('fe_users', $tempColumns);
1619
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'tx_igldapssoauth_dn;;;;1-1-1');

0 commit comments

Comments
 (0)