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
87e27540
Commit
87e27540
authored
Nov 02, 2017
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tune_sssd.sh: drop smb on
parent
4e4f4971
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
tune_sssd.sh
dc-client/tune_sssd.sh
+6
-7
No files found.
dc-client/tune_sssd.sh
View file @
87e27540
...
@@ -117,8 +117,10 @@ fi
...
@@ -117,8 +117,10 @@ fi
UPHOST
=
$(
hostname
-s
|
tr
[
:lower:]
[
:upper:]
)
UPHOST
=
$(
hostname
-s
|
tr
[
:lower:]
[
:upper:]
)
WORKGROUP
=
$(
echo
"
$REALM
"
|
sed
-e
"s|
\.
.*||"
)
WORKGROUP
=
$(
echo
"
$REALM
"
|
sed
-e
"s|
\.
.*||"
)
# TODO: check testparm output
# Нужен для работы net ads
if
!
grep
-q
"realm =
$REALM
"
/etc/samba/smb.conf
;
then
if
!
grep
-q
"realm =
$REALM
"
/etc/samba/smb.conf
;
then
cat
<<
EOF
>>/etc/samba/smb.conf
cat
<<
EOF
>>/etc/samba/smb.conf
[global]
[global]
security = ads
security = ads
...
@@ -130,14 +132,11 @@ cat <<EOF >>/etc/samba/smb.conf
...
@@ -130,14 +132,11 @@ cat <<EOF >>/etc/samba/smb.conf
wins support = no
wins support = no
EOF
EOF
testparm
||
fatal
testparm
||
fatal
echo
"Check /etc/samba/smb.conf"
echo
"Check /etc/samba/smb.conf"
(
cd
/etc
;
git diff samba/smb.conf |
cat
)
(
cd
/etc
;
git diff samba/smb.conf |
cat
)
fi
fi
# Не нужно?!
#serv smb on
# Вход в домен
# Вход в домен
rm
-fv
/etc/krb5.keytab
rm
-fv
/etc/krb5.keytab
kinit
$ADMIN
||
exit
kinit
$ADMIN
||
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