Skip to content

Commit

Permalink
- add/remove unix-nis PAM module option if needed (bnc#848963)
Browse files Browse the repository at this point in the history
- 3.0.1
  • Loading branch information
jsuchome committed Nov 5, 2013
1 parent ef99068 commit f80ca26
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.0
3.0.1
6 changes: 6 additions & 0 deletions package/yast2-nis-client.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Nov 5 11:51:47 CET 2013 - jsuchome@suse.cz

- add/remove unix-nis PAM module option if needed (bnc#848963)
- 3.0.1

-------------------------------------------------------------------
Wed Jul 31 08:34:09 UTC 2013 - yast-devel@opensuse.org

Expand Down
10 changes: 10 additions & 0 deletions src/modules/Nis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def main
Yast.import "IP"
Yast.import "Message"
Yast.import "Nsswitch"
Yast.import "Pam"
Yast.import "Package"
Yast.import "Progress"
Yast.import "Report"
Expand Down Expand Up @@ -1287,6 +1288,15 @@ def Write
Service.Start("autofs") if @_start_autofs
end

# adapt PAM if needed (bnc#848963)
if @touched && Pam.Enabled("unix")
if @start
Pam.Add("unix-nis")
else
Pam.Remove("unix-nis")
end
end

SuSEFirewall.ActivateConfiguration

# final stage
Expand Down

0 comments on commit f80ca26

Please sign in to comment.