feature: the PKI's schema is a file of its own that another slapd loads, a certificate can carry the name an application files it under, and the members of pki-managers manage the PKI with its keys.
Release / release (push) Successful in 24s
Release / release (push) Successful in 24s
This commit is contained in:
1 parent
6911d16fa3
commit
b61d1593b7
14 files changed
+378
-169
No files matched your search
@@ -41,6 +41,7 @@ src/usr/lib/linux-manager/upgrade usr/lib/linux-manager/
|
||||
src/usr/lib/linux-manager/linuxmanager_platforms/*.py usr/lib/linux-manager/linuxmanager_platforms/
|
||||
src/usr/share/linux-manager/templates/* usr/share/linux-manager/templates/
|
||||
src/usr/share/linux-manager/sql/* usr/share/linux-manager/sql/
|
||||
src/usr/share/linux-manager/schema/* usr/share/linux-manager/schema/
|
||||
src/usr/share/bash-completion/completions/*.bash usr/share/bash-completion/completions/
|
||||
src/usr/lib/systemd/system/caddy.service.d/linux-manager.conf usr/lib/systemd/system/caddy.service.d/
|
||||
src/usr/share/doc/linux-manager/linux-manager.json.example usr/share/doc/linux-manager/
|
||||
|
||||
@@ -17,7 +17,9 @@ CONSOLE_UID_MIN and the gidNumber of the local group CONSOLE_GROUP; nslcd serves
|
||||
linuxManagerConsoleLogin TRUE to the system over the local socket.
|
||||
|
||||
ou=pki holds the server's PKI (linuxmanager_pki): an entry per CA, and under it an entry per
|
||||
certificate the CA issued. Private keys are readable by root alone, the database's root DN.
|
||||
certificate the CA issued. Private keys are readable by root, the database's root DN, and by the
|
||||
members of the group PKI_GROUP, which also write ou=pki: an application that keeps its CAs there,
|
||||
such as Simple CA, binds as a service account in that group.
|
||||
|
||||
ou=roles holds the roles of the resources of the OpenID Provider: an entry per role,
|
||||
cn=<resource>:<role>, whose members are the groups, users and service accounts it is assigned to.
|
||||
@@ -32,6 +34,7 @@ import secrets
|
||||
import ldap
|
||||
import ldap.modlist
|
||||
import ldap.sasl
|
||||
import ldif
|
||||
|
||||
URI = 'ldapi:///'
|
||||
#: The local socket ldapi:/// names, which slapd listens on.
|
||||
@@ -64,102 +67,15 @@ LOCKOUT_SECONDS = 900
|
||||
#: The overlays of the database, in the order they are configured.
|
||||
OVERLAYS = ('ppolicy', 'otp')
|
||||
|
||||
#: The package's own schema, under the LDAP arc of the Linux Manager OID arc (OID-REGISTRY.txt):
|
||||
#: attribute types under .1 and object classes under .2. linuxManagerAccount, auxiliary, adds properties of the
|
||||
#: package to a user of either kind: mail, for a Manager-only account, linuxManagerScope,
|
||||
#: authorization scopes, of which service marks a service account, displayName and
|
||||
#: description, the labels of a service account, and linuxManagerConsoleLogin and
|
||||
#: linuxManagerConsoleAccount, whether the user may use a console and the local account it runs as,
|
||||
#: without which it runs as the user's own posixAccount, and linuxManagerWireGuardPeer, each a
|
||||
#: WireGuard peer of the user as "<public key> <IP>[,<IP>...]", and linuxManagerPasskey, each a
|
||||
#: passkey of the user as JSON (linuxmanager_passkeys). A service account with linuxManagerRedirectUri
|
||||
#: is a client of the OpenID Provider (linuxmanager_oidc): the URIs it is sent back to after a sign-in
|
||||
#: and, linuxManagerPostLogoutRedirectUri, after a sign-out, and linuxManagerAllowedGroup, the DNs of the
|
||||
#: groups whose members may sign in to it; linuxManagerGrantType, the further grants it may use,
|
||||
#: linuxManagerPublicClient, whether it has no secret, and linuxManagerClientScope, the scopes of
|
||||
#: resources it may ask for, as <resource>:<scope>. A service account with linuxManagerResourceScope
|
||||
#: is a resource of the OpenID Provider with those scopes. linuxManagerRole is a role of a resource,
|
||||
#: named cn=<resource>:<role>, with the DNs of the groups and accounts it is assigned to in
|
||||
#: member. linuxManagerAuthority is a CA of the PKI: its
|
||||
#: certificate and CRL (cACertificate and certificateRevocationList of RFC 4523), its key, the
|
||||
#: CSR it waits with for its certificate, the number of its last CRL, where the CRL came from,
|
||||
#: and when it was retired; the root also holds the Simple CA token, linuxManagerToken, and the
|
||||
#: name of the Simple CA issuing CA that signs with it, linuxManagerUpstreamName.
|
||||
#: linuxManagerHostCertificate, cn=https, is the server's HTTPS certificate when no ACME CA or
|
||||
#: issuing CA gives it: the certificate with its chain, its key, the CSR waiting for a certificate
|
||||
#: of another CA and that CSR's key, and its kind, self-signed or external. linuxManagerCertificate is a certificate a CA issued, named by its
|
||||
#: serial number: the certificate, the key the server keeps for its own and the users'
|
||||
#: certificates, its kind, template, names and expiry, and its revocation.
|
||||
SCHEMA_OID = '1.3.6.1.4.1.67380.10.1.2'
|
||||
SCHEMA_NAME = 'linux-manager'
|
||||
_STRING = 'EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} SINGLE-VALUE'
|
||||
_TIME = 'EQUALITY generalizedTimeMatch ORDERING generalizedTimeOrderingMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24 SINGLE-VALUE'
|
||||
_OCTETS = 'EQUALITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 SINGLE-VALUE'
|
||||
SCHEMA_ATTRIBUTE_TYPES = (
|
||||
f"( {SCHEMA_OID}.1.1 NAME 'linuxManagerScope' DESC 'Linux Manager: an authorization scope of the account' "
|
||||
"EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )",
|
||||
f"( {SCHEMA_OID}.1.2 NAME 'linuxManagerPrivateKey' DESC 'Linux Manager: a private key, PEM' {_OCTETS} )",
|
||||
f"( {SCHEMA_OID}.1.3 NAME 'linuxManagerCertificateRequest' DESC 'Linux Manager: the CSR of a CA, PEM' {_OCTETS} )",
|
||||
f"( {SCHEMA_OID}.1.4 NAME 'linuxManagerCRLNumber' DESC 'Linux Manager: the number of the last CRL of a CA' "
|
||||
"EQUALITY integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )",
|
||||
f"( {SCHEMA_OID}.1.5 NAME 'linuxManagerCRLSource' DESC 'Linux Manager: signed or uploaded, where the CRL of a CA came from' {_STRING} )",
|
||||
f"( {SCHEMA_OID}.1.6 NAME 'linuxManagerRetired' DESC 'Linux Manager: when a CA was retired' {_TIME} )",
|
||||
f"( {SCHEMA_OID}.1.7 NAME 'linuxManagerKind' DESC 'Linux Manager: ca, router, user or external, the kind of a certificate' {_STRING} )",
|
||||
f"( {SCHEMA_OID}.1.8 NAME 'linuxManagerTemplate' DESC 'Linux Manager: the template of a certificate' {_STRING} )",
|
||||
f"( {SCHEMA_OID}.1.9 NAME 'linuxManagerSubjectAltName' DESC 'Linux Manager: a subject alternative name of a certificate' "
|
||||
"EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )",
|
||||
f"( {SCHEMA_OID}.1.10 NAME 'linuxManagerNotAfter' DESC 'Linux Manager: when a certificate expires' {_TIME} )",
|
||||
f"( {SCHEMA_OID}.1.11 NAME 'linuxManagerRevoked' DESC 'Linux Manager: when a certificate was revoked' {_TIME} )",
|
||||
f"( {SCHEMA_OID}.1.12 NAME 'linuxManagerRevocationReason' DESC 'Linux Manager: why a certificate was revoked' {_STRING} )",
|
||||
f"( {SCHEMA_OID}.1.13 NAME 'linuxManagerConsoleLogin' DESC 'Linux Manager: whether the user may use a console' "
|
||||
"EQUALITY booleanMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )",
|
||||
f"( {SCHEMA_OID}.1.14 NAME 'linuxManagerConsoleAccount' DESC 'Linux Manager: the local account the console of the user runs as' "
|
||||
f"{_STRING} )",
|
||||
f"( {SCHEMA_OID}.1.15 NAME 'linuxManagerWireGuardPeer' DESC 'Linux Manager: a WireGuard peer of the user, its public key and IPs' "
|
||||
"EQUALITY caseExactMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )",
|
||||
f"( {SCHEMA_OID}.1.16 NAME 'linuxManagerPasskey' DESC 'Linux Manager: a passkey of the user, its credential as JSON' "
|
||||
"EQUALITY caseExactMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{4096} )",
|
||||
f"( {SCHEMA_OID}.1.17 NAME 'linuxManagerRedirectUri' DESC 'Linux Manager: a redirect URI of an OpenID Connect client' "
|
||||
"EQUALITY caseExactMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )",
|
||||
f"( {SCHEMA_OID}.1.18 NAME 'linuxManagerPostLogoutRedirectUri' DESC 'Linux Manager: a post-logout redirect URI of an "
|
||||
"OpenID Connect client' EQUALITY caseExactMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{1024} )",
|
||||
f"( {SCHEMA_OID}.1.19 NAME 'linuxManagerAllowedGroup' DESC 'Linux Manager: a group whose members may sign in to an "
|
||||
"OpenID Connect client' EQUALITY distinguishedNameMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.12 )",
|
||||
f"( {SCHEMA_OID}.1.20 NAME 'linuxManagerGrantType' DESC 'Linux Manager: a grant an OpenID Connect client may use besides "
|
||||
"the authorization code' EQUALITY caseExactMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{64} )",
|
||||
f"( {SCHEMA_OID}.1.21 NAME 'linuxManagerPublicClient' DESC 'Linux Manager: whether an OpenID Connect client has no secret' "
|
||||
"EQUALITY booleanMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )",
|
||||
f"( {SCHEMA_OID}.1.22 NAME 'linuxManagerClientScope' DESC 'Linux Manager: a scope of a resource an OpenID Connect client "
|
||||
"may ask for' EQUALITY caseExactMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )",
|
||||
f"( {SCHEMA_OID}.1.23 NAME 'linuxManagerResourceScope' DESC 'Linux Manager: a scope of a resource of the OpenID Provider' "
|
||||
"EQUALITY caseExactMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{64} )",
|
||||
f"( {SCHEMA_OID}.1.24 NAME 'linuxManagerToken' DESC 'Linux Manager: the Simple CA token that signs the issuing CAs' "
|
||||
f"{_OCTETS} )",
|
||||
f"( {SCHEMA_OID}.1.25 NAME 'linuxManagerUpstreamName' DESC 'Linux Manager: the Simple CA issuing CA of the token' "
|
||||
f"{_STRING} )",
|
||||
f"( {SCHEMA_OID}.1.26 NAME 'linuxManagerCertificateChain' DESC 'Linux Manager: a certificate and its chain, PEM' "
|
||||
f"{_OCTETS} )",
|
||||
f"( {SCHEMA_OID}.1.27 NAME 'linuxManagerRequestKey' DESC 'Linux Manager: the private key of a CSR, PEM' {_OCTETS} )",
|
||||
)
|
||||
SCHEMA_OBJECT_CLASSES = (
|
||||
f"( {SCHEMA_OID}.2.1 NAME 'linuxManagerAccount' DESC 'Linux Manager: properties of a user or a Manager-only account' "
|
||||
"SUP top AUXILIARY MAY ( mail $ linuxManagerScope $ displayName $ description $ linuxManagerConsoleLogin $ "
|
||||
"linuxManagerConsoleAccount $ linuxManagerWireGuardPeer $ linuxManagerPasskey $ linuxManagerRedirectUri $ "
|
||||
"linuxManagerPostLogoutRedirectUri $ linuxManagerAllowedGroup $ linuxManagerGrantType $ linuxManagerPublicClient $ "
|
||||
"linuxManagerClientScope $ linuxManagerResourceScope ) )",
|
||||
f"( {SCHEMA_OID}.2.2 NAME 'linuxManagerAuthority' DESC 'Linux Manager: a CA of the PKI' SUP top STRUCTURAL MUST cn "
|
||||
"MAY ( cACertificate $ certificateRevocationList $ linuxManagerPrivateKey $ linuxManagerCertificateRequest $ "
|
||||
"linuxManagerCRLNumber $ linuxManagerCRLSource $ linuxManagerRetired $ linuxManagerToken $ "
|
||||
"linuxManagerUpstreamName ) )",
|
||||
f"( {SCHEMA_OID}.2.3 NAME 'linuxManagerCertificate' DESC 'Linux Manager: a certificate a CA of the PKI issued' SUP top "
|
||||
"STRUCTURAL MUST serialNumber MAY ( cn $ userCertificate $ linuxManagerPrivateKey $ linuxManagerKind $ linuxManagerTemplate $ "
|
||||
"linuxManagerSubjectAltName $ linuxManagerNotAfter $ linuxManagerRevoked $ linuxManagerRevocationReason ) )",
|
||||
f"( {SCHEMA_OID}.2.4 NAME 'linuxManagerRole' DESC 'Linux Manager: a role of a resource of the OpenID Provider' SUP top "
|
||||
"STRUCTURAL MUST cn MAY ( description $ member ) )",
|
||||
f"( {SCHEMA_OID}.2.5 NAME 'linuxManagerHostCertificate' DESC 'Linux Manager: a certificate of the server kept with "
|
||||
"its key' SUP top STRUCTURAL MUST cn MAY ( linuxManagerCertificateChain $ linuxManagerPrivateKey $ "
|
||||
"linuxManagerCertificateRequest $ linuxManagerRequestKey $ linuxManagerKind ) )",
|
||||
)
|
||||
#: The package's schema, two schema entries of cn=config, each loaded from its LDIF file (ldapadd's form): the PKI,
|
||||
#: linux-manager-pki, which a slapd without the package loads alike, and the accounts, the clients and resources of
|
||||
#: the OpenID Provider and their roles, linux-manager. The files describe their attribute types and object classes.
|
||||
SCHEMA_DIR = pathlib.Path('/usr/share/linux-manager/schema')
|
||||
SCHEMA_FILES = (SCHEMA_DIR / 'linux-manager-pki.ldif', SCHEMA_DIR / 'linux-manager.ldif')
|
||||
|
||||
#: The group whose members manage the PKI, ou=pki with the keys; it is made when its first member is added.
|
||||
PKI_GROUP = 'pki-managers'
|
||||
PKI_MANAGERS = f'cn={PKI_GROUP},{GROUPS}'
|
||||
|
||||
#: The TOTP parameters: digits, the OID of HMAC-SHA1, seconds per time step, and the time steps accepted before and after now.
|
||||
TOTP_DIGITS = 6
|
||||
@@ -171,7 +87,7 @@ TOTP_WINDOW = 1
|
||||
DISABLED = '000001010000Z'
|
||||
|
||||
#: The indexes of the database.
|
||||
INDEXES = ('objectClass eq', 'uid eq', 'uidNumber eq', 'linuxManagerConsoleLogin eq')
|
||||
INDEXES = ('objectClass eq', 'uid eq', 'uidNumber eq', 'linuxManagerConsoleLogin eq', 'linuxManagerCertificateName eq')
|
||||
|
||||
#: The POSIX accounts of console login (linuxmanager_users.console): the lowest uidNumber, which nslcd's nss_min_uid
|
||||
#: matches, the local group that is their primary group and grants sudo, the shell and the parent of their homes.
|
||||
@@ -182,12 +98,14 @@ CONSOLE_HOMES = '/home'
|
||||
|
||||
#: The ACLs of the database, in order.
|
||||
ACCESS = (
|
||||
'to attrs=linuxManagerPrivateKey,linuxManagerToken,linuxManagerRequestKey by * none',
|
||||
f'to attrs=linuxManagerPrivateKey,linuxManagerToken,linuxManagerRequestKey by group.exact="{PKI_MANAGERS}" manage '
|
||||
'by * none',
|
||||
f'to attrs=userPassword by dn.exact="{MANAGER}" =wx by self =wx by anonymous auth by * none',
|
||||
f'to attrs=oathSecret by dn.exact="{MANAGER}" =w by * none',
|
||||
f'to dn.subtree="{USERS}" by dn.exact="{MANAGER}" manage by * read',
|
||||
f'to dn.subtree="{GROUPS}" by dn.exact="{MANAGER}" manage by * read',
|
||||
f'to dn.subtree="{ROLES}" by dn.exact="{MANAGER}" manage by * read',
|
||||
f'to dn.subtree="{PKI}" by group.exact="{PKI_MANAGERS}" manage by * read',
|
||||
'to * by * read',
|
||||
)
|
||||
|
||||
@@ -236,27 +154,32 @@ def _ensure_modules(connection):
|
||||
|
||||
|
||||
def _ensure_schema(connection):
|
||||
"""Add the package's schema to cn=config when missing, else add the definitions it lacks; a definition that differs
|
||||
from the one of the same OID replaces the whole list of its kind."""
|
||||
found = connection.search_s('cn=schema,cn=config', ldap.SCOPE_ONELEVEL, f'(cn=*{SCHEMA_NAME})',
|
||||
['olcAttributeTypes', 'olcObjectClasses'])
|
||||
attributes = {'olcAttributeTypes': list(SCHEMA_ATTRIBUTE_TYPES), 'olcObjectClasses': list(SCHEMA_OBJECT_CLASSES)}
|
||||
if not found:
|
||||
connection.add_s(f'cn={SCHEMA_NAME},cn=schema,cn=config', ldap.modlist.addModlist(
|
||||
dict({name: [value.encode() for value in values] for name, values in attributes.items()},
|
||||
objectClass=[b'olcSchemaConfig'], cn=[SCHEMA_NAME.encode()])))
|
||||
return
|
||||
dn, current = found[0]
|
||||
for name, wanted in attributes.items():
|
||||
present = unordered(current.get(name, []))
|
||||
oids = {value.split()[1] for value in present}
|
||||
missing = [value for value in wanted if value not in present]
|
||||
if not missing:
|
||||
"""Add each schema of SCHEMA_FILES to cn=config when missing, else add the definitions it lacks; a definition that
|
||||
differs from the one of the same OID replaces the whole list of its kind."""
|
||||
for path in SCHEMA_FILES:
|
||||
with open(path, encoding='utf-8') as handle:
|
||||
records = ldif.LDIFRecordList(handle)
|
||||
records.parse()
|
||||
dn, wanted = records.all_records[0]
|
||||
name = wanted['cn'][0]
|
||||
found = [(found_dn, current) for found_dn, current in connection.search_s(
|
||||
'cn=schema,cn=config', ldap.SCOPE_ONELEVEL, f'(cn=*{name.decode()})', ['cn', 'olcAttributeTypes', 'olcObjectClasses'])
|
||||
if ORDER.sub(b'', current['cn'][0]) == name]
|
||||
if not found:
|
||||
connection.add_s(dn, ldap.modlist.addModlist(wanted))
|
||||
continue
|
||||
if any(value.split()[1] in oids for value in missing):
|
||||
connection.modify_s(dn, [(ldap.MOD_REPLACE, name, [value.encode() for value in wanted])])
|
||||
else:
|
||||
connection.modify_s(dn, [(ldap.MOD_ADD, name, [value.encode() for value in missing])])
|
||||
found_dn, current = found[0]
|
||||
for kind in ('olcAttributeTypes', 'olcObjectClasses'):
|
||||
values = [value.decode() for value in wanted.get(kind, [])]
|
||||
present = unordered(current.get(kind, []))
|
||||
oids = {value.split()[1] for value in present}
|
||||
missing = [value for value in values if value not in present]
|
||||
if not missing:
|
||||
continue
|
||||
if any(value.split()[1] in oids for value in missing):
|
||||
connection.modify_s(found_dn, [(ldap.MOD_REPLACE, kind, [value.encode() for value in values])])
|
||||
else:
|
||||
connection.modify_s(found_dn, [(ldap.MOD_ADD, kind, [value.encode() for value in missing])])
|
||||
|
||||
|
||||
def _ensure_password_hash(connection):
|
||||
|
||||
@@ -33,7 +33,9 @@ optional description and at least one member; a group cannot be empty, so the la
|
||||
cannot leave it and a user who is the last member of a group cannot be removed. ADMIN_GROUP grants the management of
|
||||
the server, the allowed groups of the OpenID Provider's clients who may sign in to them, and the editors group of a web
|
||||
site who may change its files (linuxmanager_sites); renaming a group renames it in those, and a group a client allows or a
|
||||
site has cannot be removed.
|
||||
site has cannot be removed. The members of linuxmanager_ldap.PKI_GROUP manage the PKI in ou=pki with its keys,
|
||||
which an application that keeps its CAs there binds for as a service account; the group is made with its first member,
|
||||
and renaming it takes that access away.
|
||||
|
||||
A VPN user may have WireGuard peers, each a device with its public key and its IPs, in
|
||||
linuxManagerWireGuardPeer; linux-manager-setup writes a [Peer] of wg0.conf for each peer of a user who
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
# Linux Manager's PKI schema: CAs, the certificates they issued and the server's host certificates,
|
||||
# with their keys. It needs only the core schema. A slapd without Linux Manager loads it with:
|
||||
#
|
||||
# ldapadd -Y EXTERNAL -H ldapi:/// -f linux-manager-pki.ldif
|
||||
#
|
||||
# OIDs: the LDAP arc 1.3.6.1.4.1.67380.10.1.2 of OID-REGISTRY.txt, attribute types under .1 and
|
||||
# object classes under .2.
|
||||
|
||||
dn: cn=linux-manager-pki,cn=schema,cn=config
|
||||
objectClass: olcSchemaConfig
|
||||
cn: linux-manager-pki
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.2 NAME
|
||||
'linuxManagerPrivateKey' DESC 'Linux Manager: a private key, PEM' EQUALITY
|
||||
octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 SINGLE-VALUE )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.3 NAME
|
||||
'linuxManagerCertificateRequest' DESC 'Linux Manager: the CSR of a CA, PEM'
|
||||
EQUALITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 SINGLE-VALUE
|
||||
)
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.4 NAME 'linuxManagerCRLNumber'
|
||||
DESC 'Linux Manager: the number of the last CRL of a CA' EQUALITY
|
||||
integerMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.5 NAME 'linuxManagerCRLSource'
|
||||
DESC 'Linux Manager: signed or uploaded, where the CRL of a CA came from'
|
||||
EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256}
|
||||
SINGLE-VALUE )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.6 NAME 'linuxManagerRetired'
|
||||
DESC 'Linux Manager: when a CA was retired' EQUALITY generalizedTimeMatch
|
||||
ORDERING generalizedTimeOrderingMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.24
|
||||
SINGLE-VALUE )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.7 NAME 'linuxManagerKind' DESC
|
||||
'Linux Manager: ca, router, user or external, the kind of a certificate'
|
||||
EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256}
|
||||
SINGLE-VALUE )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.8 NAME 'linuxManagerTemplate'
|
||||
DESC 'Linux Manager: the template of a certificate' EQUALITY caseIgnoreMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} SINGLE-VALUE )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.9 NAME
|
||||
'linuxManagerSubjectAltName' DESC 'Linux Manager: a subject alternative name
|
||||
of a certificate' EQUALITY caseIgnoreMatch SYNTAX
|
||||
1.3.6.1.4.1.1466.115.121.1.15{256} )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.10 NAME 'linuxManagerNotAfter'
|
||||
DESC 'Linux Manager: when a certificate expires' EQUALITY
|
||||
generalizedTimeMatch ORDERING generalizedTimeOrderingMatch SYNTAX
|
||||
1.3.6.1.4.1.1466.115.121.1.24 SINGLE-VALUE )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.11 NAME 'linuxManagerRevoked'
|
||||
DESC 'Linux Manager: when a certificate was revoked' EQUALITY
|
||||
generalizedTimeMatch ORDERING generalizedTimeOrderingMatch SYNTAX
|
||||
1.3.6.1.4.1.1466.115.121.1.24 SINGLE-VALUE )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.12 NAME
|
||||
'linuxManagerRevocationReason' DESC 'Linux Manager: why a certificate was
|
||||
revoked' EQUALITY caseIgnoreMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256}
|
||||
SINGLE-VALUE )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.24 NAME 'linuxManagerToken'
|
||||
DESC 'Linux Manager: the Simple CA token that signs the issuing CAs'
|
||||
EQUALITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 SINGLE-VALUE
|
||||
)
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.25 NAME
|
||||
'linuxManagerUpstreamName' DESC 'Linux Manager: the Simple CA issuing CA of
|
||||
the token' EQUALITY caseIgnoreMatch SYNTAX
|
||||
1.3.6.1.4.1.1466.115.121.1.15{256} SINGLE-VALUE )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.26 NAME
|
||||
'linuxManagerCertificateChain' DESC 'Linux Manager: a certificate and its
|
||||
chain, PEM' EQUALITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40
|
||||
SINGLE-VALUE )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.27 NAME
|
||||
'linuxManagerRequestKey' DESC 'Linux Manager: the private key of a CSR, PEM'
|
||||
EQUALITY octetStringMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 SINGLE-VALUE
|
||||
)
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.28 NAME
|
||||
'linuxManagerCertificateName' DESC 'Linux Manager: the name a certificate is
|
||||
filed under by the application that keeps it' EQUALITY caseExactMatch SYNTAX
|
||||
1.3.6.1.4.1.1466.115.121.1.15{256} SINGLE-VALUE )
|
||||
olcObjectClasses: ( 1.3.6.1.4.1.67380.10.1.2.2.2 NAME 'linuxManagerAuthority'
|
||||
DESC 'Linux Manager: a CA of the PKI' SUP top STRUCTURAL MUST cn MAY (
|
||||
cACertificate $ certificateRevocationList $ linuxManagerPrivateKey $
|
||||
linuxManagerCertificateRequest $ linuxManagerCRLNumber $
|
||||
linuxManagerCRLSource $ linuxManagerRetired $ linuxManagerToken $
|
||||
linuxManagerUpstreamName ) )
|
||||
olcObjectClasses: ( 1.3.6.1.4.1.67380.10.1.2.2.3 NAME
|
||||
'linuxManagerCertificate' DESC 'Linux Manager: a certificate a CA of the PKI
|
||||
issued' SUP top STRUCTURAL MUST serialNumber MAY ( cn $ userCertificate $
|
||||
linuxManagerPrivateKey $ linuxManagerKind $ linuxManagerTemplate $
|
||||
linuxManagerSubjectAltName $ linuxManagerNotAfter $ linuxManagerRevoked $
|
||||
linuxManagerRevocationReason $ linuxManagerCertificateName ) )
|
||||
olcObjectClasses: ( 1.3.6.1.4.1.67380.10.1.2.2.5 NAME
|
||||
'linuxManagerHostCertificate' DESC 'Linux Manager: a certificate of the
|
||||
server kept with its key' SUP top STRUCTURAL MUST cn MAY (
|
||||
linuxManagerCertificateChain $ linuxManagerPrivateKey $
|
||||
linuxManagerCertificateRequest $ linuxManagerRequestKey $ linuxManagerKind )
|
||||
)
|
||||
@@ -0,0 +1,67 @@
|
||||
# Linux Manager's schema of its accounts, of the clients and resources of its OpenID Provider, and
|
||||
# of the roles of those resources; the PKI is in linux-manager-pki.ldif.
|
||||
#
|
||||
# OIDs: the LDAP arc 1.3.6.1.4.1.67380.10.1.2 of OID-REGISTRY.txt, attribute types under .1 and
|
||||
# object classes under .2.
|
||||
|
||||
dn: cn=linux-manager,cn=schema,cn=config
|
||||
objectClass: olcSchemaConfig
|
||||
cn: linux-manager
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.1 NAME 'linuxManagerScope'
|
||||
DESC 'Linux Manager: an authorization scope of the account' EQUALITY
|
||||
caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX
|
||||
1.3.6.1.4.1.1466.115.121.1.15{256} )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.13 NAME
|
||||
'linuxManagerConsoleLogin' DESC 'Linux Manager: whether the user may use a
|
||||
console' EQUALITY booleanMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
|
||||
SINGLE-VALUE )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.14 NAME
|
||||
'linuxManagerConsoleAccount' DESC 'Linux Manager: the local account the
|
||||
console of the user runs as' EQUALITY caseIgnoreMatch SYNTAX
|
||||
1.3.6.1.4.1.1466.115.121.1.15{256} SINGLE-VALUE )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.15 NAME
|
||||
'linuxManagerWireGuardPeer' DESC 'Linux Manager: a WireGuard peer of the
|
||||
user, its public key and IPs' EQUALITY caseExactMatch SYNTAX
|
||||
1.3.6.1.4.1.1466.115.121.1.15{1024} )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.16 NAME 'linuxManagerPasskey'
|
||||
DESC 'Linux Manager: a passkey of the user, its credential as JSON' EQUALITY
|
||||
caseExactMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{4096} )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.17 NAME
|
||||
'linuxManagerRedirectUri' DESC 'Linux Manager: a redirect URI of an OpenID
|
||||
Connect client' EQUALITY caseExactMatch SYNTAX
|
||||
1.3.6.1.4.1.1466.115.121.1.15{1024} )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.18 NAME
|
||||
'linuxManagerPostLogoutRedirectUri' DESC 'Linux Manager: a post-logout
|
||||
redirect URI of an OpenID Connect client' EQUALITY caseExactMatch SYNTAX
|
||||
1.3.6.1.4.1.1466.115.121.1.15{1024} )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.19 NAME
|
||||
'linuxManagerAllowedGroup' DESC 'Linux Manager: a group whose members may
|
||||
sign in to an OpenID Connect client' EQUALITY distinguishedNameMatch SYNTAX
|
||||
1.3.6.1.4.1.1466.115.121.1.12 )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.20 NAME
|
||||
'linuxManagerGrantType' DESC 'Linux Manager: a grant an OpenID Connect
|
||||
client may use besides the authorization code' EQUALITY caseExactMatch
|
||||
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{64} )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.21 NAME
|
||||
'linuxManagerPublicClient' DESC 'Linux Manager: whether an OpenID Connect
|
||||
client has no secret' EQUALITY booleanMatch SYNTAX
|
||||
1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.22 NAME
|
||||
'linuxManagerClientScope' DESC 'Linux Manager: a scope of a resource an
|
||||
OpenID Connect client may ask for' EQUALITY caseExactMatch SYNTAX
|
||||
1.3.6.1.4.1.1466.115.121.1.15{128} )
|
||||
olcAttributeTypes: ( 1.3.6.1.4.1.67380.10.1.2.1.23 NAME
|
||||
'linuxManagerResourceScope' DESC 'Linux Manager: a scope of a resource of
|
||||
the OpenID Provider' EQUALITY caseExactMatch SYNTAX
|
||||
1.3.6.1.4.1.1466.115.121.1.15{64} )
|
||||
olcObjectClasses: ( 1.3.6.1.4.1.67380.10.1.2.2.1 NAME 'linuxManagerAccount'
|
||||
DESC 'Linux Manager: properties of a user or a Manager-only account' SUP top
|
||||
AUXILIARY MAY ( mail $ linuxManagerScope $ displayName $ description $
|
||||
linuxManagerConsoleLogin $ linuxManagerConsoleAccount $
|
||||
linuxManagerWireGuardPeer $ linuxManagerPasskey $ linuxManagerRedirectUri $
|
||||
linuxManagerPostLogoutRedirectUri $ linuxManagerAllowedGroup $
|
||||
linuxManagerGrantType $ linuxManagerPublicClient $ linuxManagerClientScope $
|
||||
linuxManagerResourceScope ) )
|
||||
olcObjectClasses: ( 1.3.6.1.4.1.67380.10.1.2.2.4 NAME 'linuxManagerRole' DESC
|
||||
'Linux Manager: a role of a resource of the OpenID Provider' SUP top
|
||||
STRUCTURAL MUST cn MAY ( description $ member ) )
|
||||
Reference in new issue
Block a user