[Samba] using passdb backend = smbpasswd and ldap linux authentication

tony archibald tony at dutyfreestores.com.au
Sun Nov 20 22:36:12 MST 2011


Hi thanks for your reply.
yes  i think so : i have the following in /etc/nsswitch.conf

passwd:       files ldap
shadow:       files ldap
group:          files ldap
netgroup:      files ldap
automount:  files ldap

cheers Tony

On 21 November 2011 16:25, David Roid <dataroid at gmail.com> wrote:

> Do you enable LDAP in NSS?
>
> 2011/11/21 tony archibald <tony at dutyfreestores.com.au>
>
>> OS = RHEL 5
>> samba version  3.0.33-3.29
>> openldap 2.3
>>
>> is it possible to have linux users stored in an ldap directory and still
>> use the  passdb backend = smbpasswd.
>> I have an existing smbpasswd password db and an existing set of linux
>> users
>> I have migrated the linux users to LDAP and authenticating successfully
>> until I have time to get all samba credentials migrated to ldap i still
>> need use the existing smbpaswd file.
>> so the scenario is that for existing (ie pre migration) users all is well.
>> however for newly added users I get the following error when accessing a
>> share.
>> "build_sam_account: smbpasswd database is corrupt!  username jtony with
>> uid
>> 1091 is not in unix passwd database!"
>> smbd doesn't seem to be looking in the ldap directory for the unix user,
>> rather it is still looking in /etc/passwd
>>
>> regards
>> --
>> To unsubscribe from this list go to the following URL and read the
>> instructions:  https://lists.samba.org/mailman/options/samba
>>
>
>


More information about the samba mailing list