Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

JohnnieBBadde

macrumors regular
Original poster
Dec 11, 2014
119
103
Hi,

since a few critical security issues have been fixed in Samba 4.2.1, I would like to use this up-to-date version with OS X. Last time, with help from the community I could get Samba 4.1.x running, I hope the current differing issues in the installation process can be fixed as well.

I'm testing it in a VM with a clean install of OS X 10.10.3, Xcode is up-to-date.

Samba 4.2.1 requires GnuTLS, I installed the latter via Homebrew (Terminal output)

Then I go to the Samba 4.2.1 folder, ./configure stops because it cannot find GnuTLS (Terminal output)

Can this be fixed?

Thank you very much for your help!
 
Last edited:
Does no one have an idea? @kryten2 to the rescue?

Is it somehow possible to use a Linux machine to precompile an application for OS X or is that loony?
 
Are you trying to use that as a replacement for the smb support in OSX? Just in case - OSX doesn't use Samba but an own implementation of the smb protocol.
 
Are you trying to use that as a replacement for the smb support in OSX? Just in case - OSX doesn't use Samba but an own implementation of the smb protocol.

Yes, sadly I know about SMBX. Since it has had bugs for years that disqualify it for my use, I have to use Samba for SMB shares in a heterogenous network.

In one sentence: You cannot share a folder under OS X with Apple's SMBX so that non-OS X clients can connect to it with an automatic guest login.

Connecting via Windows for example will always ask you to enter user account details even if OS X is set up for guest network access (OS X clients work fine).
 
Last edited:
Current Homebrew and MacPorts Samba versions are all out-dated. The whole point is to use the latest version to avoid having unneccessary security issues.
 
Hi,

since a few critical security issues have been fixed in Samba 4.2.1, I would like to use this up-to-date version with OS X. Last time, with help from the community I could get Samba 4.1.x running, I hope the current differing issues in the installation process can be fixed as well.

I'm testing it in a VM with a clean install of OS X 10.10.3, Xcode is up-to-date.

Samba 4.2.1 requires GnuTLS, I installed the latter via Homebrew (Terminal output)

Then I go to the Samba 4.2.1 folder, ./configure stops because it cannot find GnuTLS (Terminal output)

Can this be fixed?

Thank you very much for your help!

Hi... When you are compiling Samba 4.2 on OS X El Capitan, please execute $sudo ./configure first.
It will tell you that GnuTls is missing. This is normal bvehaviour. You need to install MacPorts or Homebrew so you can install GnuTls.

Go to MacPorts website www.macports.org
Download ports for your OS.
Install/Update Xcode
Run:

$ sudo port -v install gnutls

Tada!!!! Now you can run /samba/.configure just fine!!!
 
Then I go to the Samba 4.2.1 folder, ./configure stops because it cannot find GnuTLS (Terminal output)

I would guess (without actually looking) that you may have to give configure some hints as to where to find GnuTLS. Maybe ./configure --help will give you a clue but it is likely to be something like ./configure --with-gnutls=/path/to/gnutls.

That said if you are installing GnuTLS using some packaging system then why not install samba the same way? If the port is out of date then update it first...
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.