Kodi Community Forum

Full Version: SMB on Server 2012
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've been playing about with Server 2012 and using it to store my files on my network.
When I try to access them using XBMC the logon never works (works fine from ES File Explorer using the same credentials). Checking on the server I've found it shows up a logon error from XBMC. I've tried using 2 accounts (specific XBMC account and domain admin).

Using XBMC 12.0 GIT:20130127-fb595f2. Running on a Samsung Galaxy S3 (tried on a stock ROM and FoxHound 2.2, same problem)

The Windows event error message is:
Log Name: Security
Source: Microsoft-Windows-Security-Auditing
Date: 27/02/2013 22:23:09
Event ID: 4625
Task Category: Logon
Level: Information
Keywords: Audit Failure
User: N/A
Computer: Porco.shadowfane.int
Description:
An account failed to log on.

Subject:
Security ID: NULL SID
Account Name: -
Account Domain: -
Logon ID: 0x0

Logon Type: 3

Account For Which Logon Failed:
Security ID: NULL SID
Account Name: [email protected]
Account Domain: WORKGROUP

Failure Information:
Failure Reason: Unknown user name or bad password.
Status: 0xC000006D
Sub Status: 0xC0000064

Process Information:
Caller Process ID: 0x0
Caller Process Name: -

Network Information:
Workstation Name: LOCALHOST
Source Network Address: 192.168.5.251
Source Port: 36670

Detailed Authentication Information:
Logon Process: NtLmSsp
Authentication Package: NTLM
Transited Services: -
Package Name (NTLM only): -
Key Length: 0

This event is generated when a logon request fails. It is generated on the computer where access was attempted.

The Subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe.

The Logon Type field indicates the kind of logon that was requested. The most common types are 2 (interactive) and 3 (network).

The Process Information fields indicate which account and process on the system requested the logon.

The Network Information fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases.

The authentication information fields provide detailed information about this specific logon request.
- Transited services indicate which intermediate services have participated in this logon request.
- Package name indicates which sub-protocol was used among the NTLM protocols.
- Key length indicates the length of the generated session key. This will be 0 if no session key was requested.
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-Security-Auditing" Guid="{54849625-5478-4994-A5BA-3E3B0328C30D}" />
<EventID>4625</EventID>
<Version>0</Version>
<Level>0</Level>
<Task>12544</Task>
<Opcode>0</Opcode>
<Keywords>0x8010000000000000</Keywords>
<TimeCreated SystemTime="2013-02-27T22:23:09.252891200Z" />
<EventRecordID>548997</EventRecordID>
<Correlation />
<Execution ProcessID="488" ThreadID="584" />
<Channel>Security</Channel>
<Computer>Porco.shadowfane.int</Computer>
<Security />
</System>
<EventData>
<Data Name="SubjectUserSid">S-1-0-0</Data>
<Data Name="SubjectUserName">-</Data>
<Data Name="SubjectDomainName">-</Data>
<Data Name="SubjectLogonId">0x0</Data>
<Data Name="TargetUserSid">S-1-0-0</Data>
<Data Name="TargetUserName">[email protected]</Data>
<Data Name="TargetDomainName">WORKGROUP</Data>
<Data Name="Status">0xc000006d</Data>
<Data Name="FailureReason">%%2313</Data>
<Data Name="SubStatus">0xc0000064</Data>
<Data Name="LogonType">3</Data>
<Data Name="LogonProcessName">NtLmSsp </Data>
<Data Name="AuthenticationPackageName">NTLM</Data>
<Data Name="WorkstationName">LOCALHOST</Data>
<Data Name="TransmittedServices">-</Data>
<Data Name="LmPackageName">-</Data>
<Data Name="KeyLength">0</Data>
<Data Name="ProcessId">0x0</Data>
<Data Name="ProcessName">-</Data>
<Data Name="IpAddress">192.168.5.251</Data>
<Data Name="IpPort">36670</Data>
</EventData>
</Event>
Having the same issue. I'm guessing the domain info isn't being passed through xbmc. Perhaps there's a different way I need to be setting this up? Has any one had any success accessing an SMB share that's on a domain from XBMC Android? As mentioned, in ES File Explorer all files are there and accessible.
I forgot I'd posted this as I'd not received any replies.

I fixed the issue - I was using the post-Windows 2000 format (<username>@<fqdn>)

The way XBMC seems to access the share is using the old FTP style inline format of smb://<username>:<password>@<host>/<share path>

This means that the @ causes the issue.
I've reverted back to the old NT style domain name format of: <domain>\<username>

This seems to be working OK so far - although I've only used it occasionally but I've got one share working over sessions without any issues.

I hope this helps you - let me know if you have any other issues and I'll see if I can help.