Docs/Users & sign-in/Active Directory and multiple domains
DartRelay 2.1 documentation
Users & sign-in

Active Directory and multiple domains

This page shows how to let people sign in to the portal with their Active Directory accounts, how DartRelay decides which domain a sign-in belongs to, and how to work with several domains, including domains your server's domain does not trust.

Before you begin

Signing in with a domain account

People sign in to the portal with the same username and password they use for Windows. They can type their name in any of these forms:

What they typeExampleWhich domain it goes to
Domain and nameCORP\aliceThe listed domain whose NetBIOS or DNS name matches CORP.
Sign-in name (UPN)alice@corp.example.comThe listed domain that owns that suffix. Alternative suffixes your forest uses are recognised too.
Plain namealiceThe domain chosen in the Domain list on the sign-in page, if it is shown; otherwise the default domain for the address.
Local account.\aliceThe DartRelay server's own local Windows accounts only (needs Windows Users switched on).

A plain name is first checked against DartRelay's own portal accounts, then the domain, then the server's local Windows accounts. A name typed with a domain goes to that domain only.

Groups, entitlements and the Windows logon on the host all follow from the domain account. A person signing in as SUB\alice is always treated as SUB's alice, with SUB's group memberships, even if another domain has an account with the same name.

The Directories list New in 2.0

Authentication → Directories lists every Active Directory domain DartRelay accepts. Only domains on this list, and enabled, can sign in. A name that points anywhere else is refused with the message "X is not a domain this address signs in to", and no domain controller is contacted, so a mistyped domain never counts as a bad password against anybody's account.

How the list fills itself

Important

When upgrading: a trusted domain whose users used to sign in by typing SUB\alice must now be on the list. Add it with Add from trusts, described below, or its users will see the "is not a domain this address signs in to" message.

Add domains your server trusts

  1. Open the Directories page. Go to Authentication → Directories.
  2. Click Add from trusts, then Find trusted domains. DartRelay lists every domain in your forest and every domain your domain trusts directly, each with its relationship in plain words: This server's domain, Same forest, Trusted, users can sign in, or Trusts us, users cannot sign in here. The last kind is shown so you know why it is missing, but cannot be added.
  3. Tick the domains you want and add them. Each is added with its DNS name and NetBIOS name already filled in.
  4. Open each new row and click Test a user with a real account name, to confirm the domain answers and its groups can be read.

You can also use Add a domain by name and type a DNS name such as sub.corp.example.com. If the name cannot be found, the message gives both possible reasons: no such domain, or no domain controller answered.

Check again asks Windows for the trust list again, for example after the server has been joined to a different domain. It can take up to about 40 seconds.

Order, enable and default

SettingWhat it doesDefault
Default domainThe domain a plain username signs in to when no list is shown, or when the person does not pick one.This server's domain
Domain list on the sign-in pageAutomatic shows the list only when more than one domain can sign in. Show and Hide force it either way.Automatic

With a single domain, the sign-in page looks exactly as it always has. The list appears on both the portal sign-in page and the console sign-in page, labelled with each domain's display name. If somebody types a domain in front of their name, what they typed wins over the list.

The domain's own settings

Open a domain on the list to edit it.

FieldWhat it doesDefault
DNS name / NetBIOS nameThe two names the domain answers to. Filled in automatically when the domain is found; each may belong to one row only.From discovery
Display nameWhat the Domain list and the access picker show, for example Corporate.The DNS name
Domain controllersLeave empty to find domain controllers through DNS. List them by name only if you need to.Empty
Password reset email attributeWhich account attribute holds the email address for this domain.mail
RDP domainThe domain name passed to hosts at logon, for the rare host that wants a different name from the NetBIOS name.The NetBIOS name
EnabledWhether this domain can sign in.On

The domain's sign-in suffixes (UPN suffixes) are read from Active Directory automatically, when DartRelay starts, when you save the row and when you test a user. You do not type them.

How sign-in finds the domain New in 2.0

DartRelay sends each sign-in attempt to exactly one domain and never tries a password against several domains in turn. Trying each in turn would add a bad-password count in every domain and could lock out people who have the same username in two domains.

  1. DOMAIN\name goes to the listed domain with that name, or is refused without contacting anything.
  2. name@suffix goes to the listed domain that owns the suffix. In a forest, DartRelay finds which domain really holds the account, and that domain must also be on the list.
  3. A plain name goes to the domain picked in the Domain list, if shown, or to the default.

The part after DOMAIN\ must be a plain account name. Forms such as CORP\OTHER\bob are refused as invalid.

Sign-in domain for each address New in 2.0

If you serve different organisations on different addresses, each address can have its own default domain and its own Domain list. Go to Appearance → Tenancy & Branding, open the address, choose Access, and use the Sign-in domain on this address card. The card appears once the Directories list exists.

