twocanoes / xcreds

Open Source Project for Syncing IdP password with macOS login password
BSD 3-Clause "New" or "Revised" License
228 stars 27 forks source link

XCreds does not display menu drop-down checkmark for mapped home share #240

Open dstranathan opened 5 months ago

dstranathan commented 5 months ago

New in XCreds 5 is the ability to show a checkmark next to any mounted volumes from the XCReds 'Shares' sub-menu. This is similar to the behavior in NoMAD that some admins may be familiar with. This new feature is working great for all my SMB volumes - except for the user's home SMB share.

See screenshot for example.

Relevant keys:

<key>HomeMountEnabled</key>
<false/> 
<key>SlowMount</key> 
<true/>
 <key>SlowMountDelay</key> 
<integer>2000</integer>

Relevant Shares:

<dict> 
<key>AutoMount</key> 
<true/> <key>ConnectedOnly</key> 
<true/>
 <key>Groups</key> 
<array/> 
<key>Name</key> 
<string>home</string> 
<key>URL</key> 
<string>smb://server.domain/homedir/&lt;&lt;shortname&gt;&gt;</string> 
</dict>

Notes:

NoMAD must handle this differently because it displays the checkmark as expected when the home share is mounted. Configs and keys are identical in both XCreds and NoMAD. See screenshot for example.

XCreds does display a "Network Home" under the Shares menu (which is checked), but a second 'home" appears unchecked. Trying to understand how XCreds is doing this compared to NoMAD.

-Our EMC/Dell/Isilon storage uses down-level mapping for homes. Example: a variable is used to map the user's short name to the corresponding share under its parent home directory.

-Technically this mount isn’t an AD “Home Mount” (and we dont use AD Home Mounts) our home shares are basically just like any another SMB share (but dynamically use shortname in the URI). Note that the key HomeMountEnabled is not enabled (in both XCreds and NoMAD).

XCreds5-Shares-home_drive

NoMAD-Shares

twocanoes commented 4 months ago

please provide the log that shows the mounting.

dstranathan commented 3 months ago

I will also add that it's not uncommon for XCReds 5 to not show any checkmarks on mounted volumes in the drop-down menu, or it will display a mix of checked and unchecked shares - even though all shares are mounted. Generally, I can restart XCreds and the stats will be correctly reflected in the drop-down menu. Example

Screenshot 2024-08-02 at 16 07 45