Windows AD / LDAP Server (Reference) integration provides enterprise authentication using existing domain credentials and security groups. AD/LDAP integration enables:
Users authenticate against enterprise directories without needing separate solution credentials.
Windows AD support is automatically enabled when:
Rich Client:
Server: ServerName
Port: 3102 (AD port)
Windows Authentication: Enabled
Web Client URL:
http://server/fs-2024/TSmartClient.application?port1=3102&wa=true
Windows Group: Domain\Engineers
Permission Group: Engineering
Result: User gets Engineering permissions
ldap://company.local:389
ldaps://secure.company.local:636
csharp
Client.LogOn(username, password)
↓
1. Check Engineering Users (SecurityUsers)
2. Check Runtime Users (Database)
3. Check LDAP Server (if configured)
4. First valid match logs in
DOMAIN\username // NetBIOS format
username@domain.com // UPN format
username // Local/simple format
Disable solution users, accept only AD:
csharp
// Check if using Windows Authentication
if (@Client.IsWindowsAuthenticated)
{
string domain = @Client.WindowsDomain;
string user = @Client.WindowsUserName;
@Info.Trace($"AD User: {domain}\\{user}");
}
Standard LDAP:
ldap://dc1.company.local:389
Secure LDAP:
ldaps://dc1.company.local:636
With Base DN:
ldap://dc1.company.local:389/DC=company,DC=local
LDAP Attribute | Solution Property |
---|---|
sAMAccountName | UserName |
memberOf | Permissions (via groups) |
displayName | Display name |
ContactInfo | |
department | UserGroup |
Primary AD Port: 3102
Backup AD Port: 3103
TServer.exe /port1:3102 /wa:true
TServer.exe /port1:3103 /wa:true /backup
csharp
// Configure service account for LDAP queries
@Security.LDAPServiceAccount = "svc_scada";
@Security.LDAPServicePassword = GetSecurePassword();
@Security.LDAPSearchBase = "OU=Users,DC=company,DC=local";
Cannot authenticate:
Wrong permissions:
LDAP connection failed:
Slow authentication:
AD Server: mfg.company.local
Port: 3102
Groups:
- MFG\Operators → Operator
- MFG\Engineers → Engineering
- MFG\Managers → Supervisor
LDAP: ldaps://enterprise.local:636
Base DN: DC=enterprise,DC=local
Groups:
- CN=SCADA_Users → User
- CN=SCADA_Admin → Administrator