SettingWhat it doesDefault
Default domainWhere a plain username signs in on this address. If the domain chosen here is later disabled, the installation-wide default is used instead.Use the default
Domain list on the sign-in pageAs set on the Directories page, Show or Hide.As set on the Directories page
Only the default domain signs in on this addressWhen ticked, a name from any other domain is refused on this address, without contacting that domain. Portal accounts and local Windows accounts are not affected.Off

An address can narrow sign-in, never widen it. A domain that is disabled on the Directories page cannot be offered on any address.

The theme's sign-in block also has a Domain dropdown position setting: between the username and password (the default), above the username, below the password, or hidden. See Building the sign-in and home pages.

Example: one address, one domain

A provider hosts two client companies. portal.alpha.example should accept only Alpha's domain, and users should type just their name.

  1. Add both domains on Authentication → Directories.
  2. Open Alpha's address under Appearance → Tenancy & Branding and choose Access.
  3. Set Default domain to Alpha's domain, set the list to Hide, and tick Only the default domain signs in on this address. Save the card.
  4. Check it. On that address, alice signs in as Alpha's alice with no Domain list shown, and a Beta user is told Beta "is not a domain this address signs in to".

This is a gate on the door. A Beta user can still sign in on Beta's own address, or on any address that offers Beta's domain.

Domains with no trust New in 2.0

Sometimes the people you serve are in a domain that has no trust with the DartRelay server's domain, for example a separate company's forest. DartRelay can still sign them in by talking to that domain's own domain controllers directly.

  1. Make the domain reachable. The DartRelay server must be able to resolve the domain's DNS name and reach its domain controllers on the directory ports (389, or 636 for LDAPS). A conditional forwarder on your DNS server is the usual way.
  2. Add it by name. On Authentication → Directories, click Add a domain by name and type its DNS name. Because no trust covers it, it is added as Separate (no trust) and its settings open.
  3. Enter a service account. In the Connection card, under Service account, enter any ordinary user account in that domain and its password. DartRelay uses it only to look up accounts and read group membership. The password is stored encrypted and is never shown again. Until a service account is saved, the list shows Needs a service account and the domain cannot sign in.
  4. Choose the connection security. By default DartRelay connects on port 389 with signing and encryption. You can choose LDAPS instead; if you do, list the domain controllers by name under Domain controllers, because their certificates rarely carry the bare domain name.
  5. Click Test connection. It tries the details as typed, without saving, and reports the server reached, the identity it signed in as, the connection security and whether the domain could be read.
  6. Save, then click Test a user with a real account to confirm sign-in and group lookup.

Changing the service account, the domain controllers or the LDAPS setting asks for the password again.

LDAPS certificates from the other organisation

If you choose LDAPS and the domain controller's certificate comes from the other organisation's own certificate authority, the DartRelay server will not trust it. Rather than installing that authority on your server for every purpose, use Trust this certificate for this domain. DartRelay shows the certificate's fingerprints, says whether the certificate was confirmed against the domain's own directory, and whether it trusts the authority (which survives the domain controllers renewing their certificates) or a single domain controller certificate (which has to be trusted again after renewal). Trusting needs the service account password typed and working. Stop trusting removes it.

What works differently with a separate domain

Passwords at launch

For resources set to Pass-Through, DartRelay logs the person on to the host with the password they signed in with. If that password is no longer held, for example after DartRelay has restarted or on another server in a pool, the portal asks for the Windows password once in a small prompt and then carries on with the launch. To avoid the prompt altogether, see Relay Pass.

If something goes wrong

ProblemWhat to check
"X is not a domain this address signs in to."The domain is not on Authentication → Directories, is disabled, or the address allows only its default domain. Also check for a typo in the domain name.
Correct password refused as "Invalid username or password".Look in System → Audit Log. The entry names the domain tried and the reason, such as an expired password or a locked account, which the sign-in page does not reveal.
Domain users sign in but see nothing.Their groups could not be read, or nothing is granted to them. Test a user on the domain's row shows whether groups are read. See access troubleshooting.
Launch fails with "Server refused connection".The user's domain group is not in the host's Remote Desktop Users group. Users from a domain other than the host's own need their group added by hand on the host.
Users of one domain wait several seconds and are refused.That domain's controllers are not answering. Other domains carry on working. Check the network path and DNS for that domain.
LDAPS to a separate domain fails.The error says whether no certificate was offered, the name does not match (list the domain controller by that name), or the certificate is not trusted (use Trust this certificate for this domain).
Note

Self-service password reset does not yet follow the Directories list: it works for accounts in the DartRelay server's own domain. See Password policy and self-service reset.

Still stuck? Email support@dartinnovations.com with what you were doing, what you expected and what you saw. A screenshot helps.