Skip to content

Commit

Permalink
Select correct encryption type with uri ldaps://
Browse files Browse the repository at this point in the history
and fix element

Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
  • Loading branch information
tatankat and richard67 committed Jun 20, 2022
1 parent 34e2f4d commit 28efc35
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ UPDATE `#__extensions`
SET `params` = REPLACE(`params`, '"negotiate_tls":1', '"encryption":"tls"')
WHERE `name` = 'plg_authentication_ldap'
AND `type` = 'plugin'
AND `element` = 'plugin'
AND `element` = 'ldap'
AND `folder` = 'authentication'
AND `client_id` = 0
AND `params` LIKE '{%"negotiate_tls":1%}';
Expand All @@ -11,8 +11,26 @@ UPDATE `#__extensions`
SET `params` = REPLACE(`params`, '"negotiate_tls":0', '"encryption":"none"')
WHERE `name` = 'plg_authentication_ldap'
AND `type` = 'plugin'
AND `element` = 'plugin'
AND `element` = 'ldap'
AND `folder` = 'authentication'
AND `client_id` = 0
AND `params` LIKE '{%"negotiate_tls":0%}';

UPDATE `#__extensions`
SET `params` = REPLACE(`params`, '"encryption":"none"', '"encryption":"ssl"')
WHERE `name` = 'plg_authentication_ldap'
AND `type` = 'plugin'
AND `element` = 'ldap'
AND `folder` = 'authentication'
AND `client_id` = 0
AND `params` LIKE '{%"host":"ldaps:\\\\/\\\\/%}';

UPDATE `#__extensions`
SET `params` = REPLACE(`params`, '"host":"ldaps:\\/\\/', '"host":"')
WHERE `name` = 'plg_authentication_ldap'
AND `type` = 'plugin'
AND `element` = 'ldap'
AND `folder` = 'authentication'
AND `client_id` = 0
AND `params` LIKE '{%"host":"ldaps:\\\\/\\\\/%}';

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ UPDATE "#__extensions"
SET "params" = REPLACE("params", '"negotiate_tls":1', '"encryption":"tls"')
WHERE "name" = 'plg_authentication_ldap'
AND "type" = 'plugin'
AND "element" = 'plugin'
AND "element" = 'ldap'
AND "folder" = 'authentication'
AND "client_id" = 0
AND "params" LIKE '{%"negotiate_tls":1%}';
Expand All @@ -11,8 +11,26 @@ UPDATE "#__extensions"
SET "params" = REPLACE("params", '"negotiate_tls":0', '"encryption":"none"')
WHERE "name" = 'plg_authentication_ldap'
AND "type" = 'plugin'
AND "element" = 'plugin'
AND "element" = 'ldap'
AND "folder" = 'authentication'
AND "client_id" = 0
AND "params" LIKE '{%"negotiate_tls":0%}';

UPDATE "#__extensions"
SET "params" = REPLACE("params", '"encryption":"none"', '"encryption":"ssl"')
WHERE "name" = 'plg_authentication_ldap'
AND "type" = 'plugin'
AND "element" = 'ldap'
AND "folder" = 'authentication'
AND "client_id" = 0
AND "params" LIKE '{%"host":"ldaps:\\/\\/%}';

UPDATE "#__extensions"
SET "params" = REPLACE("params", '"host":"ldaps:\/\/', '"host":"')
WHERE "name" = 'plg_authentication_ldap'
AND "type" = 'plugin'
AND "element" = 'ldap'
AND "folder" = 'authentication'
AND "client_id" = 0
AND "params" LIKE '{%"host":"ldaps:\\/\\/%}';

0 comments on commit 28efc35

Please sign in to comment.