Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bsc1172340 #94

Merged
merged 5 commits into from
Apr 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions package/yast2-auth-client.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Nov 24 10:53:05 UTC 2020 - Noel Power <nopower@suse.com>

- Fix cli 'help' handling for auth-client & ldapkrb;
(bsc#1172340).
- 4.3.2

-------------------------------------------------------------------
Mon Aug 10 17:01:10 CEST 2020 - schubi@suse.de

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-auth-client.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-auth-client
Version: 4.3.1
Version: 4.3.2
Release: 0
Url: https://github.com/yast/yast-auth-client
Summary: YaST2 - Centralised System Authentication Configuration
Expand Down
9 changes: 7 additions & 2 deletions src/clients/auth-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
# Authors: Howard Guo <hguo@suse.com>

require 'auth/authconf'
require 'auth/auth-cli'
require 'authui/main_dialog'

Auth::AuthConfInst.read_all
Auth::MainDialog.new(:sssd).run
if Yast::WFM.Args.empty?
Auth::AuthConfInst.read_all
Auth::MainDialog.new(:sssd).run
else
Auth::CLI.run("auth-client")
end
9 changes: 7 additions & 2 deletions src/clients/ldapkrb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
# Authors: Howard Guo <hguo@suse.com>

require 'auth/authconf'
require 'auth/auth-cli'
require 'authui/main_dialog'

Auth::AuthConfInst.read_all
Auth::MainDialog.new(:ldapkrb).run
if Yast::WFM.Args.empty?
Auth::AuthConfInst.read_all
Auth::MainDialog.new(:ldapkrb).run
else
Auth::CLI.run("ldapkrb")
end
32 changes: 32 additions & 0 deletions src/lib/auth/auth-cli.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright (c) 2020 SUSE LLC
#
# All Rights Reserved.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of version 2 of the GNU General Public License as published
# by the Free Software Foundation.
#
# This program 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 General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, contact SUSE LLC.
#
# To contact SUSE LLC about this file by physical or electronic mail, you may
# find current contact information at www.suse.com.

Yast.import "CommandLine"
module Auth
class CLI
extend Yast::I18n

def self.run(cmd="auth")
cmdline_description = {
"id" => cmd
}
Yast::CommandLine.Run(cmdline_description)
end
end
end
2 changes: 1 addition & 1 deletion src/lib/authui/ldapkrb/main_dialog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def render_ldap
else
UI.ChangeWidget(Id(:ldap_bind_policy), :CurrentButton, :ldap_bind_policy_hard)
end
if AuthConfInst.ldap_conf['ssl'] == 'on'
if AuthConfInst.ldap_conf['ssl'] == 'yes'
UI.ChangeWidget(Id(:ldap_tls_method), :CurrentButton, :ldap_tls_method_yes)
elsif AuthConfInst.ldap_conf['ssl'] == 'start_tls'
UI.ChangeWidget(Id(:ldap_tls_method), :CurrentButton, :ldap_tls_method_starttls)
Expand Down