Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
19639773
Commit
19639773
authored
Mar 14, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tune_sssd.sh: small fixes
parent
d4b8e1a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
tune_sssd.sh
dc-client/tune_sssd.sh
+16
-7
No files found.
dc-client/tune_sssd.sh
View file @
19639773
...
...
@@ -10,8 +10,11 @@ fatal()
exit
1
}
epm
-q
etckeeper
||
fatal
"Install etckeeper for /etc/ before"
[
-d
/etc/.git
]
||
fatal
"initialize /etc with etckeeper init"
if
epm assure etckeeper
;
then
[
-d
/etc/.git
]
||
fatal
"For first, initialize /etc with # etckeeper init"
else
echo
"Can't install etckeeper, so skipping it"
fi
ADMIN
=
Administrator
if
[
-n
"
$1
"
]
;
then
...
...
@@ -44,6 +47,13 @@ case $(epm print info -d) in
;;
Fedora|RedOS|GosLinux|CentOS|RHEL
)
epmi
--skip
installed krb5-workstation ldb-tools sssd-ad samba-common-tools
;;
*
)
fatal
"Unsupported distro
$(
epm print info
-d
)
"
;;
esac
if
[
-d
/etc/krb5.conf.d/
]
;
then
cat
<<
EOF
>/etc/krb5.conf.d/ad
[libdefaults]
dns_lookup_kdc = true
...
...
@@ -52,11 +62,10 @@ cat <<EOF >/etc/krb5.conf.d/ad
EOF
# rdns disabled!
# See https://bugs.etersoft.ru/show_bug.cgi?id=15473#c13
;;
*
)
fatal
"Unsupported distro
$(
epm print info
-d
)
"
;;
esac
else
echo
"Can't set dns_lookup* in /etc/krb5.conf.d"
fi
if
!
which subst 2>/dev/null
;
then
subst
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment