[Samba] Need help compiling Samba on Solaris

Stroh, George strohg at nwfsc.edu
Tue Oct 5 08:46:11 MDT 2010

I got it to compile and run. I joined it to the domain and what the
wbinfo and net ads commands returned looked correct. I was not able to
map a drive to it. Computer management in windows says that nothing is
shared and when I browsed for the server it showed up under Other and
not the domain. 

I was not aware that nsswitch might need to be compiled also. Is there
documentation that says for samba x.x.x you need openldap x.x.x or
Kerberos x.x.x? I haven't seen anything on samba.org or in the source
code. I the Solaris samba source code I found the configure options they

On samba 3.0.37 we have the windows 2003 domain controller listed as the
password server in the smb.conf and as the kdc in the krb5.conf files.
The windows 2008 domain controller doesn't like samba. Set the "Network
Security: LAN Manager authentication level" to "LM and NTLM - use NTLMV2
session security if negotiated"

I need to build a newer version because the windows admin wants to
replace the windows 2003 dc with a windows 2008 dc.

-----Original Message-----
From: Gaiseric Vandal [mailto:gaiseric.vandal at gmail.com] 
Sent: Monday, October 04, 2010 17:02
To: samba at lists.samba.org
Subject: Re: [Samba] Need help compiling Samba on Solaris

Sort of compiled?  Does that mean some options didn't compile?

I was able to compile samba 3.4.x. (as you point out, it requires 
tinkering with the CPPFLAGS etc.)    The latest OpenLDAP from 
sunfreeware should be fine (plus its dependencies, which are listed.)   
Presumably you are using GCC from Sunfreeware?  The Solaris kerberos 
should be fine.

nsswitch source is in a separate directory

.../samba-3.4.8/nsswitch not .../samba-3.4.8/source3

you may need to compile separately.

I see your other post.   3.0.37 generally worked for me except for 
interdomain trusts.  I know it wouldn't work with Windows 7 but that 
wasn't an issue for me at the time.

(Again, I repeat complain about Sun abandoning samba and not moving 
before 3.0.x-  which is will be useless one you need to support Windows

On 10/04/2010 04:59 PM, Stroh, George wrote:
> I had limited success compiling 3.4.8 and 3.5.4 on Solaris 10 8/07
> I downloaded the source code from Samba.org and the dependencies from
> sunfreeware.com. After some googling and trial and error with the
> LDDFLAGS, CPPFLAGS and such, it sort of compiled. I need to know how
> properly set things up. How can I find out what version of
> you need for a particular samba version?

More information about the samba mailing list