ldap-rest 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/index.js +1 -1
- package/dist/config/args.js +1 -1
- package/dist/lib/expressFormatedResponses.js +1 -1
- package/dist/lib/ldapActions.js +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/plugins/ldap/passwordPolicy.js +1 -0
- package/dist/src/config/args.d.ts +9 -0
- package/dist/src/lib/ldapActions.d.ts +2 -0
- package/dist/src/lib/utils.d.ts +17 -0
- package/dist/src/plugins/ldap/passwordPolicy.d.ts +70 -0
- package/docs/presentations/en.md +2 -2
- package/docs/presentations/fr.md +2 -2
- package/docs/usage/plugins/ldap/README.md +21 -9
- package/docs/usage/plugins/ldap/password-policy.md +454 -0
- package/package.json +39 -1
- package/static/schemas/standard/automountMaps.json +37 -0
- package/static/schemas/standard/dhcpHosts.json +52 -0
- package/static/schemas/standard/dnsRecords.json +102 -0
- package/static/schemas/standard/netgroups.json +48 -0
- package/static/schemas/standard/posixAccounts.json +92 -0
- package/static/schemas/standard/posixGroups.json +49 -0
- package/static/schemas/standard/sshPublicKeys.json +49 -0
- package/static/schemas/standard/sudoRules.json +87 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entity": {
|
|
3
|
+
"name": "dnsRecord",
|
|
4
|
+
"mainAttribute": "dc",
|
|
5
|
+
"objectClass": ["top", "dNSDomain2"],
|
|
6
|
+
"singularName": "dnsRecord",
|
|
7
|
+
"pluralName": "dnsRecords",
|
|
8
|
+
"base": "ou=dns,__ldap_base__"
|
|
9
|
+
},
|
|
10
|
+
"strict": false,
|
|
11
|
+
"attributes": {
|
|
12
|
+
"objectClass": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"test": "^[a-zA-Z][a-zA-Z0-9-]*$"
|
|
17
|
+
},
|
|
18
|
+
"default": ["top", "dNSDomain2"],
|
|
19
|
+
"required": true,
|
|
20
|
+
"fixed": true
|
|
21
|
+
},
|
|
22
|
+
"dc": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"test": "^[a-zA-Z0-9@._*-]+$",
|
|
25
|
+
"required": true,
|
|
26
|
+
"role": "identifier"
|
|
27
|
+
},
|
|
28
|
+
"dNSTTL": {
|
|
29
|
+
"type": "number",
|
|
30
|
+
"required": false
|
|
31
|
+
},
|
|
32
|
+
"dNSClass": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"default": "IN",
|
|
35
|
+
"required": false
|
|
36
|
+
},
|
|
37
|
+
"aRecord": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"test": "^(?:[0-9]{1,3}\\.){3}[0-9]{1,3}$"
|
|
42
|
+
},
|
|
43
|
+
"required": false
|
|
44
|
+
},
|
|
45
|
+
"aAAARecord": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"items": {
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
"required": false
|
|
51
|
+
},
|
|
52
|
+
"mXRecord": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"items": {
|
|
55
|
+
"type": "string"
|
|
56
|
+
},
|
|
57
|
+
"required": false
|
|
58
|
+
},
|
|
59
|
+
"nSRecord": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
},
|
|
64
|
+
"required": false
|
|
65
|
+
},
|
|
66
|
+
"cNAMERecord": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"items": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"required": false
|
|
72
|
+
},
|
|
73
|
+
"pTRRecord": {
|
|
74
|
+
"type": "array",
|
|
75
|
+
"items": {
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
"required": false
|
|
79
|
+
},
|
|
80
|
+
"tXTRecord": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"items": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
"required": false
|
|
86
|
+
},
|
|
87
|
+
"sRVRecord": {
|
|
88
|
+
"type": "array",
|
|
89
|
+
"items": {
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
"required": false
|
|
93
|
+
},
|
|
94
|
+
"sOARecord": {
|
|
95
|
+
"type": "array",
|
|
96
|
+
"items": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
},
|
|
99
|
+
"required": false
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entity": {
|
|
3
|
+
"name": "netgroup",
|
|
4
|
+
"mainAttribute": "cn",
|
|
5
|
+
"objectClass": ["top", "nisNetgroup"],
|
|
6
|
+
"singularName": "netgroup",
|
|
7
|
+
"pluralName": "netgroups",
|
|
8
|
+
"base": "ou=netgroups,__ldap_base__"
|
|
9
|
+
},
|
|
10
|
+
"strict": true,
|
|
11
|
+
"attributes": {
|
|
12
|
+
"objectClass": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"test": "^[a-zA-Z][a-zA-Z0-9-]*$"
|
|
17
|
+
},
|
|
18
|
+
"default": ["top", "nisNetgroup"],
|
|
19
|
+
"required": true,
|
|
20
|
+
"fixed": true
|
|
21
|
+
},
|
|
22
|
+
"cn": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"test": "^[a-zA-Z0-9._-]{1,255}$",
|
|
25
|
+
"required": true,
|
|
26
|
+
"role": "identifier"
|
|
27
|
+
},
|
|
28
|
+
"nisNetgroupTriple": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"test": "^\\([^,]*,[^,]*,[^)]*\\)$"
|
|
33
|
+
},
|
|
34
|
+
"required": false
|
|
35
|
+
},
|
|
36
|
+
"memberNisNetgroup": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"required": false
|
|
42
|
+
},
|
|
43
|
+
"description": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"required": false
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entity": {
|
|
3
|
+
"name": "posixAccount",
|
|
4
|
+
"mainAttribute": "uid",
|
|
5
|
+
"objectClass": ["top", "posixAccount", "shadowAccount"],
|
|
6
|
+
"singularName": "posixAccount",
|
|
7
|
+
"pluralName": "posixAccounts",
|
|
8
|
+
"base": "ou=users,__ldap_base__"
|
|
9
|
+
},
|
|
10
|
+
"strict": true,
|
|
11
|
+
"attributes": {
|
|
12
|
+
"objectClass": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"test": "^[a-zA-Z][a-zA-Z0-9-]*$"
|
|
17
|
+
},
|
|
18
|
+
"default": ["top", "posixAccount", "shadowAccount"],
|
|
19
|
+
"required": true,
|
|
20
|
+
"fixed": true
|
|
21
|
+
},
|
|
22
|
+
"uid": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"test": "^[a-z_][a-z0-9_-]{0,31}$",
|
|
25
|
+
"required": true,
|
|
26
|
+
"role": "identifier"
|
|
27
|
+
},
|
|
28
|
+
"cn": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"required": true
|
|
31
|
+
},
|
|
32
|
+
"uidNumber": {
|
|
33
|
+
"type": "number",
|
|
34
|
+
"required": true
|
|
35
|
+
},
|
|
36
|
+
"gidNumber": {
|
|
37
|
+
"type": "number",
|
|
38
|
+
"required": true
|
|
39
|
+
},
|
|
40
|
+
"homeDirectory": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"test": "^/.*$",
|
|
43
|
+
"required": true
|
|
44
|
+
},
|
|
45
|
+
"loginShell": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"test": "^/.*$",
|
|
48
|
+
"default": "/bin/bash",
|
|
49
|
+
"required": false
|
|
50
|
+
},
|
|
51
|
+
"gecos": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"required": false
|
|
54
|
+
},
|
|
55
|
+
"description": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"required": false
|
|
58
|
+
},
|
|
59
|
+
"userPassword": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"required": false
|
|
62
|
+
},
|
|
63
|
+
"shadowLastChange": {
|
|
64
|
+
"type": "number",
|
|
65
|
+
"required": false
|
|
66
|
+
},
|
|
67
|
+
"shadowMin": {
|
|
68
|
+
"type": "number",
|
|
69
|
+
"required": false
|
|
70
|
+
},
|
|
71
|
+
"shadowMax": {
|
|
72
|
+
"type": "number",
|
|
73
|
+
"required": false
|
|
74
|
+
},
|
|
75
|
+
"shadowWarning": {
|
|
76
|
+
"type": "number",
|
|
77
|
+
"required": false
|
|
78
|
+
},
|
|
79
|
+
"shadowInactive": {
|
|
80
|
+
"type": "number",
|
|
81
|
+
"required": false
|
|
82
|
+
},
|
|
83
|
+
"shadowExpire": {
|
|
84
|
+
"type": "number",
|
|
85
|
+
"required": false
|
|
86
|
+
},
|
|
87
|
+
"shadowFlag": {
|
|
88
|
+
"type": "number",
|
|
89
|
+
"required": false
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entity": {
|
|
3
|
+
"name": "posixGroup",
|
|
4
|
+
"mainAttribute": "cn",
|
|
5
|
+
"objectClass": ["top", "posixGroup"],
|
|
6
|
+
"singularName": "posixGroup",
|
|
7
|
+
"pluralName": "posixGroups",
|
|
8
|
+
"base": "ou=groups,__ldap_base__"
|
|
9
|
+
},
|
|
10
|
+
"strict": true,
|
|
11
|
+
"attributes": {
|
|
12
|
+
"objectClass": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"test": "^[a-zA-Z][a-zA-Z0-9-]*$"
|
|
17
|
+
},
|
|
18
|
+
"default": ["top", "posixGroup"],
|
|
19
|
+
"required": true,
|
|
20
|
+
"fixed": true
|
|
21
|
+
},
|
|
22
|
+
"cn": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"test": "^[a-z_][a-z0-9_-]{0,31}$",
|
|
25
|
+
"required": true,
|
|
26
|
+
"role": "identifier"
|
|
27
|
+
},
|
|
28
|
+
"gidNumber": {
|
|
29
|
+
"type": "number",
|
|
30
|
+
"required": true
|
|
31
|
+
},
|
|
32
|
+
"memberUid": {
|
|
33
|
+
"type": "array",
|
|
34
|
+
"items": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"test": "^[a-z_][a-z0-9_-]{0,31}$"
|
|
37
|
+
},
|
|
38
|
+
"required": false
|
|
39
|
+
},
|
|
40
|
+
"description": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"required": false
|
|
43
|
+
},
|
|
44
|
+
"userPassword": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"required": false
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entity": {
|
|
3
|
+
"name": "sshPublicKey",
|
|
4
|
+
"mainAttribute": "uid",
|
|
5
|
+
"objectClass": ["top", "ldapPublicKey", "inetOrgPerson"],
|
|
6
|
+
"singularName": "sshPublicKey",
|
|
7
|
+
"pluralName": "sshPublicKeys",
|
|
8
|
+
"base": "ou=users,__ldap_base__"
|
|
9
|
+
},
|
|
10
|
+
"strict": true,
|
|
11
|
+
"attributes": {
|
|
12
|
+
"objectClass": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"test": "^[a-zA-Z][a-zA-Z0-9-]*$"
|
|
17
|
+
},
|
|
18
|
+
"default": ["top", "ldapPublicKey", "inetOrgPerson"],
|
|
19
|
+
"required": true,
|
|
20
|
+
"fixed": true
|
|
21
|
+
},
|
|
22
|
+
"uid": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"test": "^[a-zA-Z0-9._-]{1,255}$",
|
|
25
|
+
"required": true,
|
|
26
|
+
"role": "identifier"
|
|
27
|
+
},
|
|
28
|
+
"cn": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"required": true
|
|
31
|
+
},
|
|
32
|
+
"sn": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"required": true
|
|
35
|
+
},
|
|
36
|
+
"sshPublicKey": {
|
|
37
|
+
"type": "array",
|
|
38
|
+
"items": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"test": "^(ssh-rsa|ssh-dss|ssh-ed25519|ecdsa-sha2-nistp256|ecdsa-sha2-nistp384|ecdsa-sha2-nistp521|sk-ssh-ed25519@openssh\\.com|sk-ecdsa-sha2-nistp256@openssh\\.com) .*$"
|
|
41
|
+
},
|
|
42
|
+
"required": false
|
|
43
|
+
},
|
|
44
|
+
"description": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"required": false
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entity": {
|
|
3
|
+
"name": "sudoRule",
|
|
4
|
+
"mainAttribute": "cn",
|
|
5
|
+
"objectClass": ["top", "sudoRole"],
|
|
6
|
+
"singularName": "sudoRule",
|
|
7
|
+
"pluralName": "sudoRules",
|
|
8
|
+
"base": "ou=sudoers,__ldap_base__"
|
|
9
|
+
},
|
|
10
|
+
"strict": true,
|
|
11
|
+
"attributes": {
|
|
12
|
+
"objectClass": {
|
|
13
|
+
"type": "array",
|
|
14
|
+
"items": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"test": "^[a-zA-Z][a-zA-Z0-9-]*$"
|
|
17
|
+
},
|
|
18
|
+
"default": ["top", "sudoRole"],
|
|
19
|
+
"required": true,
|
|
20
|
+
"fixed": true
|
|
21
|
+
},
|
|
22
|
+
"cn": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"test": "^[a-zA-Z0-9._-]{1,255}$",
|
|
25
|
+
"required": true,
|
|
26
|
+
"role": "identifier"
|
|
27
|
+
},
|
|
28
|
+
"sudoUser": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"required": true
|
|
34
|
+
},
|
|
35
|
+
"sudoHost": {
|
|
36
|
+
"type": "array",
|
|
37
|
+
"items": {
|
|
38
|
+
"type": "string"
|
|
39
|
+
},
|
|
40
|
+
"required": true
|
|
41
|
+
},
|
|
42
|
+
"sudoCommand": {
|
|
43
|
+
"type": "array",
|
|
44
|
+
"items": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"required": true
|
|
48
|
+
},
|
|
49
|
+
"sudoOption": {
|
|
50
|
+
"type": "array",
|
|
51
|
+
"items": {
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"required": false
|
|
55
|
+
},
|
|
56
|
+
"sudoRunAsUser": {
|
|
57
|
+
"type": "array",
|
|
58
|
+
"items": {
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
"required": false
|
|
62
|
+
},
|
|
63
|
+
"sudoRunAsGroup": {
|
|
64
|
+
"type": "array",
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"required": false
|
|
69
|
+
},
|
|
70
|
+
"sudoNotBefore": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"required": false
|
|
73
|
+
},
|
|
74
|
+
"sudoNotAfter": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"required": false
|
|
77
|
+
},
|
|
78
|
+
"sudoOrder": {
|
|
79
|
+
"type": "number",
|
|
80
|
+
"required": false
|
|
81
|
+
},
|
|
82
|
+
"description": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"required": false
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|