NetFSMountURLSync: inconsistency between WebDAV and SMB when using Kerberos
| Originator: | j.a.grigutis | ||
| Number: | rdar://12846822 | Date Originated: | 10-Dec-2012 12:54 PM |
| Status: | Open | Resolved: | |
| Product: | Mac OS X SDK | Product Version: | 10.8.2/12C60 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary:
When using Kerberos authentication with NetFSMountURLSync, mounting a WebDAV url (http://...) requires a dummy string be passed in for the username and password. While mounting an SMB url (smb://...) requires that username and password be NULL.
Steps to Reproduce:
Obtain a TGT.
Attempt to mount webDAV and SMB URLs using Kerberos authentication.
NSURL *webDAVURL = [NSURL URLWithString:@"https://my.sharepoint.school.edu/personal/grigutis"];
CFArrayRef webDAVMountpoints = NULL;
int webDAVResult = 0;
webDAVResult = NetFSMountURLSync((__bridge CFURLRef)webDAVURL,
NULL,
CFSTR("Kerberos"),
CFSTR("NoPassword"),
NULL,
NULL,
&webDAVMountpoints);
NSURL *smbURL = [NSURL URLWithString:@"smb://server.school.edu/Users"];
CFArrayRef smbMountpoints = NULL;
int smbResult = 0;
smbResult = NetFSMountURLSync((__bridge CFURLRef)smbURL,
NULL,
CFSTR("Kerberos"),
CFSTR("NoPassword"),
NULL,
NULL,
&smbMountpoints);
Expected Results:
Both function calls should produce the same results: either both using Kerberos authentication and succeeding or both failing/prompting for credentials.
Actual Results:
The call using the WebDAV URL will succeed, but the call using the SMB URL will show an authentication dialog with "Kerberos" in the Name field.
Regression:
Using NULL for the username and password arguments will cause the WebDAV example to fail, but the SMB example to succeed.
Notes:
There should be better documentation for NetFS. There is no mention of how to use Kerberos authentication. Using NULL for the username and password would be acceptable as long as it worked consistently and was documented.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!