1use crate::constants::entries::{Attribute, EntryClass};
3use crate::constants::uuids::*;
4use crate::schema::{SchemaAttribute, SchemaClass};
5use crate::value::SyntaxType;
6
7lazy_static!(
8
9pub static ref SCHEMA_ATTR_DISPLAYNAME_DL7: SchemaAttribute = SchemaAttribute {
10    uuid: UUID_SCHEMA_ATTR_DISPLAYNAME,
11    name: Attribute::DisplayName,
12    description: "The publicly visible display name of this person".to_string(),
13    indexed: true,
14    sync_allowed: true,
15    syntax: SyntaxType::Utf8String,
16    ..Default::default()
17};
18
19pub static ref SCHEMA_ATTR_MAIL_DL7: SchemaAttribute = SchemaAttribute {
20    uuid: UUID_SCHEMA_ATTR_MAIL,
21    name: Attribute::Mail,
22    description: "Mail addresses of the object".to_string(),
23    indexed: true,
24    unique: true,
25    multivalue: true,
26    sync_allowed: true,
27    syntax: SyntaxType::EmailAddress,
28    ..Default::default()
29};
30
31pub static ref SCHEMA_ATTR_EC_KEY_PRIVATE: SchemaAttribute = SchemaAttribute {
32    uuid: UUID_SCHEMA_ATTR_EC_KEY_PRIVATE,
33    name: Attribute::IdVerificationEcKey,
34    description: "Account verification private key".to_string(),
35    indexed: true,
36    unique: false,
37    sync_allowed: false,
38    syntax: SyntaxType::EcKeyPrivate,
39    ..Default::default()
40};
41
42pub static ref SCHEMA_ATTR_SSH_PUBLICKEY: SchemaAttribute = SchemaAttribute {
43    uuid: UUID_SCHEMA_ATTR_SSH_PUBLICKEY,
44    name: Attribute::SshPublicKey,
45    description: "SSH public keys of the object".to_string(),
46
47    multivalue: true,
48    sync_allowed: true,
49    syntax: SyntaxType::SshKey,
50    ..Default::default()
51};
52
53pub static ref SCHEMA_ATTR_PRIMARY_CREDENTIAL: SchemaAttribute = SchemaAttribute {
54    uuid: UUID_SCHEMA_ATTR_PRIMARY_CREDENTIAL,
55    name: Attribute::PrimaryCredential,
56    description: "Primary credential material of the account for authentication interactively".to_string(),
57    indexed: true,
58    sync_allowed: true,
59    syntax: SyntaxType::Credential,
60    ..Default::default()
61};
62
63pub static ref SCHEMA_ATTR_LEGALNAME_DL7: SchemaAttribute = SchemaAttribute {
64    uuid: UUID_SCHEMA_ATTR_LEGALNAME,
65    name: Attribute::LegalName,
66    description: "The private and sensitive legal name of this person".to_string(),
67    indexed: true,
68    sync_allowed: true,
69    syntax: SyntaxType::Utf8String,
70    ..Default::default()
71};
72
73pub static ref SCHEMA_ATTR_NAME_HISTORY: SchemaAttribute = SchemaAttribute {
74    uuid: UUID_SCHEMA_ATTR_NAME_HISTORY,
75    name: Attribute::NameHistory,
76    description: "The history of names that a person has had".to_string(),
77    indexed: true,
78    multivalue: true,
79    sync_allowed: true,
80    syntax: SyntaxType::AuditLogString,
81    ..Default::default()
82};
83
84pub static ref SCHEMA_ATTR_RADIUS_SECRET: SchemaAttribute = SchemaAttribute {
85    uuid: UUID_SCHEMA_ATTR_RADIUS_SECRET,
86    name: Attribute::RadiusSecret,
87    description: "The accounts generated radius secret for device network authentication".to_string(),
88    sync_allowed: true,
89    syntax: SyntaxType::SecretUtf8String,
90    ..Default::default()
91};
92
93pub static ref SCHEMA_ATTR_DOMAIN_NAME: SchemaAttribute = SchemaAttribute {
94    uuid: UUID_SCHEMA_ATTR_DOMAIN_NAME,
95    name: Attribute::DomainName,
96    description: "The domain's DNS name for webauthn and SPN generation purposes".to_string(),
97    indexed: true,
98    unique: true,
99    syntax: SyntaxType::Utf8StringIname,
100    ..Default::default()
101};
102
103pub static ref SCHEMA_ATTR_IMAGE: SchemaAttribute = SchemaAttribute {
104    uuid: UUID_SCHEMA_ATTR_IMAGE,
105    name: Attribute::Image,
106    description: "An image for display to end users.".to_string(),
107    syntax: SyntaxType::Image,
108    ..Default::default()
109};
110
111pub static ref SCHEMA_ATTR_LDAP_ALLOW_UNIX_PW_BIND: SchemaAttribute = SchemaAttribute {
112    uuid: UUID_SCHEMA_ATTR_LDAP_ALLOW_UNIX_PW_BIND,
113    name: Attribute::LdapAllowUnixPwBind,
114    description: "Configuration to enable binds to LDAP objects using their UNIX password".to_string(),
115    unique: false,
116    syntax: SyntaxType::Boolean,
117    ..Default::default()
118};
119
120pub static ref SCHEMA_ATTR_DOMAIN_LDAP_BASEDN: SchemaAttribute = SchemaAttribute {
121    uuid: UUID_SCHEMA_ATTR_DOMAIN_LDAP_BASEDN,
122    name: Attribute::DomainLdapBasedn,
123    description: "The domain's optional ldap basedn. If unset defaults to domain components of domain name".to_string(),
124    unique: true,
125    syntax: SyntaxType::Utf8StringInsensitive,
126    ..Default::default()
127};
128
129pub static ref SCHEMA_ATTR_LDAP_MAXIMUM_QUERYABLE_ATTRIBUTES: SchemaAttribute = SchemaAttribute {
130    uuid: UUID_SCHEMA_ATTR_LDAP_MAXIMUM_QUERYABLE_ATTRIBUTES,
131    name: Attribute::LdapMaxQueryableAttrs,
132    description: "The maximum number of LDAP attributes that can be queried in one operation".to_string(),
133    multivalue: false,
134    sync_allowed: true,
135    syntax: SyntaxType::Uint32,
136    ..Default::default()
137};
138
139pub static ref SCHEMA_ATTR_DOMAIN_DISPLAY_NAME: SchemaAttribute = SchemaAttribute {
140    uuid: UUID_SCHEMA_ATTR_DOMAIN_DISPLAY_NAME,
141    name: Attribute::DomainDisplayName,
142    description: "The user-facing display name of the Kanidm domain".to_string(),
143    indexed: true,
144    syntax: SyntaxType::Utf8String,
145    ..Default::default()
146};
147
148pub static ref SCHEMA_ATTR_DOMAIN_UUID: SchemaAttribute = SchemaAttribute {
149    uuid: UUID_SCHEMA_ATTR_DOMAIN_UUID,
150    name: Attribute::DomainUuid,
151    description: "The domain's uuid, used in CSN and trust relationships".to_string(),
152    indexed: true,
153    unique: true,
154    syntax: SyntaxType::Uuid,
155    ..Default::default()
156};
157
158pub static ref SCHEMA_ATTR_DOMAIN_SSID: SchemaAttribute = SchemaAttribute {
159    uuid: UUID_SCHEMA_ATTR_DOMAIN_SSID,
160    name: Attribute::DomainSsid,
161    description: "The domains site-wide SSID for device autoconfiguration of wireless".to_string(),
162    indexed: true,
163    unique: true,
164    syntax: SyntaxType::Utf8String,
165    ..Default::default()
166};
167
168pub static ref SCHEMA_ATTR_DENIED_NAME_DL10: SchemaAttribute = SchemaAttribute {
169    uuid: UUID_SCHEMA_ATTR_DENIED_NAME,
170    name: Attribute::DeniedName,
171    description: "Iname values that are not allowed to be used in 'name'.".to_string(),
172    syntax: SyntaxType::Utf8StringIname,
173    multivalue: true,
174    ..Default::default()
175};
176
177pub static ref SCHEMA_ATTR_DOMAIN_TOKEN_KEY: SchemaAttribute = SchemaAttribute {
178    uuid: UUID_SCHEMA_ATTR_DOMAIN_TOKEN_KEY,
179    name: Attribute::DomainTokenKey,
180    description: "The domain token encryption private key (NOT USED)".to_string(),
181    syntax: SyntaxType::SecretUtf8String,
182    ..Default::default()
183};
184
185pub static ref SCHEMA_ATTR_FERNET_PRIVATE_KEY_STR: SchemaAttribute = SchemaAttribute {
186    uuid: UUID_SCHEMA_ATTR_FERNET_PRIVATE_KEY_STR,
187    name: Attribute::FernetPrivateKeyStr,
188    description: "The token encryption private key".to_string(),
189
190    syntax: SyntaxType::SecretUtf8String,
191    ..Default::default()
192};
193
194pub static ref SCHEMA_ATTR_GIDNUMBER: SchemaAttribute = SchemaAttribute {
195    uuid: UUID_SCHEMA_ATTR_GIDNUMBER,
196    name: Attribute::GidNumber,
197    description: "The groupid (uid) number of a group or account.to_string(). This is the same value as the UID number on posix accounts for security reasons".to_string(),
198    indexed: true,
199    unique: true,
200    sync_allowed: true,
201    syntax: SyntaxType::Uint32,
202    ..Default::default()
203};
204
205pub static ref SCHEMA_ATTR_BADLIST_PASSWORD: SchemaAttribute = SchemaAttribute {
206    uuid: UUID_SCHEMA_ATTR_BADLIST_PASSWORD,
207    name: Attribute::BadlistPassword,
208    description: "A password that is badlisted meaning that it can not be set as a valid password by any user account".to_string(),
209    multivalue: true,
210    syntax: SyntaxType::Utf8StringInsensitive,
211    ..Default::default()
212};
213
214pub static ref SCHEMA_ATTR_AUTH_SESSION_EXPIRY: SchemaAttribute = SchemaAttribute {
215    uuid: UUID_SCHEMA_ATTR_AUTH_SESSION_EXPIRY,
216    name: Attribute::AuthSessionExpiry,
217    description: "An expiration time for an authentication session".to_string(),
218    syntax: SyntaxType::Uint32,
219    ..Default::default()
220};
221
222pub static ref SCHEMA_ATTR_AUTH_PRIVILEGE_EXPIRY: SchemaAttribute = SchemaAttribute {
223    uuid: UUID_SCHEMA_ATTR_AUTH_PRIVILEGE_EXPIRY,
224    name: Attribute::PrivilegeExpiry,
225    description: "An expiration time for a privileged authentication session".to_string(),
226    syntax: SyntaxType::Uint32,
227    ..Default::default()
228};
229
230pub static ref SCHEMA_ATTR_AUTH_PASSWORD_MINIMUM_LENGTH: SchemaAttribute = SchemaAttribute {
231    uuid: UUID_SCHEMA_ATTR_AUTH_PASSWORD_MINIMUM_LENGTH,
232    name: Attribute::AuthPasswordMinimumLength,
233    description: "Minimum length of passwords".to_string(),
234    syntax: SyntaxType::Uint32,
235    ..Default::default()
236};
237
238pub static ref SCHEMA_ATTR_LOGINSHELL: SchemaAttribute = SchemaAttribute {
239    uuid: UUID_SCHEMA_ATTR_LOGINSHELL,
240    name: Attribute::LoginShell,
241    description: "A POSIX user's UNIX login shell".to_string(),
242    sync_allowed: true,
243    syntax: SyntaxType::Utf8StringInsensitive,
244    ..Default::default()
245};
246
247pub static ref SCHEMA_ATTR_UNIX_PASSWORD: SchemaAttribute = SchemaAttribute {
248    uuid: UUID_SCHEMA_ATTR_UNIX_PASSWORD,
249    name: Attribute::UnixPassword,
250    description: "A POSIX user's UNIX login password".to_string(),
251    indexed: true,
252    syntax: SyntaxType::Credential,
253    ..Default::default()
254};
255
256pub static ref SCHEMA_ATTR_NSUNIQUEID: SchemaAttribute = SchemaAttribute {
257    uuid: UUID_SCHEMA_ATTR_NSUNIQUEID,
258    name: Attribute::NsUniqueId,
259    description: "A unique id compatibility for 389-ds/dsee".to_string(),
260    indexed: true,
261    unique: true,
262    sync_allowed: true,
263    syntax: SyntaxType::NsUniqueId,
264    ..Default::default()
265};
266
267pub static ref SCHEMA_ATTR_ACCOUNT_EXPIRE: SchemaAttribute = SchemaAttribute {
268    uuid: UUID_SCHEMA_ATTR_ACCOUNT_EXPIRE,
269    name: Attribute::AccountExpire,
270    description: "The datetime after which this account no longer may authenticate".to_string(),
271    sync_allowed: true,
272    syntax: SyntaxType::DateTime,
273    ..Default::default()
274};
275
276pub static ref SCHEMA_ATTR_ACCOUNT_VALID_FROM: SchemaAttribute = SchemaAttribute {
277    uuid: UUID_SCHEMA_ATTR_ACCOUNT_VALID_FROM,
278    name: Attribute::AccountValidFrom,
279    description: "The datetime after which this account may commence authenticating".to_string(),
280    sync_allowed: true,
281    syntax: SyntaxType::DateTime,
282    ..Default::default()
283};
284
285pub static ref SCHEMA_ATTR_WEBAUTHN_ATTESTATION_CA_LIST: SchemaAttribute = SchemaAttribute {
286    uuid: UUID_SCHEMA_ATTR_WEBAUTHN_ATTESTATION_CA_LIST,
287    name: Attribute::WebauthnAttestationCaList,
288    description: "A set of CA's that limit devices that can be used with webauthn".to_string(),
289    syntax: SyntaxType::WebauthnAttestationCaList,
290    multivalue: true,
291    ..Default::default()
292};
293
294pub static ref SCHEMA_ATTR_OAUTH2_RS_NAME: SchemaAttribute = SchemaAttribute {
295    uuid: UUID_SCHEMA_ATTR_OAUTH2_RS_NAME,
296    name: Attribute::OAuth2RsName,
297    description: "The unique name of an external Oauth2 resource".to_string(),
298    indexed: true,
299    unique: true,
300    syntax: SyntaxType::Utf8StringIname,
301    ..Default::default()
302};
303
304pub static ref SCHEMA_ATTR_OAUTH2_RS_ORIGIN_DL7: SchemaAttribute = SchemaAttribute {
305    uuid: UUID_SCHEMA_ATTR_OAUTH2_RS_ORIGIN,
306    name: Attribute::OAuth2RsOrigin,
307    description: "The origin domain of an OAuth2 client".to_string(),
308    syntax: SyntaxType::Url,
309    multivalue: true,
310    ..Default::default()
311};
312
313pub static ref SCHEMA_ATTR_OAUTH2_RS_ORIGIN_LANDING: SchemaAttribute = SchemaAttribute {
314    uuid: UUID_SCHEMA_ATTR_OAUTH2_RS_ORIGIN_LANDING,
315    name: Attribute::OAuth2RsOriginLanding,
316    description: "The landing page of an RS, that will automatically trigger the auth process".to_string(),
317    syntax: SyntaxType::Url,
318    ..Default::default()
319};
320
321pub static ref SCHEMA_ATTR_OAUTH2_ALLOW_LOCALHOST_REDIRECT_DL4: SchemaAttribute = SchemaAttribute {
323    uuid: UUID_SCHEMA_ATTR_OAUTH2_ALLOW_LOCALHOST_REDIRECT,
324    name: Attribute::OAuth2AllowLocalhostRedirect,
325    description: "Allow public clients associated to this RS to redirect to localhost".to_string(),
326    syntax: SyntaxType::Boolean,
327    ..Default::default()
328};
329
330pub static ref SCHEMA_ATTR_OAUTH2_RS_CLAIM_MAP_DL4: SchemaAttribute = SchemaAttribute {
331    uuid: UUID_SCHEMA_ATTR_OAUTH2_RS_CLAIM_MAP,
332    name: Attribute::OAuth2RsClaimMap,
333    description: "A set of custom claims mapped to group memberships of accounts".to_string(),
334    indexed: true,
335    multivalue: true,
336    syntax: SyntaxType::OauthClaimMap,
338    ..Default::default()
339};
340
341pub static ref SCHEMA_ATTR_OAUTH2_RS_SCOPE_MAP: SchemaAttribute = SchemaAttribute {
342    uuid: UUID_SCHEMA_ATTR_OAUTH2_RS_SCOPE_MAP,
343    name: Attribute::OAuth2RsScopeMap,
344    description: "A reference to a group mapped to scopes for the associated oauth2 resource server".to_string(),
345    indexed: true,
346    multivalue: true,
347    syntax: SyntaxType::OauthScopeMap,
348    ..Default::default()
349};
350
351pub static ref SCHEMA_ATTR_OAUTH2_RS_SUP_SCOPE_MAP: SchemaAttribute = SchemaAttribute {
352    uuid: UUID_SCHEMA_ATTR_OAUTH2_RS_SUP_SCOPE_MAP,
353    name: Attribute::OAuth2RsSupScopeMap,
354    description: "A reference to a group mapped to scopes for the associated oauth2 resource server".to_string(),
355    indexed: true,
356    multivalue: true,
357    syntax: SyntaxType::OauthScopeMap,
358    ..Default::default()
359};
360
361pub static ref SCHEMA_ATTR_OAUTH2_RS_BASIC_SECRET: SchemaAttribute = SchemaAttribute {
362    uuid: UUID_SCHEMA_ATTR_OAUTH2_RS_BASIC_SECRET,
363    name: Attribute::OAuth2RsBasicSecret,
364    description: "When using oauth2 basic authentication, the secret string of the resource server".to_string(),
365    syntax: SyntaxType::SecretUtf8String,
366    ..Default::default()
367};
368
369pub static ref SCHEMA_ATTR_OAUTH2_RS_TOKEN_KEY: SchemaAttribute = SchemaAttribute {
370    uuid: UUID_SCHEMA_ATTR_OAUTH2_RS_TOKEN_KEY,
371    name: Attribute::OAuth2RsTokenKey,
372    description: "An oauth2 resource servers unique token signing key".to_string(),
373    syntax: SyntaxType::SecretUtf8String,
374    ..Default::default()
375};
376
377pub static ref SCHEMA_ATTR_OAUTH2_RS_IMPLICIT_SCOPES: SchemaAttribute = SchemaAttribute {
378    uuid: UUID_SCHEMA_ATTR_OAUTH2_RS_IMPLICIT_SCOPES,
379    name: Attribute::OAuth2RsImplicitScopes,
380    description: "An oauth2 resource servers scopes that are implicitly granted to all users".to_string(),
381    multivalue: true,
382    syntax: SyntaxType::OauthScope,
383    ..Default::default()
384};
385
386pub static ref SCHEMA_ATTR_OAUTH2_CONSENT_SCOPE_MAP: SchemaAttribute = SchemaAttribute {
387    uuid: UUID_SCHEMA_ATTR_OAUTH2_CONSENT_SCOPE_MAP,
388    name: Attribute::OAuth2ConsentScopeMap,
389    description: "A set of scopes mapped from a relying server to a user, where the user has previously consented to the following. If changed or deleted, consent will be re-sought".to_string(),
390    indexed: true,
391    multivalue: true,
392    syntax: SyntaxType::OauthScopeMap,
393    ..Default::default()
394};
395
396pub static ref SCHEMA_ATTR_OAUTH2_STRICT_REDIRECT_URI_DL7: SchemaAttribute = SchemaAttribute {
397    uuid: UUID_SCHEMA_ATTR_OAUTH2_STRICT_REDIRECT_URI,
398    name: Attribute::OAuth2StrictRedirectUri,
399    description: "Represents if strict redirect uri enforcement is enabled.".to_string(),
400    syntax: SyntaxType::Boolean,
401    ..Default::default()
402};
403
404
405pub static ref SCHEMA_ATTR_OAUTH2_DEVICE_FLOW_ENABLE_DL9: SchemaAttribute = SchemaAttribute {
406    uuid: UUID_SCHEMA_ATTR_OAUTH2_DEVICE_FLOW_ENABLE,
407    name: Attribute::OAuth2DeviceFlowEnable,
408    description: "Represents if OAuth2 Device Flow is permittedĀ on this client.".to_string(),
409    syntax: SyntaxType::Boolean,
410    ..Default::default()
411};
412
413pub static ref SCHEMA_ATTR_ES256_PRIVATE_KEY_DER: SchemaAttribute = SchemaAttribute {
414    uuid: UUID_SCHEMA_ATTR_ES256_PRIVATE_KEY_DER,
415    name: Attribute::Es256PrivateKeyDer,
416    description: "An es256 private key".to_string(),
417    syntax: SyntaxType::PrivateBinary,
418    ..Default::default()
419};
420
421pub static ref SCHEMA_ATTR_RS256_PRIVATE_KEY_DER: SchemaAttribute = SchemaAttribute {
422    uuid: UUID_SCHEMA_ATTR_RS256_PRIVATE_KEY_DER,
423    name: Attribute::Rs256PrivateKeyDer,
424    description: "An rs256 private key".to_string(),
425    syntax: SyntaxType::PrivateBinary,
426    ..Default::default()
427};
428
429pub static ref SCHEMA_ATTR_JWS_ES256_PRIVATE_KEY: SchemaAttribute = SchemaAttribute {
430    uuid: UUID_SCHEMA_ATTR_JWS_ES256_PRIVATE_KEY,
431    name: Attribute::JwsEs256PrivateKey,
432    description: "An es256 private key for jws".to_string(),
433    indexed: true,
434    unique: true,
435    syntax: SyntaxType::JwsKeyEs256,
436    ..Default::default()
437};
438
439pub static ref SCHEMA_ATTR_PRIVATE_COOKIE_KEY: SchemaAttribute = SchemaAttribute {
441    uuid: UUID_SCHEMA_ATTR_PRIVATE_COOKIE_KEY,
442    name: Attribute::PrivateCookieKey,
443    description: "An private cookie hmac key".to_string(),
444    syntax: SyntaxType::PrivateBinary,
445    ..Default::default()
446};
447
448pub static ref SCHEMA_ATTR_OAUTH2_ALLOW_INSECURE_CLIENT_DISABLE_PKCE: SchemaAttribute = SchemaAttribute {
449    uuid: UUID_SCHEMA_ATTR_OAUTH2_ALLOW_INSECURE_CLIENT_DISABLE_PKCE,
450    name: Attribute::OAuth2AllowInsecureClientDisablePkce,
451    description: "Allows disabling of PKCE for insecure OAuth2 clients".to_string(),
452    syntax: SyntaxType::Boolean,
453    ..Default::default()
454};
455
456pub static ref SCHEMA_ATTR_OAUTH2_JWT_LEGACY_CRYPTO_ENABLE: SchemaAttribute = SchemaAttribute {
457    uuid: UUID_SCHEMA_ATTR_OAUTH2_JWT_LEGACY_CRYPTO_ENABLE,
458    name: Attribute::OAuth2JwtLegacyCryptoEnable,
459    description: "Allows enabling legacy JWT cryptograhpy for clients".to_string(),
460    syntax: SyntaxType::Boolean,
461    ..Default::default()
462};
463
464pub static ref SCHEMA_ATTR_CREDENTIAL_UPDATE_INTENT_TOKEN: SchemaAttribute = SchemaAttribute {
465    uuid: UUID_SCHEMA_ATTR_CREDENTIAL_UPDATE_INTENT_TOKEN,
466    name: Attribute::CredentialUpdateIntentToken,
467    description: "The status of a credential update intent token".to_string(),
468    indexed: true,
469    multivalue: true,
470    syntax: SyntaxType::IntentToken,
471    ..Default::default()
472};
473
474pub static ref SCHEMA_ATTR_PASSKEYS: SchemaAttribute = SchemaAttribute {
475    uuid: UUID_SCHEMA_ATTR_PASSKEYS,
476    name: Attribute::PassKeys,
477    description: "A set of registered passkeys".to_string(),
478    indexed: true,
479    multivalue: true,
480    sync_allowed: true,
481    syntax: SyntaxType::Passkey,
482    ..Default::default()
483};
484
485pub static ref SCHEMA_ATTR_ATTESTED_PASSKEYS: SchemaAttribute = SchemaAttribute {
486    uuid: UUID_SCHEMA_ATTR_ATTESTED_PASSKEYS,
487    name: Attribute::AttestedPasskeys,
488    description: "A set of registered device keys".to_string(),
489    indexed: true,
490    multivalue: true,
491    sync_allowed: true,
492    syntax: SyntaxType::AttestedPasskey,
493    ..Default::default()
494};
495
496pub static ref SCHEMA_ATTR_DYNGROUP_FILTER: SchemaAttribute = SchemaAttribute {
497    uuid: UUID_SCHEMA_ATTR_DYNGROUP_FILTER,
498    name: Attribute::DynGroupFilter,
499    description: "A filter describing the set of entries to add to a dynamic group".to_string(),
500    syntax: SyntaxType::JsonFilter,
501    ..Default::default()
502};
503
504pub static ref SCHEMA_ATTR_OAUTH2_PREFER_SHORT_USERNAME: SchemaAttribute = SchemaAttribute {
505    uuid: UUID_SCHEMA_ATTR_OAUTH2_PREFER_SHORT_USERNAME,
506    name: Attribute::OAuth2PreferShortUsername,
507    description: "Use 'name' instead of 'spn' in the preferred_username claim".to_string(),
508    syntax: SyntaxType::Boolean,
509    ..Default::default()
510};
511
512pub static ref SCHEMA_ATTR_API_TOKEN_SESSION: SchemaAttribute = SchemaAttribute {
513    uuid: UUID_SCHEMA_ATTR_API_TOKEN_SESSION,
514    name: Attribute::ApiTokenSession,
515    description: "A session entry related to an issued API token".to_string(),
516    indexed: true,
517    unique: true,
518    multivalue: true,
519    syntax: SyntaxType::ApiToken,
520    ..Default::default()
521};
522
523pub static ref SCHEMA_ATTR_USER_AUTH_TOKEN_SESSION: SchemaAttribute = SchemaAttribute {
524    uuid: UUID_SCHEMA_ATTR_USER_AUTH_TOKEN_SESSION,
525    name: Attribute::UserAuthTokenSession,
526    description: "A session entry related to an issued user auth token".to_string(),
527    indexed: true,
528    unique: true,
529    multivalue: true,
530    syntax: SyntaxType::Session,
531    ..Default::default()
532};
533
534pub static ref SCHEMA_ATTR_OAUTH2_SESSION: SchemaAttribute = SchemaAttribute {
535    uuid: UUID_SCHEMA_ATTR_OAUTH2_SESSION,
536    name: Attribute::OAuth2Session,
537    description: "A session entry to an active oauth2 session, bound to a parent user auth token".to_string(),
538    indexed: true,
539    multivalue: true,
540    syntax: SyntaxType::Oauth2Session,
541    ..Default::default()
542};
543
544pub static ref SCHEMA_ATTR_SYNC_TOKEN_SESSION: SchemaAttribute = SchemaAttribute {
545    uuid: UUID_SCHEMA_ATTR_SYNC_TOKEN_SESSION,
546    name: Attribute::SyncTokenSession,
547    description: "A session entry related to an issued sync token".to_string(),
548    indexed: true,
549    unique: true,
550    syntax: SyntaxType::ApiToken,
551    ..Default::default()
552};
553
554pub static ref SCHEMA_ATTR_SYNC_COOKIE: SchemaAttribute = SchemaAttribute {
555    uuid: UUID_SCHEMA_ATTR_SYNC_COOKIE,
556    name: Attribute::SyncCookie,
557    description: "A private sync cookie for a remote IDM source".to_string(),
558    syntax: SyntaxType::PrivateBinary,
559    ..Default::default()
560};
561
562pub static ref SCHEMA_ATTR_GRANT_UI_HINT: SchemaAttribute = SchemaAttribute {
563    uuid: UUID_SCHEMA_ATTR_GRANT_UI_HINT,
564    name: Attribute::GrantUiHint,
565    description: "A UI hint that is granted via membership to a group".to_string(),
566    indexed: true,
567    multivalue: true,
568    syntax: SyntaxType::UiHint,
569    ..Default::default()
570};
571
572pub static ref SCHEMA_ATTR_SYNC_CREDENTIAL_PORTAL: SchemaAttribute = SchemaAttribute {
573    uuid: UUID_SCHEMA_ATTR_SYNC_CREDENTIAL_PORTAL,
574    name: Attribute::SyncCredentialPortal,
575    description: "The url of an external credential portal for synced accounts to visit to update their credentials".to_string(),
576    syntax: SyntaxType::Url,
577    ..Default::default()
578};
579
580pub static ref SCHEMA_ATTR_SYNC_YIELD_AUTHORITY: SchemaAttribute = SchemaAttribute {
581    uuid: UUID_SCHEMA_ATTR_SYNC_YIELD_AUTHORITY,
582    name: Attribute::SyncYieldAuthority,
583    description: "A set of attributes that have their authority yielded to Kanidm in a sync agreement".to_string(),
584    multivalue: true,
585    syntax: SyntaxType::Utf8StringInsensitive,
586    ..Default::default()
587};
588
589pub static ref SCHEMA_ATTR_CREDENTIAL_TYPE_MINIMUM: SchemaAttribute = SchemaAttribute {
590    uuid: UUID_SCHEMA_ATTR_CREDENTIAL_TYPE_MINIMUM,
591    name: Attribute::CredentialTypeMinimum,
592    description: "The minimum level of credential type that can satisfy this policy".to_string(),
593    multivalue: false,
594    syntax: SyntaxType::CredentialType,
595    ..Default::default()
596};
597
598pub static ref SCHEMA_ATTR_LIMIT_SEARCH_MAX_RESULTS_DL6: SchemaAttribute = SchemaAttribute {
599    uuid: UUID_SCHEMA_ATTR_LIMIT_SEARCH_MAX_RESULTS,
600    name: Attribute::LimitSearchMaxResults,
601    description: "The maximum number of query results that may be returned in a single operation".to_string(),
602    multivalue: false,
603    syntax: SyntaxType::Uint32,
604    ..Default::default()
605};
606
607pub static ref SCHEMA_ATTR_LIMIT_SEARCH_MAX_FILTER_TEST_DL6: SchemaAttribute = SchemaAttribute {
608    uuid: UUID_SCHEMA_ATTR_LIMIT_SEARCH_MAX_FILTER_TEST,
609    name: Attribute::LimitSearchMaxFilterTest,
610    description: "The maximum number of entries that may be examined in a partially indexed query".to_string(),
611    multivalue: false,
612    syntax: SyntaxType::Uint32,
613    ..Default::default()
614};
615
616pub static ref SCHEMA_ATTR_KEY_INTERNAL_DATA_DL6: SchemaAttribute = SchemaAttribute {
617    uuid: UUID_SCHEMA_ATTR_KEY_INTERNAL_DATA,
618    name: Attribute::KeyInternalData,
619    description: "".to_string(),
620    multivalue: true,
621    syntax: SyntaxType::KeyInternal,
622    ..Default::default()
623};
624
625pub static ref SCHEMA_ATTR_KEY_PROVIDER_DL6: SchemaAttribute = SchemaAttribute {
626    uuid: UUID_SCHEMA_ATTR_KEY_PROVIDER,
627    name: Attribute::KeyProvider,
628    description: "".to_string(),
629    multivalue: false,
630    indexed: true,
631    syntax: SyntaxType::ReferenceUuid,
632    ..Default::default()
633};
634
635pub static ref SCHEMA_ATTR_KEY_ACTION_ROTATE_DL6: SchemaAttribute = SchemaAttribute {
636    uuid: UUID_SCHEMA_ATTR_KEY_ACTION_ROTATE,
637    name: Attribute::KeyActionRotate,
638    description: "".to_string(),
639    multivalue: false,
640    phantom: true,
642    syntax: SyntaxType::DateTime,
643    ..Default::default()
644};
645
646pub static ref SCHEMA_ATTR_KEY_ACTION_REVOKE_DL6: SchemaAttribute = SchemaAttribute {
647    uuid: UUID_SCHEMA_ATTR_KEY_ACTION_REVOKE,
648    name: Attribute::KeyActionRevoke,
649    description: "".to_string(),
650    multivalue: true,
651    phantom: true,
653    syntax: SyntaxType::HexString,
654    ..Default::default()
655};
656
657pub static ref SCHEMA_ATTR_KEY_ACTION_IMPORT_JWS_ES256_DL6: SchemaAttribute = SchemaAttribute {
658    uuid: UUID_SCHEMA_ATTR_KEY_ACTION_IMPORT_JWS_ES256,
659    name: Attribute::KeyActionImportJwsEs256,
660    description: "".to_string(),
661    multivalue: true,
662    phantom: true,
664    syntax: SyntaxType::PrivateBinary,
665    ..Default::default()
666};
667
668pub static ref SCHEMA_ATTR_KEY_ACTION_IMPORT_JWS_RS256_DL6: SchemaAttribute = SchemaAttribute {
669    uuid: UUID_SCHEMA_ATTR_KEY_ACTION_IMPORT_JWS_RS256,
670    name: Attribute::KeyActionImportJwsRs256,
671    description: "".to_string(),
672    multivalue: true,
673    phantom: true,
675    syntax: SyntaxType::PrivateBinary,
676    ..Default::default()
677};
678
679pub static ref SCHEMA_ATTR_PATCH_LEVEL_DL7: SchemaAttribute = SchemaAttribute {
680    uuid: UUID_SCHEMA_ATTR_PATCH_LEVEL,
681    name: Attribute::PatchLevel,
682    description: "".to_string(),
683    syntax: SyntaxType::Uint32,
684    ..Default::default()
685};
686
687pub static ref SCHEMA_ATTR_DOMAIN_DEVELOPMENT_TAINT_DL7: SchemaAttribute = SchemaAttribute {
688    uuid: UUID_SCHEMA_ATTR_DOMAIN_DEVELOPMENT_TAINT,
689    name: Attribute::DomainDevelopmentTaint,
690    description: "A flag to show that the domain has been run on a development build, and will need additional work to upgrade/migrate.".to_string(),
691    syntax: SyntaxType::Boolean,
692    ..Default::default()
693};
694
695pub static ref SCHEMA_ATTR_DOMAIN_ALLOW_EASTER_EGGS_DL9: SchemaAttribute = SchemaAttribute {
696    uuid: UUID_SCHEMA_ATTR_DOMAIN_ALLOW_EASTER_EGGS,
697    name: Attribute::DomainAllowEasterEggs,
698    description: "A flag to enable easter eggs in the server that may not always be wanted by all users/deployments.".to_string(),
699    syntax: SyntaxType::Boolean,
700    ..Default::default()
701};
702
703pub static ref SCHEMA_ATTR_REFERS_DL7: SchemaAttribute = SchemaAttribute {
704    uuid: UUID_SCHEMA_ATTR_REFERS,
705    name: Attribute::Refers,
706    description: "A reference to linked object".to_string(),
707    indexed: true,
708    multivalue: false,
709    syntax: SyntaxType::ReferenceUuid,
710    ..Default::default()
711};
712
713pub static ref SCHEMA_ATTR_LINKED_GROUP_DL8: SchemaAttribute = SchemaAttribute {
714    uuid: UUID_SCHEMA_ATTR_LINKED_GROUP,
715    name: Attribute::LinkedGroup,
716    description: "A reference linking a group to an entry".to_string(),
717    multivalue: false,
718    indexed: true,
719    syntax: SyntaxType::ReferenceUuid,
720    ..Default::default()
721};
722
723pub static ref SCHEMA_ATTR_ALLOW_PRIMARY_CRED_FALLBACK_DL8: SchemaAttribute = SchemaAttribute {
724    uuid: UUID_SCHEMA_ATTR_ALLOW_PRIMARY_CRED_FALLBACK,
725    name: Attribute::AllowPrimaryCredFallback,
726    description: "Allow fallback to primary password if no POSIX password exists".to_string(),
727    multivalue: false,
728    syntax: SyntaxType::Boolean,
729    ..Default::default()
730};
731
732pub static ref SCHEMA_ATTR_CERTIFICATE_DL7: SchemaAttribute = SchemaAttribute {
733    uuid: UUID_SCHEMA_ATTR_CERTIFICATE,
734    name: Attribute::Certificate,
735    description: "An x509 Certificate".to_string(),
736    multivalue: false,
737    syntax: SyntaxType::Certificate,
738    ..Default::default()
739};
740
741pub static ref SCHEMA_ATTR_APPLICATION_PASSWORD_DL8: SchemaAttribute = SchemaAttribute {
742    uuid: UUID_SCHEMA_ATTR_APPLICATION_PASSWORD,
743    name: Attribute::ApplicationPassword,
744    description: "A set of application passwords".to_string(),
745    multivalue: true,
746    indexed: true,
747    syntax: SyntaxType::ApplicationPassword,
748    ..Default::default()
749};
750
751pub static ref SCHEMA_CLASS_PERSON_DL8: SchemaClass = SchemaClass {
753    uuid: UUID_SCHEMA_CLASS_PERSON,
754    name: EntryClass::Person.into(),
755    description: "Object representation of a person".to_string(),
756
757    sync_allowed: true,
758    systemmay: vec![
759        Attribute::PrimaryCredential,
760        Attribute::PassKeys,
761        Attribute::AttestedPasskeys,
762        Attribute::CredentialUpdateIntentToken,
763        Attribute::SshPublicKey,
764        Attribute::RadiusSecret,
765        Attribute::OAuth2ConsentScopeMap,
766        Attribute::UserAuthTokenSession,
767        Attribute::OAuth2Session,
768        Attribute::Mail,
769        Attribute::LegalName,
770        Attribute::ApplicationPassword,
771    ],
772    systemmust: vec![
773        Attribute::IdVerificationEcKey
774    ],
775    systemexcludes: vec![EntryClass::ServiceAccount.into(), EntryClass::Application.into()],
776    ..Default::default()
777};
778
779pub static ref SCHEMA_CLASS_ORGPERSON: SchemaClass = SchemaClass {
780    uuid: UUID_SCHEMA_CLASS_ORGPERSON,
781    name: EntryClass::OrgPerson.into(),
782    description: "Object representation of an org person".to_string(),
783
784    systemmay: vec![
785        Attribute::LegalName
786        ],
787    systemmust: vec![
788        Attribute::Mail,
789        Attribute::DisplayName,
790        Attribute::Name
791    ],
792    ..Default::default()
793};
794
795pub static ref SCHEMA_CLASS_GROUP_DL6: SchemaClass = SchemaClass {
796    uuid: UUID_SCHEMA_CLASS_GROUP,
797    name: EntryClass::Group.into(),
798    description: "Object representation of a group".to_string(),
799
800    sync_allowed: true,
801    systemmay: vec![
802        Attribute::Member,
803        Attribute::GrantUiHint,
804        Attribute::Description,
805        Attribute::Mail,
806    ],
807    systemmust: vec![
808        Attribute::Name,
809        Attribute::Spn],
810    ..Default::default()
811};
812
813pub static ref SCHEMA_CLASS_DYNGROUP: SchemaClass = SchemaClass {
814    uuid: UUID_SCHEMA_CLASS_DYNGROUP,
815    name: EntryClass::DynGroup.into(),
816    description: "Object representation of a dynamic group".to_string(),
817
818    systemmust: vec![Attribute::DynGroupFilter],
819    systemmay: vec![Attribute::DynMember],
820    systemsupplements: vec![Attribute::Group.into()],
821    ..Default::default()
822};
823
824pub static ref SCHEMA_CLASS_ACCOUNT_POLICY_DL8: SchemaClass = SchemaClass {
825    uuid: UUID_SCHEMA_CLASS_ACCOUNT_POLICY,
826    name: EntryClass::AccountPolicy.into(),
827    description: "Policies applied to accounts that are members of a group".to_string(),
828
829    systemmay: vec![
830        Attribute::AuthSessionExpiry,
831        Attribute::PrivilegeExpiry,
832        Attribute::AuthPasswordMinimumLength,
833        Attribute::CredentialTypeMinimum,
834        Attribute::WebauthnAttestationCaList,
835        Attribute::LimitSearchMaxResults,
836        Attribute::LimitSearchMaxFilterTest,
837        Attribute::AllowPrimaryCredFallback,
838    ],
839    systemsupplements: vec![Attribute::Group.into()],
840    ..Default::default()
841};
842
843pub static ref SCHEMA_CLASS_ACCOUNT_DL5: SchemaClass = SchemaClass {
844    uuid: UUID_SCHEMA_CLASS_ACCOUNT,
845    name: EntryClass::Account.into(),
846    description: "Object representation of an account".to_string(),
847
848    sync_allowed: true,
849    systemmay: vec![
850        Attribute::AccountExpire,
851        Attribute::AccountValidFrom,
852        Attribute::NameHistory,
853    ],
854    systemmust: vec![
855        Attribute::DisplayName,
856        Attribute::Name,
857        Attribute::Spn
858    ],
859    systemsupplements: vec![
860        EntryClass::OAuth2ResourceServer.into(),
861        EntryClass::Person.into(),
862        EntryClass::ServiceAccount.into(),
863    ],
864    ..Default::default()
865};
866
867pub static ref SCHEMA_CLASS_SERVICE_ACCOUNT_DL7: SchemaClass = SchemaClass {
868    uuid: UUID_SCHEMA_CLASS_SERVICE_ACCOUNT,
869    name: EntryClass::ServiceAccount.into(),
870    description: "Object representation of service account".to_string(),
871
872    sync_allowed: true,
873    systemmay: vec![
874        Attribute::SshPublicKey,
875        Attribute::UserAuthTokenSession,
876        Attribute::OAuth2Session,
877        Attribute::OAuth2ConsentScopeMap,
878        Attribute::Description,
879
880        Attribute::Mail,
881        Attribute::PrimaryCredential,
882        Attribute::ApiTokenSession,
883    ],
884    systemexcludes: vec![EntryClass::Person.into()],
885    ..Default::default()
886};
887
888pub static ref SCHEMA_CLASS_SYNC_ACCOUNT_DL7: SchemaClass = SchemaClass {
889    uuid: UUID_SCHEMA_CLASS_SYNC_ACCOUNT,
890    name: EntryClass::SyncAccount.into(),
891    description: "Object representation of sync account".to_string(),
892
893    systemmust: vec![Attribute::Name],
894    systemmay: vec![
895        Attribute::SyncTokenSession,
896        Attribute::SyncCookie,
897        Attribute::SyncCredentialPortal,
898        Attribute::SyncYieldAuthority,
899    ],
900    systemexcludes: vec![EntryClass::Account.into()],
901    ..Default::default()
902};
903
904pub static ref SCHEMA_CLASS_DOMAIN_INFO_DL10: SchemaClass = SchemaClass {
905    uuid: UUID_SCHEMA_CLASS_DOMAIN_INFO,
906    name: EntryClass::DomainInfo.into(),
907    description: "Local domain information and configuration".to_string(),
908
909    systemmay: vec![
910        Attribute::DomainSsid,
911        Attribute::DomainLdapBasedn,
912        Attribute::LdapMaxQueryableAttrs,
913        Attribute::LdapAllowUnixPwBind,
914        Attribute::Image,
915        Attribute::PatchLevel,
916        Attribute::DomainDevelopmentTaint,
917        Attribute::DomainAllowEasterEggs,
918        Attribute::DomainDisplayName,
919    ],
920    systemmust: vec![
921        Attribute::Name,
922        Attribute::DomainUuid,
923        Attribute::DomainName,
924        Attribute::Version,
925    ],
926    ..Default::default()
927};
928
929pub static ref SCHEMA_CLASS_POSIXGROUP: SchemaClass = SchemaClass {
930    uuid: UUID_SCHEMA_CLASS_POSIXGROUP,
931    name: EntryClass::PosixGroup.into(),
932    description: "Object representation of a posix group, requires group".to_string(),
933
934    sync_allowed: true,
935    systemmust: vec![Attribute::GidNumber],
936    systemsupplements: vec![Attribute::Group.into()],
937    ..Default::default()
938};
939
940pub static ref SCHEMA_CLASS_POSIXACCOUNT: SchemaClass = SchemaClass {
941    uuid: UUID_SCHEMA_CLASS_POSIXACCOUNT,
942    name: EntryClass::PosixAccount.into(),
943    description: "Object representation of a posix account, requires account".to_string(),
944
945    sync_allowed: true,
946    systemmay: vec![Attribute::LoginShell, Attribute::UnixPassword],
947    systemmust: vec![Attribute::GidNumber],
948    systemsupplements: vec![Attribute::Account.into()],
949    ..Default::default()
950};
951
952pub static ref SCHEMA_CLASS_SYSTEM_CONFIG: SchemaClass = SchemaClass {
953    uuid: UUID_SCHEMA_CLASS_SYSTEM_CONFIG,
954    name: EntryClass::SystemConfig.into(),
955    description: "The class representing a system (topologies) configuration options".to_string(),
956
957    systemmay: vec![
958        Attribute::Description,
959        Attribute::BadlistPassword,
960        Attribute::AuthSessionExpiry,
961        Attribute::PrivilegeExpiry,
962        Attribute::DeniedName
963        ],
964    ..Default::default()
965};
966
967pub static ref SCHEMA_CLASS_OAUTH2_RS_DL9: SchemaClass = SchemaClass {
968    uuid: UUID_SCHEMA_CLASS_OAUTH2_RS,
969    name: EntryClass::OAuth2ResourceServer.into(),
970    description: "The class epresenting a configured OAuth2 Client".to_string(),
971
972    systemmay: vec![
973        Attribute::Description,
974        Attribute::OAuth2RsScopeMap,
975        Attribute::OAuth2RsSupScopeMap,
976        Attribute::OAuth2JwtLegacyCryptoEnable,
977        Attribute::OAuth2PreferShortUsername,
978        Attribute::Image,
979        Attribute::OAuth2RsClaimMap,
980        Attribute::OAuth2Session,
981        Attribute::OAuth2RsOrigin,
982        Attribute::OAuth2StrictRedirectUri,
983        Attribute::OAuth2DeviceFlowEnable,
984        Attribute::Rs256PrivateKeyDer,
986        Attribute::OAuth2RsTokenKey,
987        Attribute::Es256PrivateKeyDer,
988    ],
989    systemmust: vec![
990        Attribute::OAuth2RsOriginLanding,
991    ],
992    ..Default::default()
993};
994
995pub static ref SCHEMA_CLASS_OAUTH2_RS_BASIC_DL5: SchemaClass = SchemaClass {
996    uuid: UUID_SCHEMA_CLASS_OAUTH2_RS_BASIC,
997    name: EntryClass::OAuth2ResourceServerBasic.into(),
998    description: "The class representing a configured OAuth2 client authenticated with HTTP basic authentication".to_string(),
999
1000    systemmay: vec![
1001        Attribute::OAuth2AllowInsecureClientDisablePkce,
1002    ],
1003    systemmust: vec![ Attribute::OAuth2RsBasicSecret],
1004    systemexcludes: vec![ EntryClass::OAuth2ResourceServerPublic.into()],
1005    ..Default::default()
1006};
1007
1008pub static ref SCHEMA_CLASS_OAUTH2_RS_PUBLIC_DL4: SchemaClass = SchemaClass {
1010    uuid: UUID_SCHEMA_CLASS_OAUTH2_RS_PUBLIC,
1011    name: EntryClass::OAuth2ResourceServerPublic.into(),
1012    description: "The class representing a configured Public OAuth2 Client with PKCE verification".to_string(),
1013
1014    systemmay: vec![Attribute::OAuth2AllowLocalhostRedirect],
1015    systemexcludes: vec![EntryClass::OAuth2ResourceServerBasic.into()],
1016    ..Default::default()
1017};
1018
1019pub static ref SCHEMA_CLASS_KEY_PROVIDER_DL6: SchemaClass = SchemaClass {
1023    uuid: UUID_SCHEMA_CLASS_KEY_PROVIDER,
1024    name: EntryClass::KeyProvider.into(),
1025    description: "A provider for cryptographic key storage and operations".to_string(),
1026    systemmay: vec![
1027        Attribute::Description,
1028    ],
1029    systemmust: vec![
1030        Attribute::Name,
1031    ],
1032    systemsupplements: vec![
1033        EntryClass::KeyProviderInternal.into(),
1034    ],
1035    ..Default::default()
1036};
1037
1038pub static ref SCHEMA_CLASS_KEY_PROVIDER_INTERNAL_DL6: SchemaClass = SchemaClass {
1039    uuid: UUID_SCHEMA_CLASS_KEY_PROVIDER_INTERNAL,
1040    name: EntryClass::KeyProviderInternal.into(),
1041    description: "The Kanidm internal cryptographic key provider".to_string(),
1042    ..Default::default()
1043};
1044
1045pub static ref SCHEMA_CLASS_KEY_OBJECT_DL6: SchemaClass = SchemaClass {
1049    uuid: UUID_SCHEMA_CLASS_KEY_OBJECT,
1050    name: EntryClass::KeyObject.into(),
1051    description: "A cryptographic key object that can be used by a provider".to_string(),
1052    systemmust: vec![
1053        Attribute::KeyProvider,
1054    ],
1055    ..Default::default()
1056};
1057
1058pub static ref SCHEMA_CLASS_KEY_OBJECT_JWT_ES256_DL6: SchemaClass = SchemaClass {
1059    uuid: UUID_SCHEMA_CLASS_KEY_OBJECT_JWT_ES256,
1060    name: EntryClass::KeyObjectJwtEs256.into(),
1061    description: "A marker class indicating that this keyobject must provide jwt es256 capability.".to_string(),
1062    systemsupplements: vec![
1063        EntryClass::KeyObject.into(),
1064    ],
1065    ..Default::default()
1066};
1067
1068pub static ref SCHEMA_CLASS_KEY_OBJECT_JWT_RS256: SchemaClass = SchemaClass {
1069    uuid: UUID_SCHEMA_CLASS_KEY_OBJECT_JWT_RS256,
1070    name: EntryClass::KeyObjectJwtRs256.into(),
1071    description: "A marker class indicating that this keyobject must provide jwt rs256 capability.".to_string(),
1072    systemsupplements: vec![
1073        EntryClass::KeyObject.into(),
1074    ],
1075    ..Default::default()
1076};
1077
1078pub static ref SCHEMA_CLASS_KEY_OBJECT_JWE_A128GCM_DL6: SchemaClass = SchemaClass {
1079    uuid: UUID_SCHEMA_CLASS_KEY_OBJECT_JWE_A128GCM,
1080    name: EntryClass::KeyObjectJweA128GCM.into(),
1081    description: "A marker class indicating that this keyobject must provide jwe aes-256-gcm capability.".to_string(),
1082    systemsupplements: vec![
1083        EntryClass::KeyObject.into(),
1084    ],
1085    ..Default::default()
1086};
1087
1088pub static ref SCHEMA_CLASS_KEY_OBJECT_INTERNAL_DL6: SchemaClass = SchemaClass {
1089    uuid: UUID_SCHEMA_CLASS_KEY_OBJECT_INTERNAL,
1090    name: EntryClass::KeyObjectInternal.into(),
1091    description: "A cryptographic key object that can be used by the internal provider".to_string(),
1092    systemmay: vec![
1093        Attribute::KeyInternalData,
1094    ],
1095    systemsupplements: vec![
1096        EntryClass::KeyObject.into(),
1097    ],
1098    ..Default::default()
1099};
1100
1101pub static ref SCHEMA_CLASS_CLIENT_CERTIFICATE_DL7: SchemaClass = SchemaClass {
1104    uuid: UUID_SCHEMA_CLASS_CLIENT_CERTIFICATE,
1105    name: EntryClass::ClientCertificate.into(),
1106    description: "A client authentication certificate".to_string(),
1107    systemmay: vec![],
1108    systemmust: vec![
1109        Attribute::Certificate,
1110        Attribute::Refers,
1111    ],
1112    ..Default::default()
1113};
1114
1115pub static ref SCHEMA_CLASS_APPLICATION_DL8: SchemaClass = SchemaClass {
1116    uuid: UUID_SCHEMA_CLASS_APPLICATION,
1117    name: EntryClass::Application.into(),
1118
1119    description: "The class representing an application".to_string(),
1120    systemmust: vec![Attribute::Name, Attribute::LinkedGroup],
1121    systemmay: vec![Attribute::Description],
1122    systemsupplements: vec![EntryClass::ServiceAccount.into()],
1123    ..Default::default()
1124};
1125
1126);