diff --git a/schema/nextcloud.conf b/schema/nextcloud.conf new file mode 100644 index 0000000..4df3cb3 --- /dev/null +++ b/schema/nextcloud.conf @@ -0,0 +1 @@ +include nextcloud.schema diff --git a/schema/nextcloud.ldif b/schema/nextcloud.ldif new file mode 100644 index 0000000..4630ed0 --- /dev/null +++ b/schema/nextcloud.ldif @@ -0,0 +1,14 @@ +dn: cn=nextcloud,cn=schema,cn=config +objectClass: olcSchemaConfig +cn: nextcloud +olcAttributeTypes: {0}( 1.9.0.0.0.0.0.1 NAME 'nextcloudQuota' DESC 'defines + how much disk space is available for the user' EQUALITY caseIgnoreMatch SUB + STR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-V + ALUE ) +olcAttributeTypes: {1}( 1.9.0.0.0.0.0.2 NAME 'nextcloudEnabled' DESC 'whethe + r user or group should be available in Nextcloud' EQUALITY caseIgnoreMatch + SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGL + E-VALUE ) +olcObjectClasses: {0}( 1.9.0.0.0.0.1.1 NAME 'nextcloudUser' DESC 'A Nextclou + d user' SUP top AUXILIARY MUST cn MAY ( nextcloudEnabled $ nextcloudQuota ) + ) \ No newline at end of file diff --git a/schema/nextcloud.schema b/schema/nextcloud.schema new file mode 100644 index 0000000..c0434bf --- /dev/null +++ b/schema/nextcloud.schema @@ -0,0 +1,22 @@ +attributetype ( 1.9.0.0.0.0.0.1 + NAME 'nextcloudQuota' + DESC 'defines how much disk space is available for the user' + EQUALITY caseIgnoreMatch + SUBSTR caseIgnoreSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 + SINGLE-VALUE ) + +attributetype ( 1.9.0.0.0.0.0.2 + NAME 'nextcloudEnabled' + DESC 'whether user or group should be available in Nextcloud' + EQUALITY caseIgnoreMatch + SUBSTR caseIgnoreSubstringsMatch + SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 + SINGLE-VALUE ) + +objectclass ( 1.9.0.0.0.0.1.1 + NAME 'nextcloudUser' + DESC 'A Nextcloud user' + SUP top AUXILIARY + MUST cn + MAY ( nextcloudEnabled $ nextcloudQuota ) ) diff --git a/schema/verifySchema b/schema/verifySchema new file mode 100644 index 0000000..8a5083c --- /dev/null +++ b/schema/verifySchema @@ -0,0 +1,2 @@ +slaptest -f nextcloud.conf -F . +