Hello!
I am trying to use NetFSMountURLSync to mount an AFP network share on a macOS machine, using ADSSO to authenticate against the server.
When using the mount_afp binary to do the mounting, it is sufficient to specify the share URL as afp://;AUTH=Client%20Krb%20v2@<hostname>/<share>, as documented in man mount_afp. However, I cannot find documentation on how to achieve that with NetFSMountURLSync.
I prefer the NetFS-based method compared to mount_afp, because it does not require the mount point directory to exist before the mount.
I'm calling NetFSMountURLSync via Python's objc in a way inspired by this Gist - https://gist.github.com/pudquick/e11b546d6ba9ebc2b604. I tried specifying "Client Krb v2" as the username parameter of the NetFSMountURLSync call but nothing like that seems to work. Has anyone solved this before by any chance?