VLC for iOS and SMB shares in a windows domain context

iOS, iPad, iPhone, tvOS specific usage questions
motorgoat
New Cone
New Cone
Posts: 1
Joined: 11 Feb 2016 21:30

VLC for iOS and SMB shares in a windows domain context

Postby motorgoat » 11 Feb 2016 21:35

I just tried to connect to a share on a MS 2012 Server R2. But even though the credentials were correct, it just showed me the blank screen as depicted in other threads regarding the SMB module.

So, i think the culprit might be the following code:

Code: Select all

@implementation VLCNetworkServerBrowserVLCMedia (SMB) + (instancetype)SMBNetworkServerBrowserWithLogin:(VLCNetworkServerLoginInformation *)login { NSURLComponents *components = [[NSURLComponents alloc] init]; components.scheme = @"smb"; components.host = login.address; components.port = login.port; NSURL *url = components.URL; return [self SMBNetworkServerBrowserWithURL:url username:login.username password:login.password workgroup:nil]; } + (instancetype)SMBNetworkServerBrowserWithURL:(NSURL *)url username:(NSString *)username password:(NSString *)password workgroup:(NSString *)workgroup { BOOL guestLogin = username.length == 0 && password.length == 0; if (guestLogin) { username = @"Guest"; password = @""; } VLCMedia *media = [VLCMedia mediaWithURL:url]; NSDictionary *mediaOptions = @{@"smb-user" : username ?: @"", @"smb-pwd" : password ?: @"", @"smb-domain" : workgroup?: @"WORKGROUP"}; [media addOptions:mediaOptions]; return [[self alloc] initWithMedia:media options:mediaOptions]; } @end
It looks like it will force "workgroup" as the domain param, which will exclude alot of setups.

So am i missing something here? Or should this be fixed?

Gerhard87
New Cone
New Cone
Posts: 2
Joined: 04 May 2016 23:27

Re: VLC for iOS and SMB shares in a windows domain context

Postby Gerhard87 » 04 May 2016 23:28

looks like you are right.
Just confirmed it by testing.
Domain account does not work and local account works.

I would like to have the domain account work.
Thanks

fkuehne
Developer
Developer
Posts: 7264
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Re: VLC for iOS and SMB shares in a windows domain context

Postby fkuehne » 05 May 2016 12:02

Ouch, this should be fixed indeed! :)
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

Gerhard87
New Cone
New Cone
Posts: 2
Joined: 04 May 2016 23:27

Re: VLC for iOS and SMB shares in a windows domain context

Postby Gerhard87 » 22 Oct 2016 06:28

not fixed yet


Return to “VLC for iOS, iPadOS and Apple TV”

Who is online

Users browsing this forum: No registered users and 29 guests