Hi LostLib,
Many thanks - you saved me from the madhouse.
Before stopping and starting SMB the messages in /private/var/log/krb5kdc/kdc.log invariably had been:
2011-10-10T16:57:56 digest-request: init request
2011-10-10T16:57:56 digest-request: init return domain: BUILTIN server: G-DATOR-S
2011-10-10T16:57:56 digest-request: uid=0
2011-10-10T16:57:56 digest-request: user=G-DATOR-S\\thomas
2011-10-10T16:57:56 NTLM domain not configured
2011-10-10T16:57:56 digest-request: kdc failed with 36150275 proto=unknown
2011-10-10T16:57:56 digest-request: guest failed with 22 proto=ntlmv1-with-v2-session
Then I tried it your way:
sudo serveradmin stop smb
wait a few seconds
sudo serveradmin start smb
Now I can connect, and the message is:
2011-10-10T17:15:59 digest-request: init request
2011-10-10T17:15:59 digest-request: init return domain: G-DATOR-S server: G-DATOR-S
2011-10-10T17:15:59 digest-request: uid=0
2011-10-10T17:15:59 digest-request: user=G-DATOR-S\\thomas
2011-10-10T17:15:59 digest-request kdc: ok user=G-DATOR-S\\thomas proto=ntlmv1 flags: NEG_KEYEX, ENC_128, NEG_VERSION, NEG_TARGET_INFO, NEG_NTLM2, NEG_ALWAYS_SIGN, NEG_NTLM, NEG_SIGN, NEG_TARGET, NEG_UNICODE
Amazing!
I'm running the Lion server in a VMware machine inside my MacBook Pro (SSD). I always thought that that's a slow combination, but from your words it follows that it's not sooo bad :-)
Following your advice, I created a launchd script:
sudo su -
cd /System/Library/LaunchDaemons
cat > com.gutzmann.restart_smb.plist <<@@EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.gutzmann.restart_smb</string>
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-c</string>
<string>sleep 60;serveradmin stop smb;sleep 5;serveradmin start smb</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
@@EOF
launchctl load com.gutzmann.restart_smb.plist
Thank you very much again,
Thomas