Split openpgp into it's own schema

wkd
meskio 5 months ago
parent cc6c6f31cc
commit d58ab0b128
Signed by: meskio
GPG Key ID: 52B8F5AC97A2DA86
  1. 1
      Dockerfile
  2. 13
      openpgp.ldif
  3. 20
      openpgp.schema
  4. 10
      sindominio.ldif
  5. 21
      sindominio.schema

@ -20,6 +20,7 @@ RUN echo "dn: olcOverlay={0}lastbind, olcDatabase={1}mdb,cn=config\nobjectClass:
COPY sindominio.schema /etc/ldap/schema/
COPY sindominio.ldif /etc/ldap/schema/
RUN slapadd -n 0 -l /etc/ldap/schema/sindominio.ldif
RUN slapadd -n 0 -l /etc/ldap/schema/openpgp.ldif
RUN chmod -R o+rw /etc/ldap/slapd.d/ && \
chmod o+rwx /etc/ldap/slapd.d/cn=config/ && \

@ -0,0 +1,13 @@
dn: cn=openpgp,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: openpgp
olcAttributeTypes: ( 1.3.6.1.4.1.42023.21 NAME 'openPGPKey'
DESC 'Clave publica OpenPGP' SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )
olcAttributeTypes: ( 1.3.6.1.4.1.42023.22 NAME 'openPGPId'
DESC 'Fingerprint de la clave OpenPGP' SUP name )
olcAttributeTypes: ( 1.3.6.1.4.1.42023.23 NAME 'openPGPExpiry'
DESC 'Fecha de expiracion de la clave OpenPGP' SUP name )
olcAttributeTypes: ( 1.3.6.1.4.1.42023.24 NAME 'openPGPKeyHash'
DESC 'WKD hash' SUP name )
olcObjectClasses: ( 1.3.6.1.4.1.42023.20 NAME 'openPGP'
DESC 'Claves OpenPGP' SUP top AUXILIARY MUST ( mail $ openPGPKey $ openPGPId $ openPGPExpiry $ openPGPKeyHash ) )

@ -0,0 +1,20 @@
attributetype ( 1.3.6.1.4.1.42023.21 NAME 'openPGPKey'
DESC 'Clave publica OpenPGP'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )
attributetype ( 1.3.6.1.4.1.42023.22 NAME 'openPGPId'
DESC 'Fingerprint de la clave OpenPGP'
SUP name)
attributetype ( 1.3.6.1.4.1.42023.23 NAME 'openPGPExpiry'
DESC 'Fecha de expiracion de la clave OpenPGP'
SUP name)
attributetype ( 1.3.6.1.4.1.42023.24 NAME 'openPGPKeyHash'
DESC 'Hash WKD'
SUP name)
objectclass ( 1.3.6.1.4.1.42023.20 NAME 'openPGP'
DESC 'Claves OpenPGP'
SUP top AUXILIARY
MUST ( mail $ openPGPkey $ openPGPid $ openPGPexpiry $ openPGPhash ) )

@ -7,13 +7,3 @@ olcAttributeTypes: ( 1.3.6.1.4.1.42023.12 NAME 'sdLocked'
DESC 'Cuenta de SinDominio bloqueada' SUP name )
olcObjectClasses: ( 1.3.6.1.4.1.42023.10 NAME 'sdPerson'
DESC 'Personas de SinDominio' SUP top AUXILIARY MUST sdRole MAY sdLocked )
olcAttributeTypes: ( 1.3.6.1.4.1.42023.21 NAME 'openPGPKey'
DESC 'Clave publica OpenPGP' SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )
olcAttributeTypes: ( 1.3.6.1.4.1.42023.22 NAME 'openPGPId'
DESC 'Fingerprint de la clave OpenPGP' SUP name )
olcAttributeTypes: ( 1.3.6.1.4.1.42023.23 NAME 'openPGPExpiry'
DESC 'Fecha de expiracion de la clave OpenPGP' SUP name )
olcAttributeTypes: ( 1.3.6.1.4.1.42023.24 NAME 'openPGPKeyHash'
DESC 'WKD hash' SUP name )
olcObjectClasses: ( 1.3.6.1.4.1.42023.20 NAME 'openPGP'
DESC 'Claves OpenPGP' SUP top AUXILIARY MUST ( mail $ openPGPKey $ openPGPId $ openPGPExpiry $ openPGPKeyHash ) )

@ -11,24 +11,3 @@ objectclass ( 1.3.6.1.4.1.42023.10 NAME 'sdPerson'
SUP top AUXILIARY
MUST sdRole
MAY sdLocked)
attributetype ( 1.3.6.1.4.1.42023.21 NAME 'openPGPKey'
DESC 'Clave publica OpenPGP'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.40 )
attributetype ( 1.3.6.1.4.1.42023.22 NAME 'openPGPId'
DESC 'Fingerprint de la clave OpenPGP'
SUP name)
attributetype ( 1.3.6.1.4.1.42023.23 NAME 'openPGPExpiry'
DESC 'Fecha de expiracion de la clave OpenPGP'
SUP name)
attributetype ( 1.3.6.1.4.1.42023.24 NAME 'openPGPKeyHash'
DESC 'Hash WKD'
SUP name)
objectclass ( 1.3.6.1.4.1.42023.20 NAME 'openPGP'
DESC 'Claves OpenPGP'
SUP top AUXILIARY
MUST ( mail $ openPGPkey $ openPGPid $ openPGPexpiry $ openPGPhash ) )

Loading…
Cancel
Save