Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-29-2012, 04:15 PM   #1
Registered: Jan 2012
Location: London, England, UK
Distribution: CentOS 6, CentOS 7
Posts: 297

Rep: Reputation: Disabled

Still having a bit of a problem getting Samba to work from a Win 2012 server.

Environment is:
Windows Domain controller - ADServer
Linux Samba server – Storage1

Problem is:
I cannot connect to Samba share from Windows machine, user logon fails.
I then test the smb connection from the Linux Samba server
Smbclient –L \\Storage1
which fails with - session setup failed: NT_STATUS_LOGON_FAILURE
However if I specify the workgroup like so:
Smbclient –L \\Storage1\Winshare -W Domain1.local
It works fine.
Here is my configuration:
domain domain1.local
nameserver (ADServer)
nameserver (external DNS server)
HOSTNAME= Storage1.Domain1.local
default_realm = DOMAIN1.LOCAL
dns_lookup_realm = true
dns_lookup_kdc = true
forwardable = false
kdc = adserver.domain1.local
admin_server = adserver.domain1.local
.domain1.local = DOMAIN1.LOCAL
domain1.local = DOMAIN1.LOCAL
System -> Administration -> Authentication
User account database: Winbind
Winbind Domain: Domain1
Security Model: ads
Winbind ADS Realm: DOMAIN1.LOCAL
Winbind domain controllers: ADServer.Domain1.local
Template shell: /sbin/nologon
{Join Domain}, WinAdmin, <password>
Resultant /etc/samba/smb.conf
Workgroup = Domain1 (not Domain1.local)
password server = ADServer.Domain1.local
security = ads
template shell = /sbin/nologon
winbind use default domain = false
winbind offline logon = false
Net ads join –U WinAdmin
net ads testjoin - ok

Last edited by Nick_C; 12-29-2012 at 04:17 PM.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
samba NT_STATUS_LOGON_FAILURE...Help please nikd Linux - Networking 5 01-14-2010 12:25 AM
Samba has NT_STATUS_LOGON_FAILURE dwynter Linux - Networking 22 12-16-2007 02:01 PM
NT_STATUS_LOGON_FAILURE Samba Problem jmvetter Linux - Software 0 10-10-2004 11:18 PM
SAMBA:NT_STATUS_LOGON_FAILURE on linux Tyir Linux - Networking 4 12-22-2003 11:24 PM
SAMBA error: NT_STATUS_LOGON_FAILURE kkempter Linux - Software 0 06-04-2003 03:09 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:04 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration