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
ab1e1d92
Commit
ab1e1d92
authored
Oct 25, 2019
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tune_sssd.sh: improvements
parent
a965adbf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
tune_sssd.sh
dc-client/tune_sssd.sh
+8
-5
No files found.
dc-client/tune_sssd.sh
View file @
ab1e1d92
...
...
@@ -22,7 +22,7 @@ fi
epm assure bind-utils
||
fatal
# Get REALM (needed for sssd tuning only) from DNS
REALM
=
$(
host
-t
txt _kerberos |
sed
-e
's|.*"\(.*\)".*|\1|'
)
#"
if
[
-z
"
$REALM
"
]
;
then
if
[
-z
"
$REALM
"
]
||
echo
"
$REALM
"
|
grep
"not found"
;
then
if
[
-n
"
$1
"
]
;
then
REALM
=
"
$1
"
shift
...
...
@@ -161,20 +161,23 @@ kinit $ADMIN || exit
echo
"Join to domain... "
net ads
join
-k
||
exit
kdestroy
control system-auth sss
serv nscd off
serv sssd on
case
$(
distr_info
-d
)
in
ALTLinux
)
control system-auth sss
# TODO: use common domain groups
# TODO: check libnss-role version
epm assure rolelst libnss-role
roleadd etersysadmin wheel
;;
*
)
echo
"Unknown system
$(
distr_info
-d
)
. Check /etc/pam.d/system-auth for pam_sss.so using"
;;
esac
serv nscd off
serv sssd on
subst
"s|^# GSSAPIAuthentication no| GSSAPIAuthentication yes|"
/etc/openssh/ssh_config
subst
"s|^# GSSAPIDelegateCredentials no| GSSAPIDelegateCredentials yes|"
/etc/openssh/ssh_config
...
...
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