This walkthrough applies to the established WSL test lab: OpenLDAP and phpLDAPadmin, an already configured Samba lab service, and AccessScope in separate Compose projects. It does not install a general-purpose production Samba domain.
Confirm identities before enrolling
An LDAP user's login is its actual uid. The earlier example entries were cn=username1 lastname1 with uid=ulastname1 and cn=username2 lastname2 with uid=ulastname2. Searching for uid=user1 did not match those entries.
Query only your authorized lab:
cd ~/projects/ldap
docker compose exec openldap ldapsearch -x -LLL -H ldap://localhost -D "cn=admin,dc=example,dc=org" -W -b "dc=example,dc=org" '(objectClass=posixAccount)' dn uid cn
The -W option prompts for the password. Do not put the actual directory password into shared instructions.
Samba enrollment and folder check
The previously supplied custom lab image contains /opt/lab.py. It is not an AccessScope built-in and must already exist in that Samba container.
docker compose exec samba python3 /opt/lab.py enroll ulastname1
docker compose exec samba smbclient //localhost/shared -U ulastname1
The lab tool prompts for an SMB password and can update the user's LDAP password as described by that tool. Check the impact on your lab logins. In smbclient, use ls, mkdir NAME and exit; Linux shell commands such as docker or ls -lah are not smbclient commands.
Connect AccessScope
Use a persistent approved shared Docker network. Configure OpenLDAP/RFC2307 at openldap:389 and dc=example,dc=org only for this isolated plaintext LDAP test. Create a separate SMB credential with the enrolled account, such as LAB\ulastname1.
Add the SMB source \samba\shared. Select the directory for identity resolution, then grant the source to the investigator profile.
Review/enforce the lab's SMB allowlist. The shipped enable-smb-lab.sh assumes exact container/network names and IPv4 prerequisites. Run it only after reviewing those assumptions, and rerun after relevant recreation/restarts.
Investigate
Test metadata read and inspect \samba\shared. Search the directory by actual uid/display name. Review nested directory groups in Access Relationships. Samba UID/GID SID labels may resolve for display, but an OpenLDAP identity is not a native AD SID or a reconstructed Windows token.
Do not conclude that a successful graph proves a user can perform every operation on the share. Keep the real smbclient test and storage ACL/mapping evidence as separate observations.
Product baseline v0.9.0 · State schema 8 · Content reviewed 2026-11-06. This website rendering preserves the source packet's qualifiers, compatibility boundaries and acceptance status.

