Hi @sai.pabbareddy,
If you could pull a full LDAP trace/packate capture that would be great. I also setup a single-domain/single-dc. I can even share my setup as I used a VM and docker to set it up. My VM is a base alpine install with docker, docker-compose, and nano installed. Here is my the compose file I tested with. NOTE: my container uses the host network mode because that was the only way I could get it to bind the port in Samba. This is probably not needed if ProGet sat in the same Docker network as the Samba container.
version: '3.8'
services:
samba-test-ad:
image: diegogslomp/samba-ad-dc:latest
container_name: samba_test_ad
hostname: DC1
privileged: true
network_mode: host
environment:
- REALM=PLANETEXPRESS.COM
- DOMAIN=PLANETEXPRESS
- ADMIN_PASS=GoodNewsEveryone123!
- DNS_FORWARDER=8.8.8.8
# NOTE: "ports" was removed because network_mode: host opens the container ports on the host natively
samba-provisioner:
image: alpine:latest
container_name: samba_provisioner
depends_on:
- samba-test-ad
# Shares host network context to communicate with the main container smoothly
network_mode: host
volumes:
- /var/run/docker.sock:/var/run/docker.sock
entrypoint:
- /bin/sh
- -c
- |
apk add --no-cache docker-cli
echo "🚀 Monitoring Active Directory operational readiness..."
while true; do
if docker exec samba_test_ad /usr/local/samba/bin/samba-tool user list >/dev/null 2>&1; then
break
fi
echo "⏳ Samba is compiling directory tree schema... checking back in 3s"
sleep 3
done
echo "🔌 Active Directory Engine Online and Accepting Modifications!"
echo "--- Creating Test Groups ---"
docker exec samba_test_ad /usr/local/samba/bin/samba-tool group add ship_crew || true
docker exec samba_test_ad /usr/local/samba/bin/samba-tool group add admin_staff || true
echo "--- Creating Pre-populated Test Users ---"
docker exec samba_test_ad /usr/local/samba/bin/samba-tool user create fry FryPassword123! --given-name='Philip' --surname='Fry' --mail-address='fry@planetexpress.com' || true
docker exec samba_test_ad /usr/local/samba/bin/samba-tool user create leela LeelaPassword123! --given-name='Turanga' --surname='Leela' --mail-address='leela@planetexpress.com' || true
docker exec samba_test_ad /usr/local/samba/bin/samba-tool user create professor ProfPassword123! --given-name='Hubert' --surname='Farnsworth' --mail-address='professor@planetexpress.com' || true
echo "--- Assigning Group Members ---"
docker exec samba_test_ad /usr/local/samba/bin/samba-tool group addmembers ship_crew fry,leela || true
docker exec samba_test_ad /usr/local/samba/bin/samba-tool group addmembers admin_staff professor || true
echo "✅ Active Directory data successfully populated! Setup complete."
Then for my ProGet configuration, I created a new V5: Active Directory and here were the settings:
- General
- Name: V5: Samba 4
- Domain: planetexpress.com
- User name: Administrator
- Password: GoodNewsEveryone123!
- Connection
- Domain Controller Host: <IP Address of my VM>
- LDAP Connection: Use LDAP
Then I tested using Load user by username for the user fry in the group ship_crew. For recursive groups I used the user Administrator and the Group Denied RODC Password Replication Group.
Then I added ship_crew to the Administer task and I logged in using fry/FryPassword123!.
Thanks,
Rich