From e6c67ec2b1554cfcaf65c076b59ad1a8172f957a Mon Sep 17 00:00:00 2001 From: mikisoq Date: Wed, 29 Jul 2026 01:48:27 -0100 Subject: [PATCH] Replace internal domain names with generic placeholders --- MainWindow.axaml | 6 +++--- MainWindow.axaml.cs | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/MainWindow.axaml b/MainWindow.axaml index b1e1bc2..1970d13 100644 --- a/MainWindow.axaml +++ b/MainWindow.axaml @@ -18,7 +18,7 @@ - + @@ -31,12 +31,12 @@ - + - + diff --git a/MainWindow.axaml.cs b/MainWindow.axaml.cs index e8b31a7..2d9a513 100644 --- a/MainWindow.axaml.cs +++ b/MainWindow.axaml.cs @@ -24,7 +24,7 @@ public partial class MainWindow : Window ActionBox.SelectedIndex = 0; LdapPortBox.Text = "636"; - SearchBaseBox.Text = "DC=knno,DC=local"; + SearchBaseBox.Text = "DC=contoso,DC=local"; UseLdapsBox.IsChecked = true; RefreshConnectionHelp(); @@ -121,7 +121,7 @@ public partial class MainWindow : Window var host = LdapHostBox.Text?.Trim() ?? string.Empty; if (string.IsNullOrWhiteSpace(host)) { - SetStatus("LDAP host is required, for example NODC04.knno.local."); + SetStatus("LDAP host is required, for example dc01.contoso.local."); return; } @@ -289,7 +289,7 @@ public partial class MainWindow : Window catch (Exception ex) { output.Add($"FAIL: DNS lookup failed for {host}: {FormatExceptionMessage(ex)}"); - output.Add("Hint: check DNS suffix, VPN/internal network, or try the full DC FQDN such as nodc04.knno.local."); + output.Add("Hint: check DNS suffix, VPN/internal network, or try the full DC FQDN such as dc01.contoso.local."); } var tcp389 = await AdService.TestTcpPortAsync(host, 389, TimeSpan.FromSeconds(5)); @@ -339,7 +339,7 @@ public partial class MainWindow : Window if (!ldaps636.Success && !ignoreCertificateErrors) { - output.Add("Hint: if TCP 636 works but LDAPS bind fails on Linux, the Linux machine may not trust your internal CA chain. For testing only, try 'Ignore cert errors'. For production, install the KNNO root/intermediate CA into Linux trust."); + output.Add("Hint: if TCP 636 works but LDAPS bind fails on Linux, the Linux machine may not trust your internal CA chain. For testing only, try 'Ignore cert errors'. For production, install the your internal root/intermediate CA into Linux trust."); } } else @@ -550,7 +550,7 @@ public partial class MainWindow : Window if (string.IsNullOrWhiteSpace(host)) { - throw new InvalidOperationException("LDAP host is required, for example NODC04.knno.local."); + throw new InvalidOperationException("LDAP host is required, for example dc01.contoso.local."); } if (!int.TryParse(portText, NumberStyles.Integer, CultureInfo.InvariantCulture, out var port)) @@ -560,7 +560,7 @@ public partial class MainWindow : Window if (string.IsNullOrWhiteSpace(searchBase)) { - throw new InvalidOperationException("Search base DN is required, for example DC=knno,DC=local."); + throw new InvalidOperationException("Search base DN is required, for example DC=contoso,DC=local."); } if (string.IsNullOrWhiteSpace(bindUser))