~ubuntu-branches/ubuntu/trusty/opendrim-lmp-simpleidentitymanagement/trusty-proposed

« back to all changes in this revision

Viewing changes to registration/OpenDRIM_AccountCapabilities.sh

  • Committer: Bazaar Package Importer
  • Author(s): Guillaume BOTTEX
  • Date: 2010-06-21 15:54:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100621155400-myesv5hd2f3s8x9y
Tags: upstream-1.0.0
ImportĀ upstreamĀ versionĀ 1.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
 
 
3
#################################################################################
 
4
# Linux Management Providers (LMP), Simple Identity Management provider package
 
5
# Copyright (C) 2007 Frederic Desmons, ETRI <desmons@etri.re.kr, desmons_frederic@yahoo.fr>
 
6
 
7
# This program is being developed under the "OpenDRIM" project.
 
8
# The "OpenDRIM" project web page: http://opendrim.sourceforge.net
 
9
# The "OpenDRIM" project mailing list: opendrim@googlegroups.com
 
10
 
11
# This program is free software; you can redistribute it and/or
 
12
# modify it under the terms of the GNU General Public License
 
13
# as published by the Free Software Foundation; version 2
 
14
# of the License.
 
15
 
16
# This program is distributed in the hope that it will be useful,
 
17
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
19
# GNU General Public License for more details.
 
20
 
21
# You should have received a copy of the GNU General Public License
 
22
# along with this program; if not, write to the Free Software
 
23
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 
24
#################################################################################
 
25
 
 
26
#################################################################################
 
27
# To contributors, please leave your contact information in this section
 
28
# AND comment your changes in the source code.
 
29
 
30
# Modified by 2009 Khahramon NURIDDINOV, TUIT <qahramon0786@gmail.com>
 
31
# Modified by 2009 Guillaume BOTTEX, ETRI <guillaumebottex@etri.re.kr>
 
32
#################################################################################
 
33
 
 
34
 
 
35
if test "$3" = pegasus
 
36
then
 
37
        
 
38
        cimmof -aE -n $1 $6/mof/OpenDRIM_AccountCapabilities.mof
 
39
 
 
40
        OUTFILE=./TEMP_REGISTRATION
 
41
        
 
42
cat >> $OUTFILE << EOFC
 
43
instance of PG_ProviderModule {
 
44
Caption = "OpenDRIM_AccountCapabilities provider module";
 
45
Name = "Simple_Identity_Management_OpenDRIM_AccountCapabilitiesModule";
 
46
Location = "cmpiSimple_Identity_Management_OpenDRIM_AccountCapabilitiesProvider";
 
47
Vendor = "$2";
 
48
Version = "$5";
 
49
InterfaceType = "CMPI";
 
50
InterfaceVersion = "2.0.0";
 
51
};
 
52
 
 
53
instance of PG_Provider {
 
54
Caption = "OpenDRIM_AccountCapabilities provider";
 
55
Name = "Simple_Identity_Management_OpenDRIM_AccountCapabilitiesProvider";
 
56
ProviderModuleName = "Simple_Identity_Management_OpenDRIM_AccountCapabilitiesModule";
 
57
};
 
58
 
 
59
instance of PG_ProviderCapabilities {
 
60
Caption = "OpenDRIM_AccountCapabilities provider capabilities";
 
61
ProviderModuleName = "Simple_Identity_Management_OpenDRIM_AccountCapabilitiesModule";
 
62
ProviderName = "Simple_Identity_Management_OpenDRIM_AccountCapabilitiesProvider";
 
63
ClassName = "OpenDRIM_AccountCapabilities";
 
64
ProviderType = {2, 5};
 
65
Namespaces = {"$1"};
 
66
SupportedProperties = {"Caption", "Description", "InstanceID", "ElementName", "MaxElementNameLen", "RequestedStatesSupported", "ElementNameMask", "StateAwareness", "PasswordHistory", "MaximumPasswordAge", "ComplexPasswordRulesSupported", "DisableOnInactivity", "RequestedStateSupported", "ElementNameEditSupported", "DisableTimeoutAfterPasswordExpiration"};
 
67
SupportedMethods = {"CreateGoalSettings"};
 
68
CapabilityID = "Simple_Identity_Management_OpenDRIM_AccountCapabilities";
 
69
};
 
70
 
 
71
EOFC
 
72
        
 
73
        cimmof -n root/PG_InterOp $OUTFILE
 
74
        
 
75
        rm -f $OUTFILE
 
76
        
 
77
fi
 
78
 
 
79
if test "$3" = sfcb
 
80
then
 
81
        
 
82
        OUTFILE=./OpenDRIM_AccountCapabilities.reg
 
83
        
 
84
cat >> $OUTFILE <<EOFC
 
85
[OpenDRIM_AccountCapabilities]   
 
86
   provider: Simple_Identity_Management_OpenDRIM_AccountCapabilitiesProvider
 
87
   location: cmpiSimple_Identity_Management_OpenDRIM_AccountCapabilitiesProvider
 
88
   type: instance method
 
89
   namespace: $1
 
90
#
 
91
EOFC
 
92
        
 
93
        sfcbstage -r $OUTFILE -n $1 $6/mof/OpenDRIM_AccountCapabilities.mof
 
94
        
 
95
        rm -f $OUTFILE
 
96
        
 
97
        sfcbrepos -f
 
98
        
 
99
fi
 
100
 
 
101
if test "$3" = openwbem
 
102
then
 
103
        
 
104
        OUTFILE=./OpenDRIM_AccountCapabilities-reg.mof
 
105
        rm -f $OUTFILE
 
106
        sed "s/Provider *( *\"cmpi:/Provider(\"cmpi::/g" < $6/mof/OpenDRIM_AccountCapabilities.mof >> $OUTFILE
 
107
        owmofc -u http://localhost/$1 $OUTFILE
 
108
        
 
109
        rm -f $OUTFILE
 
110
        
 
111
fi