Debugging connection issues to ldap/redis/postgres
This commit is contained in:
@@ -4,10 +4,11 @@
|
|||||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
|
||||||
USER root
|
USER root
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install --yes --no-install-recommends libldap2 \
|
&& apt-get install --yes --no-install-recommends ca-certificates libldap2 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
USER $APP_UID
|
USER $APP_UID
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
ENV LDAPTLS_CACERT=/etc/ssl/certs/ca-certificates.crt
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
EXPOSE 8081
|
EXPOSE 8081
|
||||||
|
|
||||||
|
|||||||
@@ -90,9 +90,14 @@ public sealed class LdapService(IOptions<LdapOptions> options) : ILdapService
|
|||||||
var connection = new LdapConnection(new LdapDirectoryIdentifier(ldapUri.Host, ldapUri.Port))
|
var connection = new LdapConnection(new LdapDirectoryIdentifier(ldapUri.Host, ldapUri.Port))
|
||||||
{
|
{
|
||||||
AuthType = AuthType.Basic,
|
AuthType = AuthType.Basic,
|
||||||
Timeout = TimeSpan.FromSeconds(30)
|
Timeout = TimeSpan.FromSeconds(30),
|
||||||
|
SessionOptions =
|
||||||
|
{
|
||||||
|
SecureSocketLayer = true
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
connection.SessionOptions.ProtocolVersion = 3;
|
connection.SessionOptions.ProtocolVersion = 3;
|
||||||
connection.SessionOptions.SecureSocketLayer = string.Equals(ldapUri.Scheme, "ldaps", StringComparison.OrdinalIgnoreCase);
|
connection.SessionOptions.SecureSocketLayer = string.Equals(ldapUri.Scheme, "ldaps", StringComparison.OrdinalIgnoreCase);
|
||||||
connection.Bind(new NetworkCredential(_options.BindDN, _options.BindPassword));
|
connection.Bind(new NetworkCredential(_options.BindDN, _options.BindPassword));
|
||||||
|
|||||||
@@ -26,8 +26,8 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
"Marten": "Host=lxc-db3;Port=5432;Database=wollmilchsau_dev;Username=wollmilchsau;Password=rVx0EoLDOnld",
|
"Marten": "Host=lxc-db3.tail859cae.ts.net;Port=5432;Database=wollmilchsau_dev;Username=wollmilchsau;Password=rVx0EoLDOnld",
|
||||||
"RedisCache": "lxc-matrix:6379"
|
"RedisCache": "lxc-matrix.tail859cae.ts.net:6379"
|
||||||
},
|
},
|
||||||
"OIDC": {
|
"OIDC": {
|
||||||
"Authority": "https://id.bs18.de/realms/master",
|
"Authority": "https://id.bs18.de/realms/master",
|
||||||
|
|||||||
@@ -27,8 +27,8 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
"ConnectionStrings": {
|
"ConnectionStrings": {
|
||||||
"Marten": "Host=lxc-db3;Port=5432;Database=wollmilchsau;Username=wollmilchsau;Password=rVx0EoLDOnld",
|
"Marten": "Host=lxc-db3.tail859cae.ts.net;Port=5432;Database=wollmilchsau;Username=wollmilchsau;Password=rVx0EoLDOnld",
|
||||||
"RedisCache": "lxc-matrix:6379"
|
"RedisCache": "lxc-matrix.tail859cae.ts.net:6379"
|
||||||
},
|
},
|
||||||
"OIDC": {
|
"OIDC": {
|
||||||
"Authority": "https://id.bs18.de/realms/master",
|
"Authority": "https://id.bs18.de/realms/master",
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"LDAP": {
|
"LDAP": {
|
||||||
"LdapUri": "ldaps://212.12.36.11:10636",
|
"LdapUri": "ldaps://bs18-hh.de:10636",
|
||||||
"BindPassword": "skMXHFyf3fjW4iJhsoEyfQdc0wYthuVs6xim7BKhX3c5EZSuPcRrYYiGonynBnHW",
|
"BindPassword": "skMXHFyf3fjW4iJhsoEyfQdc0wYthuVs6xim7BKhX3c5EZSuPcRrYYiGonynBnHW",
|
||||||
"BindDN": "cn=bs18ldap,ou=ldap,dc=bs18-hh,dc=de",
|
"BindDN": "cn=bs18ldap,ou=ldap,dc=bs18-hh,dc=de",
|
||||||
"BaseDN": "dc=bs18-hh,dc=de",
|
"BaseDN": "dc=bs18-hh,dc=de",
|
||||||
|
|||||||
Reference in New Issue
Block a user