Skip to content

Commit 39a2aa1

Browse files
Fix LDAP integration typos
1 parent c005409 commit 39a2aa1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/charm.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,7 @@ def _generate_ldap_service(self) -> dict:
17601760

17611761
ldap_base_dn = ldap_params["ldapbasedn"]
17621762
ldap_bind_username = ldap_params["ldapbinddn"]
1763-
ldap_bing_password = ldap_params["ldapbindpasswd"]
1763+
ldap_bind_password = ldap_params["ldapbindpasswd"]
17641764
ldap_group_mappings = self.postgresql.build_postgresql_group_map(self.config.ldap_map)
17651765

17661766
return {
@@ -1773,7 +1773,7 @@ def _generate_ldap_service(self) -> dict:
17731773
"LDAP_PORT": ldap_port,
17741774
"LDAP_BASE_DN": ldap_base_dn,
17751775
"LDAP_BIND_USERNAME": ldap_bind_username,
1776-
"LDAP_BIND_PASSWORD": ldap_bing_password,
1776+
"LDAP_BIND_PASSWORD": ldap_bind_password,
17771777
"LDAP_GROUP_IDENTITY": json.dumps(ACCESS_GROUP_IDENTITY),
17781778
"LDAP_GROUP_MAPPINGS": json.dumps(ldap_group_mappings),
17791779
"POSTGRES_HOST": "127.0.0.1",
@@ -1991,7 +1991,7 @@ def _restart_ldap_sync_service(self) -> None:
19911991

19921992
if not self.is_primary and sync_service[0].is_running():
19931993
logger.debug("Stopping LDAP sync service. It must only run in the primary")
1994-
container.stop(self.pg_ldap_sync_service)
1994+
container.stop(self.ldap_sync_service)
19951995

19961996
if self.is_primary and not self.is_ldap_enabled:
19971997
logger.debug("Stopping LDAP sync service")

0 commit comments

Comments
 (0)