Samba4 nmbd/smbd/winbindd

Rowland Penny repenny at f2s.com
Sun Aug 26 15:33:40 MDT 2012


On 26/08/12 21:07, Ricky Nance wrote:
> First, the wiki probably needs to add that openldap (and its headers) 
> should only be installed when using smbd,nmbd, and winbind. 

I only installed openldap-devel as per Andrew Bartlett's suggestion, I 
do not have openldap install or running.

> Openldap by default directly conflicts with samba (as both cannot be 
> runnning on port 389 and samba as an AD controller relies on this port 
> to be a very specific LDAP setup). That being said, the HOWTO is 
> largely written to focus on an AD type of setup and should probably be 
> modified to add other functionality (or at the very least be renamed 
> to AD Howto). 

Sorry, but I did know this.

> As for your getent issue how is your nsswitch.conf file setup, for 
> winbind or ldap? 

Winbind

> If setup for ldap you will need the libnss_ldap files (nss-ldap 
> package), however if you are trying to use winbind you will need to 
> link the files from /usr/local/samba/lib (I think, I don't a terminal 
> handy right at the moment)... libnss_winbind.so should be linked to 
> where your system libs are located (for example ln -sf 
> /usr/local/samba/lib/libnss_winbind.so /lib/libnss_winbind.so and  ln 
> -sf /usr/local/samba/lib/libnss_winbind.so /lib/libnss_winbind.so.2, 
> again I don't have a terminal handy to confirm those paths, so you may 
> need to add or change something there). Good luck and keep us posted.
>
> Ricky

Sorry, but it is my understanding that you only have to do the above to 
use winbind built into the Samba 4 daemon, I am not using that, I am 
using /usr/local/samba/sbin/winbindd.

My main problem at the moment is that I have not got the getent command.

I installed (as per 
https://wiki.samba.org/index.php/Samba_4_OS_Requirements) the following:

yum install libacl-devel libblkid-devel gnutls-devel \
readline-devel python-devel gdb pkgconfig krb5-workstation \
zlib-devel setroubleshoot-server \
setroubleshoot-plugins policycoreutils-python \
libsemanage-python setools-libs-python setools-libs \
popt-devel libpcap-devel sqlite-devel libidn-devel \
libxml2-devel libacl-devel libsepol-devel libattr-devel \
keyutils-libs-devel cyrus-sasl-devel

Then openldap-devel

My feelings are that I still have something missing, it would help if 
Linux distros used the same names for packages ;-)

Rowland

>
> On Sun, Aug 26, 2012 at 12:29 PM, Rowland Penny <repenny at f2s.com 
> <mailto:repenny at f2s.com>> wrote:
>
>     On 26/08/12 18:04, steve wrote:
>
>         On 26/08/12 18:36, Rowland Penny wrote:
>
>             On 26/08/12 16:39, steve wrote:
>
>                 On 26/08/12 16:43, Rowland Penny wrote:
>
>                     On 26/08/12 13:38, Rowland Penny wrote:
>
>                         On 26/08/12 12:48, Andrew Bartlett wrote:
>
>                             On Sun, 2012-08-26 at 09:47 +0100, Rowland
>                             Penny wrote:
>
>                     I have installed openldap-devel and recompiled and
>                     'net ads join' now
>                     works. wbinfo -u & wbinfo -g both work, but I do
>                     not seem to have a
>                     samba4 getent. I have:
>
>
>                 Hi Rowland
>                 I'm sure you have, but just to be safe, winbind for
>                 both passwd and
>                 group in nsswitch.conf with nscd turned off.
>                 Cheers,
>                 Steve
>
>
>
>             Hi Steve, yes, yes and I do not have nscd installed.
>
>             Rowland
>
>         Hi
>         The only other thing that comes to mind is the version of
>         winbind that is running. Is it the one from /samba/sbin/winbindd?
>         HTH
>         Steve
>
>
>
>     Hi steve, again yes. I first downloaded and compiled Samba 4 on a
>     Centos 6.1 box that wasn't doing anything much after I turned off
>     the dhcpd-server after getting this to work on my AD server. This
>     attempt failed because, as Andrew Bartlett pointed out, I did not
>     have ldap-devel installed. Please note I installed everything
>     advised on the Samba 4 requirements page, I have now installed
>     openldap.devel and recompiled etc.
>     Now, the only Samba daemons running are the ones from
>     /usr/local/samba/sbin, the only problem I seem to have now is that
>     I do not have an getent command, do I have something else required
>     before compiling missing? if so what?
>     I may just blow Centos away and install Ubuntu 12.04 and try
>     again, but I am loath to do this, without first trying to get my
>     original install working first.
>
>
>     Rowland
>
>     -- 
>     This message has been scanned for viruses and
>     dangerous content by MailScanner, and is
>     believed to be clean.
>
>
>
>
> -- 
>
>
>
> -- 
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is
> believed to be clean. 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the samba-technical mailing list