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
3358139a
Commit
3358139a
authored
Dec 07, 2018
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tune_sssd.sh: improve config, remove old etersoft.conf
note: access_provider = ad can conflicts with DM
parent
002b4ea3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
2 deletions
+20
-2
tune_sssd.sh
dc-client/tune_sssd.sh
+20
-2
No files found.
dc-client/tune_sssd.sh
View file @
3358139a
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
# Use: ./tune_sssd.sh [AdminUser] [REALM]
# Use: ./tune_sssd.sh [AdminUser] [REALM]
# Check https://www.altlinux.org/SSSD/AD"
fatal
()
fatal
()
{
{
echo
"
$@
"
>
&2
echo
"
$@
"
>
&2
...
@@ -67,13 +69,28 @@ fi
...
@@ -67,13 +69,28 @@ fi
#fi
#fi
if
[
-d
/etc/sssd/conf.d
]
;
then
if
[
-d
/etc/sssd/conf.d
]
;
then
[
-f
/etc/sssd/conf.d/etersoft.conf
]
&&
rm
-vf
/etc/sssd/conf.d/etersoft.conf
cat
<<
EOF
>/etc/sssd/conf.d/ad.conf || fatal
cat
<<
EOF
>/etc/sssd/conf.d/ad.conf || fatal
[sssd]
[sssd]
config_file_version = 2
services = nss, pam
domains =
$REALM
domains =
$REALM
debug_level = 1
; Should be used until ALT#34124 will be resolved
user = root
[nss]
debug_level = 1
[pam]
debug_level = 1
[domain/
$REALM
]
[domain/
$REALM
]
id_provider = ad
id_provider = ad
auth_provider = ad
auth_provider = ad
# check https://docs.pagure.org/SSSD.sssd/design_pages/active_directory_access_control.html
access_provider = ad
access_provider = ad
chpass_provider = ad
chpass_provider = ad
...
@@ -81,11 +98,11 @@ default_shell = /bin/bash
...
@@ -81,11 +98,11 @@ default_shell = /bin/bash
fallback_homedir = /home/%u
fallback_homedir = /home/%u
;debug_level = 5
;debug_level = 5
;chpass_provider = ldap
; enable when auto discovery is enabled
; enable when auto discovery is enabled
ldap_chpass_dns_service_name = ad
ldap_chpass_dns_service_name = ad
ldap_id_mapping = False
ldap_id_mapping = False
use_fully_qualified_names = False
use_fully_qualified_names = False
; always ask KDC
; always ask KDC
cache_credentials = false
cache_credentials = false
...
@@ -96,7 +113,7 @@ EOF
...
@@ -96,7 +113,7 @@ EOF
chmod
0600 /etc/sssd/conf.d/ad.conf
chmod
0600 /etc/sssd/conf.d/ad.conf
else
else
echo
"Skipping sssd conf creating"
echo
"Skipping sssd conf creating
(/etc/sssd/conf.d/ad.conf is exists)
"
fi
fi
# TODO: Fedora has special command for change nssswitch.conf
# TODO: Fedora has special command for change nssswitch.conf
...
@@ -160,5 +177,6 @@ case $(distr_info -d) in
...
@@ -160,5 +177,6 @@ case $(distr_info -d) in
esac
esac
echo
"Done. Don't bother about DNS errors above"
echo
"Done. Don't bother about DNS errors above"
echo
"Check https://www.altlinux.org/SSSD/AD for detailed description."
exit
exit
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