Module: Yast::KerberosServerWizardsInclude

Defined in:
../../src/include/kerberos-server/wizards.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) initialize_kerberos_server_wizards(include_target)



32
33
34
35
36
37
38
39
40
# File '../../src/include/kerberos-server/wizards.rb', line 32

def initialize_kerberos_server_wizards(include_target)
  textdomain "kerberos-server"

  Yast.import "Sequencer"
  Yast.import "Wizard"
  Yast.import "Package"

  Yast.include include_target, "kerberos-server/complex.rb"
end

- (Object) KerberosServerAutoSequence

Whole configuration of kerberos-server but without reading and writing. For use with autoinstallation.

Returns:

  • sequence result



163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
# File '../../src/include/kerberos-server/wizards.rb', line 163

def KerberosServerAutoSequence
  # Initialization dialog caption
  caption = _("Kerberos Server Configuration")
  # Initialization dialog contents
  contents = Label(_("Initializing..."))

  Wizard.CreateDialog
  Wizard.SetDesktopTitleAndIcon("kerberos-server")
  Wizard.SetContentsButtons(
    caption,
    contents,
    "",
    Label.BackButton,
    Label.NextButton
  )

  ret = MainSequence()

  UI.CloseDialog
  deep_copy(ret)
end

- (Object) KerberosServerSequence

Whole configuration of kerberos-server

Returns:

  • sequence result



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
# File '../../src/include/kerberos-server/wizards.rb', line 71

def KerberosServerSequence
  aliases = {
    "read"       => lambda { ReadDialog() },
    "main"       => lambda { MainSequence() },
    "dbtype"     => lambda { AskDBtypeDialog() },
    "basicf"     => lambda { AskBasicDialog(true) },
    "basicli"    => lambda { AskBasicDialog(false) },
    "basiclu"    => lambda { AskBasicDialog(false) },
    "ldapinit"   => lambda { AskLdapDialog(true) },
    "ldapuse"    => lambda { AskLdapDialog(false) },
    "advancedf"  => lambda { AdvancedConfiguration(false) },
    "advancedli" => lambda { AdvancedConfiguration(true) },
    "advancedlu" => lambda { AdvancedConfiguration(true) },
    "write"      => lambda { WriteDialog() }
  }

  sequence = {
    "ws_start"   => "read",
    "read"       => {
      :abort => :abort,
      :next  => "main",
      :init  => "dbtype",
      :back  => :abort
    },
    "main"       => { :abort => :abort, :next => "write" },
    "dbtype"     => {
      :abort   => :abort,
      :file    => "basicf",
      :newldap => "basicli",
      :useldap => "basiclu",
      :back    => :abort
    },
    "basicf"     => {
      :abort    => :abort,
      :next     => "write",
      :back     => "dbtype",
      :advanced => "advancedf"
    },
    "basicli"    => {
      :abort    => :abort,
      :next     => "ldapinit",
      :back     => "dbtype",
      :advanced => "advancedli"
    },
    "basiclu"    => {
      :abort    => :abort,
      :next     => "ldapuse",
      :back     => "dbtype",
      :advanced => "advancedlu"
    },
    "ldapinit"   => {
      :abort    => :abort,
      :next     => "write",
      :back     => "basicli",
      :advanced => "advancedli"
    },
    "ldapuse"    => {
      :abort    => :abort,
      :next     => "write",
      :back     => "basiclu",
      :advanced => "advancedlu"
    },
    "advancedf"  => {
      :abort => :abort,
      :next  => "basicf",
      :back  => "basicf"
    },
    "advancedli" => {
      :abort => :abort,
      :next  => "ldapinit",
      :back  => "ldapinit"
    },
    "advancedlu" => {
      :abort => :abort,
      :next  => "ldapuse",
      :back  => "ldapuse"
    },
    "write"      => { :abort => :abort, :next => :next, :back => "main" }
  }

  Wizard.CreateDialog
  Wizard.SetDesktopTitleAndIcon("kerberos-server")

  ret = Sequencer.Run(aliases, sequence)

  UI.CloseDialog
  deep_copy(ret)
end

- (Object) MainSequence

Main workflow of the kerberos-server configuration

Returns:

  • sequence result



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File '../../src/include/kerberos-server/wizards.rb', line 44

def MainSequence
  aliases = { "summary" => lambda { SummaryDialog() }, "advanced" => lambda do
    AdvancedConfiguration(false)
  end }

  sequence = {
    "ws_start" => "summary",
    "summary"  => {
      :abort => :abort,
      :back  => :abort,
      :next  => :next,
      :edit  => "advanced"
    },
    "advanced" => {
      :abort => :abort,
      :next  => "summary",
      :back  => "summary"
    }
  }

  ret = Sequencer.Run(aliases, sequence)

  deep_copy(ret)
end