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
@@ -497,14 +497,37 @@ A CA entry (class `linuxManagerAuthority`) has its certificate (`cACertificate;b
|
||||
(`certificateRevocationList;binary`) and CRL number. A certificate entry (class
|
||||
`linuxManagerCertificate`) has the certificate (`userCertificate;binary`), its kind (`ca`, `router`,
|
||||
`user` or `external`), template, names, expiry and revocation, and for the server's and the users'
|
||||
certificates the key. A user's certificate is also the `userCertificate` of the user's entry. No
|
||||
account of the directory reads a key (`linuxManagerPrivateKey`); only root does, through the local
|
||||
socket. `slapcat` writes the whole PKI into every backup with the users.
|
||||
certificates the key. A user's certificate is also the `userCertificate` of the user's entry. A
|
||||
certificate may also have `linuxManagerCertificateName`, the name an application other than Linux
|
||||
Manager files it under; Linux Manager does not set it. Keys (`linuxManagerPrivateKey`) are read by
|
||||
root, through the local socket, and by the members of the group `pki-managers`; no other account
|
||||
reads them. `slapcat` writes the whole PKI into every backup with the users.
|
||||
|
||||
```sh
|
||||
ldapsearch -Q -Y EXTERNAL -H ldapi:/// -b ou=pki,dc=linux-manager,dc=local -s one cn
|
||||
```
|
||||
|
||||
### The PKI schema in another application
|
||||
|
||||
The PKI's classes and attributes are a schema of their own, `linux-manager-pki`, in
|
||||
`/usr/share/linux-manager/schema/linux-manager-pki.ldif`; it needs only slapd's core schema. An
|
||||
application that keeps its CAs in LDAP, such as Simple CA, uses it in one of two ways:
|
||||
|
||||
- **On the server's slapd.** The application binds as a service account of the server, which is a
|
||||
member of `pki-managers`; the members of that group read and write `ou=pki` with its keys. The
|
||||
group is made with its first member, and renaming it takes the access away:
|
||||
|
||||
```sh
|
||||
linux-manager-group add pki-managers --member simple-ca
|
||||
```
|
||||
|
||||
- **On a slapd without Linux Manager.** Its administrator loads the schema and grants the identity
|
||||
the application binds as, such as the database's administrator, the access it needs:
|
||||
|
||||
```sh
|
||||
ldapadd -Y EXTERNAL -H ldapi:/// -f linux-manager-pki.ldif
|
||||
```
|
||||
|
||||
### The CAs
|
||||
|
||||
The root signs the issuing CAs only (path length 1), and the issuing CAs sign the certificates
|
||||
@@ -773,8 +796,10 @@ is switched on:
|
||||
password;
|
||||
- `ou=users` holds one entry per user, named by `uid`: an `inetOrgPerson` for a VPN user, an
|
||||
`account` for a Manager-only account (see Managing users);
|
||||
- the package's own schema, `cn=linux-manager,cn=schema,cn=config`, under the OID
|
||||
`1.3.6.1.4.1.67380.10.1.2`, listed in `OID-REGISTRY.txt`: the auxiliary class
|
||||
- the package's own schema under the OID `1.3.6.1.4.1.67380.10.1.2`, listed in
|
||||
`OID-REGISTRY.txt`, in two schema entries loaded from `/usr/share/linux-manager/schema/`:
|
||||
`cn=linux-manager-pki,cn=schema,cn=config`, the PKI (see Certificates), and
|
||||
`cn=linux-manager,cn=schema,cn=config`, the accounts, with the auxiliary class
|
||||
`linuxManagerAccount`, which Manager-only and service accounts have, and the attribute
|
||||
`linuxManagerScope`, authorization scopes, of which `service` marks a service account;
|
||||
`displayName` and `description` are the display name and the description of a service
|
||||
|
||||
Reference in new issue
Block a user