summaryrefslogtreecommitdiffstats
path: root/mof/60_LMI_SSSD.mof
blob: bb6dda731aded0c6df4905f05eda8b0e894257d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
/*
 * Copyright (C) 2014 Red Hat, Inc.  All rights reserved.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * Authors: Pavel Březina <pbrezina@redhat.com>
 */

[Version("0.1.0"), Provider("cmpi:cmpiLMI_SSSD"),
 Description("System Security Services Daemon")]
class LMI_SSSDService : CIM_Service
{

};

[Version("0.1.0"), Provider("cmpi:cmpiLMI_SSSD"),
 Abstract, Description("Base class for SSSD's components.")]
class LMI_SSSDComponent : CIM_ManagedElement
{
    [Key, Description("Name of the SSSD component.")]
    string Name;

    [Description("Type of the SSSD component."),
     ValueMap { "0", "1", "2" },
     Values { "Monitor", "Responder", "Backend" }]
    uint16 Type;

    [BitValues{"Reserved",
               "Reserved",
               "Reserved",
               "Reserved",
               "Fatal failures",
               "Critical failures",
               "Operation failures",
               "Minor failures",
               "Configuration settings",
               "Function data",
               "Trace function",
               "Reserved",
               "Trace libraries",
               "Trace internal",
               "Trace all",
               "Reserved"},
     Description("Debug level used within this component.")]
    uint16 DebugLevel;

    [Description("True if this process is enabled at SSSD startup and false "
                 "otherwise.")]
    boolean IsEnabled;

    [Description("Permanently change debug level of this component."),
     ValueMap { "0", "1", "2", "3" },
     Values { "Success", "Failed", "Operation not supported", "I/O error" }]
    uint32 SetDebugLevelPermanently([In] uint16 debug_level);
    
    [Description("Change debug level of this component but switch it back "
                 "to the original value when SSSD is restarted."),
     ValueMap { "0", "1", "2", "3" },
     Values { "Success", "Failed", "Operation not supported", "I/O error" }]
    uint32 SetDebugLevelTemporarily([In] uint16 debug_level);

    [Description("Enable this component. SSSD has to be restarted in order "
                 "this change to take any effect."),
     ValueMap { "0", "1", "2", "3" },
     Values { "Success", "Failed", "Operation not supported", "I/O error" }]
    uint32 Enable();
    
    [Description("Disable this component. SSSD has to be restarted in order "
                 "this change to take any effect."),
     ValueMap { "0", "1", "2", "3" },
     Values { "Success", "Failed", "Operation not supported", "I/O error" }]
    uint32 Disable();
};

[Version("0.1.0"), Provider("cmpi:cmpiLMI_SSSD"),
 Description("SSSD monitor. An SSSD component that executes the other "
             "components and makes sure they stay running. This component "
             "can not be disabled.")]
class LMI_SSSDMonitor : LMI_SSSDComponent
{

};

[Version("0.1.0"), Provider("cmpi:cmpiLMI_SSSD"),
 Description("SSSD responder. An SSSD component that implements one of the "
             "supported services and provides data to clients.")]
class LMI_SSSDResponder : LMI_SSSDComponent
{

};

[Version("0.1.0"), Provider("cmpi:cmpiLMI_SSSD"),
 Description("SSSD backend. An SSSD component that manages data from one "
             "domain and its subdomains.")]
class LMI_SSSDBackend : LMI_SSSDComponent
{

};

[Version("0.1.0"), Provider("cmpi:cmpiLMI_SSSD"),
 Description("Data provider module information.")]
class LMI_SSSDProvider : CIM_ManagedElement
{
    [Key, Description("Name of data class handled by the provider.")]
    string Type;

    [Key, Description("Name of the module that provides the desired data.")]
    string Module;
};

[Version("0.1.0"), Provider("cmpi:cmpiLMI_SSSD"),
 Description("SSSD domain.")]
class LMI_SSSDDomain : CIM_ManagedElement
{
    [Key, Description("Name of the domain.")]
    string Name;

    [Description("List of primary servers for this domain.")]
    string PrimaryServers[];

    [Description("List of backup servers for this domain.")]
    string BackupServers[];

    [Description("Main provider for this domain.")]
    string Provider;

    [Description("The Kerberos realm this domain is configured with.")]
    string Realm;

    [Description("The domain forest this domain belongs to.")]
    string Forest;

    [Description("Name of the parent domain. It is not set if this "
                 "domain is on top of the domain hierarchy.")]
    string ParentDomain;

    [Description("True if this is an autodiscovered subdomain.")]
    boolean IsSubdomain;

    [Description("Minimum UID and GID value for this domain.")]
    uint32 MinId;

    [Description("Maximum UID and GID value for this domain.")]
    uint32 MaxId;

    [Description("True if this domain supports enumeration.")]
    boolean Enumerate;

    [Description("True if objects from this domain can be accessed only via "
                 "fully qualified name.")]
    boolean UseFullyQualifiedNames;

    [Description("The login format this domain expects.")]
    string LoginFormat;

    [Description("Format of fully qualified name this domain uses.")]
    string FullyQualifiedNameFormat;
};

[Version("0.1.0"), Provider("cmpi:cmpiLMI_SSSD"), Association,
 Description("All available SSSD components.")]
class LMI_SSSDAvailableComponent
{
    [Key, Min(1), Max(1)]
    LMI_SSSDService REF SSSD;
    
    [Key]
    LMI_SSSDComponent REF Component;
};

[Version("0.1.0"), Provider("cmpi:cmpiLMI_SSSD"), Association,
 Description("Data provider modules configured for given backend.")]
class LMI_SSSDBackendProvider
{
    [Key, Max(1)]
    LMI_SSSDBackend REF Backend;
    
    [Key]
    LMI_SSSDProvider REF Provider;
};

[Version("0.1.0"), Provider("cmpi:cmpiLMI_SSSD"), Association,
 Description("All domains managed by SSSD.")]
class LMI_SSSDAvailableDomain
{
    [Key, Min(1), Max(1)]
    LMI_SSSDService REF SSSD;
    
    [Key]
    LMI_SSSDDomain REF Domain;
};

[Version("0.1.0"), Provider("cmpi:cmpiLMI_SSSD"), Association,
 Description("All top level domains associated with given backend.")]
class LMI_SSSDBackendDomain
{
    [Key, Max(1)]
    LMI_SSSDBackend REF Backend;
    
    [Key, Max(1)]
    LMI_SSSDDomain REF Domain;
};

[Version("0.1.0"), Provider("cmpi:cmpiLMI_SSSD"), Association,
 Description("All subdomains associated with given parent domain.")]
class LMI_SSSDDomainSubdomain
{
    [Key, Max(1)]
    LMI_SSSDDomain REF ParentDomain;
    
    [Key]
    LMI_SSSDDomain REF Subdomain;
};

[Version("0.1.0"), Provider("cmpi:cmpiLMI_SSSD"), Association]
class LMI_HostedSSSDService: CIM_HostedService
{
  [Override("Antecedent"),
   Description("The hosting System.") ]
  CIM_ComputerSystem REF Antecedent;

  [Override("Dependent"),
   Description("Instance of SSSD service.")]
  LMI_SSSDService REF Dependent;
};