Why can't I access File Sharing when Open Directory is enabled in macOS Mojave?
3
votes
3
answers
2686
views
Here's the procedure I have followed:
1. Install a fresh copy of macOS Mojave to an APFS volume
2. Perform initial OS configuration and create 'admin' user at first launch. Assign a static IP from 192.168.168.0/24 private network. Use a DNS server located in private network. Ensure IP resolves to a FQDN ('test.mydomain.com') and vice versa.
3. Download macOS Server application (5.7) from App Store
4. Open macOS Server application
5. Create a new Open Directory domain with default options
6. Create a new user 'testuser' to Local Network Directory
7. Create a new group 'testgroup' to Local Network Directory
8. Assign newly created 'testuser' to 'testgroup'
9. Open System Preferences application
10. Open Sharing preferences
11. Enable File Sharing
12. Create a Shared Folder 'myshare' and assign 'testgroup' and 'admin' Read&Write access to it
13. Select 'myshare' and click Options button to ensure SMB sharing is enabled for it
14. Attempt to connect to the file server from a client computer within the same subnet via smb://test.mydomain.com/myshare or alternatively smb://192.168.168.X/myshare either using 'admin' or 'testuser' credentials
In the last step connection fails for both 'admin' and 'testuser' accounts. If I turn Open Directory to Off, I can connect with 'admin' user. Restarts in any phase of the procedure make no difference.
**Why can't I access SMB when Open Directory is enabled?**
Here are the opendirectoryd log entries from creating the OD master (step 5): https://pastebin.com/uQm8b8NM
Here are the opendirectoryd and smbd log entries from login attempt (step 14): https://pastebin.com/U2RS3LYC & https://pastebin.com/7bFNfd8V
Asked by hgv
(73 rep)
Oct 28, 2018, 09:40 AM
Last activity: May 18, 2022, 03:24 PM
Last activity: May 18, 2022, 03:24 PM