We are having the same issue. After SMB magically stopped working on Snow Leopard again, we tried going ahead with the Lion update, only to find that it has the same issue. Nothing can connect to the Lion server using AD accounts via SMB. Local accounts work via SMB. AD accounts can connect via WEBDAV and AFP. I thought that this would be resolved with Lion. I really don't know what their aversion to using the mainline Samba is. I have several Redhat servers that server SMB perfectly fine to AD accounts. If it wasn't for creator code issues, I would migrate all the data off of this server and shut it down for good.
No, yours is a different issue. Similarity of symptons ≠ similar cause.
There's no indication whatsoever that the original poster's issue involves Active Directory,
whereas your issue does. Thus you're not having the "same" issue.
You might like to look into discussions of Lion & AD integration issues on the MacEnterprise mailing list as well.
And please: There's no "aversion" to using the current Samba (mainline ? what do you mean ?).
None. It is because of Samba's change to their licensing. It's just. not. up. to. Apple. alone. It's not.
They cannot unilaterally do whatever they want to please you or anyone else. Would that it were that simple, it's not. If you're a legal expert and want to convince Apple's highly knowledgeable and expert legal team that they're wrong, please feel free to pursue it, and offer to take up their legal defense when Samba goes after Apple for violating their current licensing terms.
I was able to get the SMB shares working on my new Lion Server. My Windows users are able to connect via their Open Directory accounts, using the fix by pkaplan2524 'SERVERNAME\user'.
I created the file share in the Server|Fire Share window.
For settings the only thing checked is the 'Share with Windows clients (SMB)' option.
Everything else is unchecked.
For the folder permissions I used the Storage tab from the Hardware server pane in Server app.
I could not connect using the Windows Map Network Drive Wizard, I did the following (I found it from someone somewhere so thank you whoever that was).
1. On the Windows Desktop right-click and click on New|Shortcut.
2. For the location used '\\servername' or '\\ip address' both worked, click Next
3. Name it if you want (I left it default) and click Finish.
4. Double-click on the new shortcut and it asked me for the user credentials. SERVERNAME\username
5. I am able to see all of the shares available to that user.
6. To map the drive to a drive letter, Right-click and choose 'Map network drive...'
7. Choose the drive letter and finish. (I did not check Connect using diffferent credentials'.
I also tried the regedit fix from mambro and the Kerberos chances by davidh but that did not work for me.
I hope that helps.
techgal, despite what is said here, Samba (released in L ansd SL) worked very nicely. I had to configure permissions in Win vista and 7. That seems to be the case because Microsoft networking is Microsoft's and they change it regularly. Samba kept up with Microsoft for years on Linux and Unix. Now with Lion, Apple will be playing catch-up with Microsoft. Their first attempt in Lion was pretty darn poor. The new utility to serve SMB files is called netbiosd. It seems to me that the other direction (Apple to windows using SMB) may work better but is very slow. That would be the mount_smbfs which is also a newly created samba replacement. I have worked for years in UNIX shop's doing these sorts of things and it is apparent that the Samba utility both client and server were taken lightly. You are speaking in this thread of the new Apple Netbiosd which responds to requests for files on the Apple server using the SMB protocol. Since LION changed from nmbd/smbd to Netbiosd, the complete file system services for Microsoft networking (SMB) has changed. I suggest you stay where you are until Apple will admit there is a problem and provide a more robust SMB implementation.
After several full Saturdays and Sundays chasing this down (and about 300 restarts), I have my Windows to Apple SMB Share connectivity issue narrowed down and worked around. This applies to OSx 10.7.0 and 10.7.1 on a MacMini (7/2011 Server w/SSD) with Shares under SMB, being connected to by Windows 7.
1) you restart OSx and your Windows systems CANNOT connect because you get a prompt for userid/password or a not accessable message AND
2) after 2 or 3 minutes you can Start and Stop SMB Sharing with either Server.app (File Sharing) or Preferences/Sharing/File Sharing/Options/SMB on/off (individual IDs do _not_ have to be turned on / off) AND
3) the userid and password are exactly the same on both the client (Win7 or OSx) and the Sharing system AND
4) then Windows sytems can connect
Then the problem is a Race Condition in the Services Startup of OSx. The SMB service is dependent on some security process (guessing) which is completely late in the startup cycle.
You can test this with the following commands in a terminal window (AFTER the system is up and quiesced):
sudo serveradmin stop smb
sudo serveradmin start smb
After talking to Apple Enterprise Support to confirm the issue, I moved the above commands into a launchd script as a work around (this is NOT recommended unless you know what you're doing). Note the initial 60 second sleep - 30 seconds was not long enough. This has been filed with Apple Enginering, they'll figure out what to do about it going forward.
Part of my problem, is that I'm on a new MacMini (7/2011) which boots from local SSD, it just boots up too fast. If you're on a slower older system - this should not be an issue.
Some other things which I learned on this journey:
1) Do not use unload/load of the SMB plist - that does not work for this issue
2) OD accounts do not work. Wish they would, they dont
3) Hacking the windows registry with LanMan changes to support the previous Samba SMB release (10.6.x and lower) is NOT the problem with any 10.7 release. OSx 10.7 Supports SMB2, as does Vista and Win7.
Message was edited by: LostLib
i have an xtreamer mediaplayer and osx lion.
how can i configure my mac or xtreamer , so that i can stream again.
i used smb with snow leopard, but after upgrade to lion, the problem starts.
my xtreamer sees my mac, but continously asks for network id and password, even if i login as guest, which i always did in SL.
do you have any solutions?
i'm trying to solve this problem now for many weeks.
i hope you can and will help me.
I had the same problem after upgrade to lion:
Then I found in /Library/Preferences/SystemConfiguration/com.apple.smb.server.plist the NetBIOSName "lion". Not the ServerName. (After I used lion\userid instead of ServerName\userid I could logon, but it was not what I want).
With serveradmin I found the same:
sudo serveradmin settings smb
smb:NetBIOSName = "lion"
So I changed
sudo serveradmin setings smb:NetBIOSName = "ServerName"
No it works like before the upgrade to lion.
Hope this helps someone