mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-13 09:56:01 +00:00
Merge pull request #6390 from mailcow/nightly
Nightly 2025-03 to staging
This commit is contained in:
@@ -123,8 +123,6 @@ $response = $ldap_query->where($iam_settings['username_field'], "*")
|
|||||||
|
|
||||||
// Process the users
|
// Process the users
|
||||||
foreach ($response as $user) {
|
foreach ($response as $user) {
|
||||||
$mailcow_template = $user[$iam_settings['attribute_field']][0];
|
|
||||||
|
|
||||||
// try get mailbox user
|
// try get mailbox user
|
||||||
$stmt = $pdo->prepare("SELECT
|
$stmt = $pdo->prepare("SELECT
|
||||||
mailbox.*,
|
mailbox.*,
|
||||||
@@ -137,7 +135,7 @@ foreach ($response as $user) {
|
|||||||
$row = $stmt->fetch(PDO::FETCH_ASSOC);
|
$row = $stmt->fetch(PDO::FETCH_ASSOC);
|
||||||
|
|
||||||
// check if matching attribute mapping exists
|
// check if matching attribute mapping exists
|
||||||
$user_template = $user_res[$iam_settings['attribute_field']][0];
|
$user_template = $user[$iam_settings['attribute_field']][0];
|
||||||
$mapper_key = array_search($user_template, $iam_settings['mappers']);
|
$mapper_key = array_search($user_template, $iam_settings['mappers']);
|
||||||
|
|
||||||
if (empty($user[$iam_settings['username_field']][0])){
|
if (empty($user[$iam_settings['username_field']][0])){
|
||||||
|
|||||||
Reference in New Issue
Block a user