Com­pil­ing Samba 3.5.8 with AD sup­port on Sol­aris 10 u8

If someone needs a samba which is able to com­mu­nic­ate with an AD 2008 server on a Sol­aris 10 sys­tem… here is how I did it.

Pre­requis­ites

  • /​opt/​SUNWspro con­tains the Stu­dio 12 com­piler
  • tar­balls of open­ldap–stable–20100719 (2.4.23), heimdal-1.4, samba-3.5.8
  • ex­port PATH=/opt/SUNWspro/bin:/usr/xpg6/bin:/usr/xpg4/bin:/usr/perl5/bin:/usr/bin:/usr/openwin/bin:/bin:/usr/sfw/bin:/usr/sfw/sbin:/sbin:/usr/sbin:/usr/sadm/admin/bin:/usr/sadm/bin:/usr/java/jre/bin:/usr/ccs/bin:/usr/ucb CC=cc CXX=CC
  • DEST=/path/to/final/location

Com­pil­ing everything

openldap-​stable-​20100719 (2.4.23)

ex­port CPPFLAGS=”-I/usr/sfw/include” LDFLAGS=”-L/usr/sfw/lib –R/​usr/​sfw/​lib”
./​configure –pre­fix=$DEST/openldap-2.4.23 –disable-​slapd
make de­pend
make in­stall

heimdal-1.4

./​configure –prefix=$DEST/heimdal-1.4 –with-openldap=$DEST/openldap-2.4.23 –with-hdbdir=$DEST/heimdal-instance/var/heimdal –sysconfdir=$DEST/heimdal-instance/etc
cd lib/​hcrypto/​libtommath

Un­for­tu­nately heimdal-1.4 does not con­tain all the files you need. As of this writ­ing (if you try to do this a lot later, you may get more re­cent ver­sions which may or may not work with heim­dal 1.4) I was able to down­load them from

cd ../../..
make
make in­stall
mk­dir –p $DEST/​heimdal-​instance/​var/​heimdal $DEST/​heimdal-​instance/​etc

samba-3.5.8

ex­port CPPFLAGS=”-I$DEST/openldap-2.4.23/include” LDFLAGS=”-L$DEST/openldap-2.4.23/lib –R$DEST/openldap-2.4.23/lib –R$DEST/samba-3.5.8/lib –R$DEST/heimdal-1.4/lib”
./​configure –prefix=$DEST/samba-3.5.8 –sysconfdir=$DEST/samba-instance/etc –localstatedir=$DEST/samba-instance/var –with-privatedir=$DEST/samba-instance/private –with-lockdir=$DEST/samba-instance/var/locks –with-statedir=$DEST/samba-instance/var/locks –with-cachedir=$DEST/samba-instance/var/locks –with-piddir=$DEST/samba-instance/var/locks –with-ncalrpcdir=$DEST/samba-instance/var/ncalrpc –with-configdir=$DEST/samba-instance/con­fig –with-​ldap –with-krb5=$DEST/heimdal-1.4 –with-​ads –with-​quotas –with-​aio-​support –with-shared-modules=vfs_zfsacl
gmake
gmake in­stall

After that you have a samba in $DEST/samba-3.5.8, the con­fig for it should be put into $DEST/​samba-​instance/​config and if you need to have a cus­tom krb4.conf you can put it int $DEST/​heimdal-​instance/​etc/​.

StumbleUponXINGBalatarinBox.netDiggGoogle GmailNetvouzPlurkSiteJotTypePad PostYahoo BookmarksVKSlashdotPocketHacker NewsDiigoBuddyMarksRedditLinkedInBibSonomyBufferEmailHatenaLiveJournalNewsVinePrintViadeoYahoo MailAIMBitty BrowserCare2 NewsEvernoteMail.RuPrintFriendlyWaneloYahoo MessengerYoolinkWebnewsStumpediaProtopage BookmarksOdnoklassnikiMendeleyInstapaperFarkCiteULikeBlinklistAOL MailTwitterGoogle+PinterestTumblrAmazon Wish ListBlogMarksDZoneDeliciousFlipboardFolkdJamespotMeneameMixiOknotiziePushaSvejoSymbaloo FeedsWhatsAppYouMobdiHITTWordPressRediff MyPageOutlook.comMySpaceDesign FloatBlogger PostApp.netDiary.RuKindle ItNUjijSegnaloTuentiWykopTwiddlaSina WeiboPinboardNetlogLineGoogle BookmarksDiasporaBookmarks.frBaiduFacebookGoogle ClassroomKakaoQzoneSMSTelegramRenrenKnownYummlyShare/​Save

Leave a Reply

Your email address will not be published. Required fields are marked *