[Samba] Only administrator works in ldapsam:editposix domain

Norberto Bensa nbensa at gmail.com
Wed Jul 22 09:08:19 MDT 2009


Always CC the list.

On Wed, Jul 22, 2009 at 10:20 AM, Kyle Schmitt<kyleaschmitt at gmail.com> wrote:
> On Tue, Jul 21, 2009 at 10:36 PM, Norberto Bensa<nbensa at gmail.com> wrote:
>> If you use ldapsam:editposix, that's is automatically done for you
>> with the net command. Are you sure your nsswitch.conf is configured
>> correctly?
>
> At first I didn't have the nsswitch.conf setup, because I intended the
> server to handle LDAP & samba for remote systems, but not for itself
> (something I've done before quite successfully with straight LDAP
> setups).

It needs LDAP for itself. Samba needs unix accounts and groups. Read the docs.


> The only issue now is getting the unix password/shadow information in
> LDAP,

/etc/nsswitch.conf
/etc/ldap.conf
/etc/ldap.secret
/etc/ldap/ldap.conf

(paths are for Debian based distros)

> and somehow getting the correct homeDirectory entry by default
> (right now it's defaulting to /home/<DOMAIN>/<username>).

Use "template homedir" in smb.conf


Regards,
Norberto


More information about the samba mailing list