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

Notices

Reply
 
LinkBack Search this Thread
Old 12-29-2012, 04:15 PM   #1
Nick_C
Member
 
Registered: Jan 2012
Location: London, England, UK
Distribution: CentOS, Mageia, Debian, Fedora, openSUSE, Ubuntu
Posts: 228

Rep: Reputation: Disabled
Samba problem - NT_STATUS_LOGON_FAILURE


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:
/etc/resolv.conf:
domain domain1.local
nameserver 192.168.10.5 (ADServer)
nameserver 123.123.123.4 (external DNS server)
/etc/sysconfig/network:
HOSTNAME= Storage1.Domain1.local
/etc/krb5.conf:
[libdefaults]
default_realm = DOMAIN1.LOCAL
dns_lookup_realm = true
dns_lookup_kdc = true
forwardable = false
[realms]
DOMAIN1.LOCAL = {
kdc = adserver.domain1.local
admin_server = adserver.domain1.local
}
[domain_realm]
.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
realm = 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.
 
  


Reply

Tags
samba


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 09:41 AM.

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