Builds the act over its dependencies.
the logger, audit log, error codes, directory slot, roles, registry and the remote PEPs group's name
Static ReadonlyATTRIBUTEThe attribute the binding is held in.
Every binding in the ambient realm, by username, sorted (#2028). Never throws.
{ name, application } per bound PEP
Asks whether an application may be bound: named, and in the realm's registry.
the application's identifier
{ ok: true }, or a refusal with its code
Clears every binding naming an application that was just deleted, and
writes an audit row for each. Called by ldap_server.js's
noteApplicationRemoved(), which both doors that delete an application
reach. Never throws into the delete.
the deleted application's identifier
which door deleted it, for the audit row
the PEPs whose binding was removed
Every PEP bound to an application, by username, sorted. Never throws.
the application's identifier
the PEPs' usernames
Removes a PEP's binding. Removing one that is not there is not a refusal: the act is idempotent, as a script that clears on every run needs. Audited when something was removed.
Optionalbody: any
name (or pep)
Optionalactor: string
who did it, for the audit row
{ ok, what, pep, application: '', previous }, or a refusal
Asks whether a PEP's entry may carry a binding, without writing
anything: there, a service account, holding REMOTE_PEPS. Also asked by
issue-pep-credential before it certifies, so a binding that would be
refused does not leave a certified key behind it.
the PEP's username
{ ok: true, entry }, or a refusal with its code
The application a PEP is bound to, or '' when it is bound to none or is nobody. Never throws.
the PEP's username
the application's identifier, or ''
Binds a PEP's service account to the application it is embedded in,
replacing any binding it had. Audited as xacml.pep.binding.
Optionalbody: any
name (or pep) and application
Optionalactor: string
who did it, for the audit row
{ ok, what, pep, application, previous }, or a refusal
StaticdefaultReturns the dependencies built from the real modules, each reached
LAZILY: roles.js, applications.js and config.js are loaded long
before an administrator binds anything.
the dependencies
StaticsetFills the directory's slot. Called by ldap/ldap_server.js at require
time. A partial object is refused whole (rule 3e).
locate, write and holders, or null to empty it
StaticsharedThe one instance over the real modules, built at first use, for a
caller that holds none (ldap_server.js's application delete).
the instance
Binds an embedded remote PEP's service account to the one application it is embedded in (#2025), and answers who is bound to what.