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
84dd1f68
Commit
84dd1f68
authored
Feb 07, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tune_sssd.sh: small fixes, add RedOS support
parent
11e54309
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
tune_sssd.sh
dc-client/tune_sssd.sh
+12
-6
No files found.
dc-client/tune_sssd.sh
View file @
84dd1f68
...
...
@@ -34,16 +34,22 @@ echo "Use REALM $REALM ..."
case
$(
epm print info
-d
)
in
Ubuntu|Debian
)
Ubuntu|Debian
|AstraLinux
)
# Ubuntu
epmi
--skip-installed
samba-common-bin krb5-config krb5-user ldb-tools sssd-ad samba
;;
ALTLinux
)
epmi
--skip-installed
krb5-kinit ldb-tools sssd-ad samba-common-tools
epmi
--skip-installed
krb5-kinit ldb-tools sssd-ad samba-common-tools
samba-common-client samba-common
# pam_mount task-auth-ad-sssd
;;
Fedora|CentOS|RHEL
)
Fedora|
RedOS|GosLinux|
CentOS|RHEL
)
epmi
--skip
installed krb5-workstation ldb-tools sssd-ad samba-common-tools
cat
<<
EOF
>/etc/kdrb5.conf.d/ad
[libdefaults]
dns_lookup_kdc = true
dns_lookup_realm = true
rdns = true
EOF
;;
*
)
fatal
"Unsupported distro
$(
epm print info
-d
)
"
...
...
@@ -141,7 +147,7 @@ WORKGROUP=$(echo "$REALM" | sed -e "s|\..*||")
if
!
grep
-q
"realm =
$REALM
"
/etc/samba/smb.conf
;
then
cat
<<
EOF
>>/etc/samba/smb.conf
[global]
[global]
security = ads
realm =
$REALM
workgroup =
$WORKGROUP
...
...
@@ -182,8 +188,8 @@ serv sssd on
OPENSSHDIR
=
/etc/openssh
[
!
-d
"
$OPENSSHDIR
"
]
&&
[
-d
"/etc/ssh"
]
&&
OPENSSHDIR
=
/etc/ssh
subst
"s|^#
GSSAPIAuthentication no|
GSSAPIAuthentication yes|"
$OPENSSHDIR
/ssh_config
subst
"s|^#
GSSAPIDelegateCredentials no|
GSSAPIDelegateCredentials yes|"
$OPENSSHDIR
/ssh_config
subst
"s|^#
\(
*
\)
GSSAPIAuthentication no|
\1
GSSAPIAuthentication yes|"
$OPENSSHDIR
/ssh_config
subst
"s|^#
\(
*
\)
GSSAPIDelegateCredentials no|
\1
GSSAPIDelegateCredentials yes|"
$OPENSSHDIR
/ssh_config
echo
"Done. Don't bother about DNS errors above"
echo
"Check https://www.altlinux.org/SSSD/AD for detailed description."
...
...
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