This commit is contained in:
2026-03-18 18:46:23 +00:00
parent 24b7b7262d
commit bab7c917f1

View File

@@ -131,6 +131,8 @@ spec:
command: ["/bin/bash", "-ec"]
args:
- |
set -x
if [ ! -f /var/lib/samba/.provisioned ]; then
samba-tool domain provision \
--server-role=dc \
@@ -144,7 +146,7 @@ spec:
fi
if [ ! -f /var/lib/samba/.bootstrap-ldif-applied ]; then
ldbmodify -H /var/lib/samba/private/sam.ldb /bootstrap/bootstrap.ldif
ldbadd -H /var/lib/samba/private/sam.ldb /bootstrap/bootstrap.ldif
samba-tool user setpassword sebastian --newpassword='Test1234!'
samba-tool user setpassword shodan --newpassword='ChangeMeShodan123!'
@@ -157,7 +159,7 @@ spec:
touch /var/lib/samba/.bootstrap-ldif-applied
fi
exec samba
exec samba -i
volumes:
- name: samba-bootstrap
configMap: