Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
docker-samba
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
docker-samba
Commits
ce396f8f
Commit
ce396f8f
authored
Apr 16, 2017
by
MarvAmBass
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optional password sync
parent
512865cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
README.md
README.md
+3
-0
scripts/entrypoint.sh
scripts/entrypoint.sh
+13
-3
No files found.
README.md
View file @
ce396f8f
...
@@ -27,6 +27,9 @@ to restrict access of volumes you can add the following to your samba volume con
...
@@ -27,6 +27,9 @@ to restrict access of volumes you can add the following to your samba volume con
*
__SAMBA
\_
CONF
\_
MAP_TO_GUEST__
*
__SAMBA
\_
CONF
\_
MAP_TO_GUEST__
*
default: _Bad User_
*
default: _Bad User_
*
__SAMBA
\_
CONF
\_
ENABLE
\_
PASSWORD
\_
SYNC__
*
default not set - if set password sync is enabled
*
__SAMBA
\_
VOLUME
\_
CONFIG
\_
myconfigname__
*
__SAMBA
\_
VOLUME
\_
CONFIG
\_
myconfigname__
*
adds a new samba volume configuration
*
adds a new samba volume configuration
*
multiple variables/confgurations possible by adding unique configname to SAMBA_VOLUME_CONFIG_
*
multiple variables/confgurations possible by adding unique configname to SAMBA_VOLUME_CONFIG_
...
...
scripts/entrypoint.sh
View file @
ce396f8f
...
@@ -37,23 +37,33 @@ if [ ! -f "$INITALIZED" ]; then
...
@@ -37,23 +37,33 @@ if [ ! -f "$INITALIZED" ]; then
##
##
cat
>
/etc/smb.conf
<<
EOF
cat
>
/etc/smb.conf
<<
EOF
[global]
[global]
server role = standalone server
workgroup =
$SAMBA_CONF_WORKGROUP
workgroup =
$SAMBA_CONF_WORKGROUP
server string =
$SAMBA_CONF_SERVER_STRING
server string =
$SAMBA_CONF_SERVER_STRING
server role = standalone server
map to guest =
$SAMBA_CONF_MAP_TO_GUEST
dns proxy = no
dns proxy = no
log file = /dev/stdout
log file = /dev/stdout
EOF
##
# SAMBA Configuration (Password Sync)
##
if
[
!
-z
${
SAMBA_CONF_ENABLE_PASSWORD_SYNC
+x
}
]
then
echo
">> SAMBA CONFIG:
\$
SAMBA_CONF_ENABLE_PASSWORD_SYNC is set, enabling password sync"
cat
>>
/etc/smb.conf
<<
EOF
unix password sync = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd program = /usr/bin/passwd %u
passwd chat = *Enter
\s
new
\s
*
\s
password:* %n
\n
*Retype
\s
new
\s
*
\s
password:* %n
\n
*password
\s
updated
\s
successfully* .
passwd chat = *Enter
\s
new
\s
*
\s
password:* %n
\n
*Retype
\s
new
\s
*
\s
password:* %n
\n
*password
\s
updated
\s
successfully* .
pam password change = yes
pam password change = yes
map to guest =
$SAMBA_CONF_MAP_TO_GUEST
EOF
EOF
fi
##
##
# USER ACCOUNTS
# USER ACCOUNTS
...
...
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