Users and sign-in

Edition: Local accounts COMMUNITYCommunity PROPro · directory sign-in ENTERPRISEEnterprise

What it does

Every person signs in to cinqstack with an account, and each account has one role that decides what the person may do.

Local accounts keep working when directory sign-in is on, so an administrator can still get in if the directory is down.

Roles

RoleShown asWhat it may do
read_onlyread onlyOpens every list, detail and report page. Can take no action. Cannot use the cinqstack Field app.
operatoroperatorEverything read_only can, plus: jobs (create, edit, run, delete, preview, apply), acknowledgements, the findings Scan now and bulk actions, monitoring Check now, segmentation runs, exceptions and the classification write, editing advisories and config-check rules, physical documents, pausing automation, and reviewing Field walk-downs.
adminadminEverything operator can, plus: Settings (NetBox, schema, branding, licence, modules, users, audit log), setup, connections and credentials for every integration, monitoring scopes, notifications, Relay, directory sign-in, segmentation values and standard, the device image library, Field access, and backups.
surveyorsurveyorThe Field app only. Any other web page sends them to the field app. PROPro

In the Field app, surveyor may survey, operator may survey and review, and admin may do everything. read_only cannot use the field app: it is refused with Ask an administrator for the surveyor role. A surveyor sees no sites until an admin grants them some.

The menu offers each person only the pages their role can open.

What it needs in NetBox

Nothing in NetBox. cinqstack accounts are separate from NetBox accounts.

One option links the two: in Field, Who may see which sites can follow each person's NetBox user and permissions, matched by the same username or email.

Setting up

The first administrator

The setup wizard creates the first administrator account. See First run.

Add local users

Open Settings › Users (admins only). Under Add user, fill in:

FieldNotes
UsernameMust be unique: That username is taken.
EmailOptional.
Roleadmin, operator, read only or surveyor.
Initial passwordAt least 12 characters. Give it to the person by a safe route.

Choose Add user. The page confirms User <name> created.

Disable or enable an account

In the user list, Disable stops an account at once: the person is signed out on their next click and cannot sign in again. Enable turns it back on and also clears a lockout. You cannot disable your own account.

Reset a password

On the server, run:

cinqstack reset-password <username>

It asks for the new password twice (at least 12 characters), and also clears a lockout and enables the account. Use it to recover an administrator who is locked out.

Directory sign-in: Active Directory or LDAP ENTERPRISEEnterprise

Open Settings › Sign-in and fill in Active Directory / LDAP:

FieldDefaultWhat to enter
EnabledoffTurns LDAP sign-in on.
Server(s)One or more servers, separated by commas and tried in order: ldaps://dc1.example.com, ldaps://dc2.example.com.
StartTLS on ldap://offUpgrade a plain ldap:// connection to TLS.
Verify the server certificateonCheck the directory server's certificate.
CA bundle pathA CA file on the server, if the directory's certificate is from your own CA: /data/certs/corp-ca.pem.
Service account (bind DN) and PasswordAn account that may search the directory: CN=svc-cinqstack,OU=Service,DC=example,DC=com. The password is stored encrypted.
Search baseWhere to look for users: DC=example,DC=com.
User filter(sAMAccountName={username})How to find a user. {username} is replaced by what the person typed.
Name attributedisplayNameThe person's full name.
Email attributemailThe person's email.
Groups attributememberOfThe groups the person is in.

Then map groups to roles (see below) and choose Save.

People then sign in on the normal Sign in page with their directory username and password. cinqstack finds the user with the service account, checks the password by signing in as that user, and reads their groups.

Test under Look up a user (no password needed) checks the service account and the search, and shows which role a user would get: Found <DN> (<name>), <n> group(s): would sign in as <role>. If the user cannot be found: The service account works, but that user was not found (or matched more than once).

Directory sign-in: single sign-on (OpenID Connect) ENTERPRISEEnterprise

Under Single sign-on (OpenID Connect) on the same page:

FieldDefaultWhat to enter
EnabledoffShows "Sign in with …" on the sign-in page.
IssuerThe provider's issuer URL. For Entra ID: https://login.microsoftonline.com/<tenant>/v2.0. For Keycloak, for example: https://idp.example.com/realms/ot.
Client ID and Client secretFrom the application you registered with the provider. The secret is stored encrypted.
Scopesopenid profile emailThe scopes to ask for.
Username claimpreferred_usernameThe claim that becomes the cinqstack username. If the token has no such claim, the email claim is used.
Groups claimgroupsThe claim that lists the person's groups.
Button labelSingle sign-onThe text on the button: "Sign in with Microsoft".

The page shows the Redirect URI to register with the provider, ending in /auth/sso/callback. Register exactly that address with the provider. When you save, cinqstack reads the provider's discovery document and tells you if it cannot (Saved, but: …).

The sign-in page then shows Sign in with <label> under the password form. The person signs in at the provider and comes back signed in to cinqstack. The Field app shows the same button on its own sign-in screen.

cinqstack uses OpenID Connect discovery, so any standard provider works. Entra ID, Okta and Keycloak are named in the product; Dex, ADFS 2019 and later, and Google also work. Google sends no groups, so with Google only the If no group matches role applies.

Map directory groups to roles ENTERPRISEEnterprise

Both forms have a table Directory group (name or DN) → cinqstack role. Enter a group as its name (OT-Engineers) or its full DN; matching ignores upper and lower case, and a DN also matches by its CN. For single sign-on, enter the values exactly as the provider puts them in the groups claim; some providers send group IDs rather than names.

When several groups match, the strongest role wins, in this order: admin, operator, surveyor, read only.

If no group matches decides what happens to everyone else: refuse sign-in (default) or sign in as a role.

Settings › Sign-in with an LDAP server, two group mappings and the result of Test.
Settings › Sign-in with an LDAP server, two group mappings and the result of Test.

Reading the results

Settings › Users lists every account with its Role, Last sign-in and Status (Active or Disabled, and locked during a lockout). Accounts created by directory sign-in carry a directory (LDAP) or SSO label next to the role.

Directory accounts are created at the first sign-in. At every sign-in, cinqstack sets the role, full name and email again from the directory, so removing someone from a group takes effect at their next sign-in.

Settings › Audit log records each sign-in, failed sign-in and lockout, each user created or disabled, each directory account created, each role change from the directory, and each sign-in refused because no group matched.

Messages people may see

MessageWhat it means
Sign-in failed. Check your username and password.Wrong username or password, or the account is disabled.
This account is locked for a few minutes after repeated failed sign-ins.Five failed sign-ins in a row. Wait 15 minutes, or ask an admin to disable and enable the account.
Your account has no cinqstack access. Ask an administrator to add you to a mapped group.Single sign-on worked, but none of the person's groups is mapped and If no group matches is set to refuse.
A local account called <name> already exists; it keeps signing in with its own password.Single sign-on found a local account with the same username. The local account is not taken over.
This account is disabled.An admin disabled the account.
The sign-in took too long or was started elsewhere; try again.The single sign-on round trip expired or was opened in another browser.
The identity provider refused: … / Token exchange failed: … / The identity token is not valid: …The provider refused the sign-in, or the client ID, secret, redirect URI or clock does not match.

Findings it raises

None. Five failed sign-ins in a row lock an account for 15 minutes. This applies to local accounts, the Field app and LDAP sign-in.

Limits