Custom compiled samba drove me nuts.

A long time ago, someone compiled from source and then installed samba 3.0.7 in /opt/csw on a Solaris 8 machine we have.  I surmize that the person ran ./configure with “–prefix=/opt/csw”

Today we wanted to do “net ads join” and couldn’t. We got /etc/krb5/krb5.conf right, we know it because kinit would work. But the /opt/csw/bin/net ads join -U myadminaccount kept failing.   Kept saying:

ads_connect: Cannot resolve network address for KDC in requested realm

I ran the command with debugging and tried tweaking this that and the other thing over and over.  It was infuriating.  It was like the tool (net) couldn’t see the “kdc =” lines in krb5.conf. Well, it finally dawned on me: it CAN’T. It thinks krb5.conf should be /opt/csw/etc. So I made a symlink and it worked!!!

Whooo hoo!

Leave a Reply

You must be logged in to post a comment.