Newsroom Update

Beginning in May, a special Today at Apple series titled “Made for Business” will offer small business owners and entrepreneurs free opportunities to learn how Apple products and services can support their growth and success. Learn more >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

SMB access for Active Directory users

Hi there,

My server is an OD Master bound to AD for authentication and my institution's Kerberos realm.

When I try to share files from the server via SMB and connect as an Active Directory user I get the following error in the logs:

[2009/06/11 12:02:27, 1, pid=5308] /SourceCache/samba/samba-187.8/samba/source/libads/kerberos verify.c:ads_verifyticket(428)
ads verifyticket: smb krb5_parse_name(myserver$) failed (Configuration file does not specify default realm)
[2009/06/11 12:02:27, 1, pid=5308] /SourceCache/samba/samba-187.8/samba/source/smbd/sesssetup.c:reply spnegokerberos(340)
Failed to verify incoming ticket with error NT STATUS_LOGONFAILURE!




I've read something vague about having to Kerberize the SMB service seperately so I'm not sure if that's the problem.

My smb.conf file is as follows:





; Configuration file for the Samba software suite.
; ============================================================================
;
; For the format of this file and comprehensive descriptions of all the
; configuration option, please refer to the man page for smb.conf(5).
;
; The following configuration should suit most systems for basic usage and
; initial testing. It gives all clients access to their home directories and
; allows access to all printers specified in /etc/printcap.

; BEGIN required configuration

; Parameters inside the required configuration block should not be altered.
; They may be changed at any time by upgrades or other automated processes.
;
; Site-specific customizations will only be preserved if they are done
; outside this block. If you choose to make customizations, it is your
; own responsibility to verify that they work correctly with the supported
; configuration tools.

[global]
debug pid = yes
log level = 1
server string = Mac OS X

printcap name = cups
printing = cups

encrypt passwords = yes
use spnego = yes

passdb backend = odsam

idmap domains = default
idmap config default: default = yes
idmap config default: backend = odsam
idmap alloc backend = odsam
idmap negative cache time = 5

map to guest = Bad User
guest account = nobody

unix charset = UTF-8-MAC
display charset = UTF-8-MAC
dos charset = 437

vfs objects = darwinacl,darwin_streams

; Don't become a master browser unless absolutely necessary.
os level = 2
domain master = no

; For performance reasons, set the transmit buffer size
; to the maximum and enable sendfile support.
max xmit = 131072
use sendfile = yes

; The darwin_streams module gives us named streams support.
stream support = yes
ea support = yes

; Enable locking coherency with AFP.
darwin_streams:brlm = yes

; Core files are invariably disabled system-wide, but attempting to
; dump core will trigger a crash report, so we still want to try.
enable core files = yes

; Configure usershares for use by the synchronize-shares tool.
usershare max shares = 1000
usershare path = /var/samba/shares
usershare owner only = no
usershare allow guests = yes
usershare allow full config = yes

; Filter inaccessible shares from the browse list.
com.apple:filter shares by access = yes

; Check in with PAM to enforce SACL access policy.
obey pam restrictions = yes

; Don't be trying to enforce ACLs in userspace.
acl check permissions = no

; Make sure that we resolve unqualified names as NetBIOS before DNS.
name resolve order = lmhosts wins bcast host

; Pull in system-wide preference settings. These are managed by
; synchronize-preferences tool.
include = /var/db/smb.conf

[printers]
comment = All Printers
path = /tmp
printable = yes
guest ok = no
create mode = 0700
writeable = no
browseable = no

; Site-specific parameters can be added below this comment.
; END required configuration.




Any help would be much appreciated!!

Thanks.

Mac OS X (10.5.6)

Posted on Jun 11, 2009 4:28 AM

Reply
4 replies

Jun 29, 2009 9:40 PM in response to Andbrowny

I am now having the same problem - a Windows server trying to access a file share on the Mac Server is presented with the same error message in the log files:


[2009/06/29 21:34:56, 2, pid=485] /SourceCache/samba/samba-187.8/samba/source/smbd/sesssetup.c:setup new_vcsession(1260)
setup new_vcsession: New VC == 0, if NT4.x compatible we would close all old resources.
[2009/06/29 21:34:56, 1, pid=485] /SourceCache/samba/samba-187.8/samba/source/libads/kerberos verify.c:ads_verifyticket(428)
ads verifyticket: smb krb5_parsename(vifile$) failed (Configuration file does not specify default realm)
[2009/06/29 21:34:56, 1, pid=485] /SourceCache/samba/samba-187.8/samba/source/smbd/sesssetup.c:reply spnegokerberos(340)
Failed to verify incoming ticket with error NT STATUS_LOGONFAILURE!



Workgroup manager can read from Active Directory - seems to be jiving correctly - my server (SMB) is in Domain Member mode...

When I try to access system from \\UNC command, I am presented with username/password prompt and nothing works.

Not feeling the Mac OS X love tonight.
Bill
System is bound to active directory - green light in Directory Utility

Jul 13, 2009 12:37 PM in response to Fridgemagnet

In Server Admin: Try this procedure.

In the SMB section, stop the SMB service, then inspect Settings/General. The Role should be Domain Member.

Change the role to Standalone, save, then change it back to Domain Member. This will force Samba to update its information about the directory domain to which the server is connected.

Start SMB and try again.

--Gerrit

SMB access for Active Directory users

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.