[Samba] objectClass:posixAccount missing

Rowland Penny rowlandpenny at googlemail.com
Fri Aug 30 11:00:23 MDT 2013

On 30/08/13 17:26, Luca Olivetti wrote:
> Al 30/08/13 17:05, En/na Rowland Penny ha escrit:
>> Correct, though I do not understand why you are using the full path to
>> samba-tool
> Because it's not in PATH
Then you need to alter your PATH environmental variable, I do this on 

echo "PATH=/usr/local/samba/bin:/usr/local/samba/sbin:\$PATH" > 
export PATH=/usr/local/samba/bin:/usr/local/samba/sbin:$PATH

>> Where did you get samba4 from, did you compile it yourself?
> Yes
>> what
>> version?
> 4.0.8 (4.0.9 wasn't yet available when I started the experiment)
>> what OS are you using, if you did compile it yourself, what
>> packages did you install before compiling.
> I'm using linux, mageia 3, I installed every -devel package providing
> the .h files I saw in ./configure output (minus libldb since the
> packaged one is not compatible with samba 4 and would produce a non
> working samba)

Then the package names needed to compile samba are probably the same as 

gcc libacl-devel libblkid-devel gnutls-devel \
    readline-devel python-devel gdb pkgconfig krb5-workstation \
    zlib-devel setroubleshoot-server libaio-devel \
    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 cups-devel bind-utils

The above was taken from: 

Check that you have all the above installed and if not, install what 
ever is missing and recompile samba 4
Also, it may help if you try another OS, no disrespect, but Mageia is 
not really what I would call a server distro and is probably not used by 
many people to run samba 4 on, so you will struggle to get precise help 
here (ducks as thousands of people reply saying I use Mageia ;-) )


>> You could try stopping sssd and then remove the sssd databases: rm -f
>> /var/lib/sss/db/* (this is on Ubuntu)
> Already done
>> All I do is:
>> Export keytab: samba-tool domain exportkeytab /etc/krb5.keytab -U
>> Administrator
> Done
>> Install sssd sssd-tools via package manager
> Done (well, I actually I didn't install sssd-tools, but I did now and it
> changed nothing).
>> alter /etc/sssd/sssd.conf as per the one I supplied
>> remove the sssd databases
>> start sssd
> Done
> Maybe one of the post-install script in one of the ubuntu packages
> performs automatically one of the missing steps?
> Bye

More information about the samba mailing list