Hi,
Could anyone tell me how can I change search option for ldap in samba. In my
smb.conf I have:

/# cat /etc/samba/smb.conf | grep ldap
passdb backend = ldapsam:ldap://10.0.3.25
ldap admin dn = cn=root,dc=lmp,dc=com
ldap suffix = dc=lmp,dc=com
#ldap filter = (&(uid=%u)(objectclass=sambaAccount))

but when I try to connect I get info:

Primary group is 0 and contains 0 supplementary groups
smbldap_search: base => [dc=lmp,dc=com], filter =>
[(&(uid=pawel)(objectclass=sambaSamAccount))], scope => [2]
ldapsam_getsampwnam: Unable to locate user [pawel] count=0
pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
check_sam_security: Couldn't find user 'pawel' in passdb.
check_ntlm_password: sam authentication for user [pawel] FAILED with error
NT_STATUS_NO_SUCH_USER
check_ntlm_password: Authentication for user [pawel] -> [pawel] FAILED
with
error NT_STATUS_NO_SUCH_USER

I don't have sambaSamAccount object but sambaAccount.

If I uncomment ldap filter in smb.conf:

/# cat /etc/samba/smb.conf | grep ldap
passdb backend = ldapsam:ldap://10.0.3.25
ldap admin dn = cn=root,dc=lmp,dc=com
ldap suffix = dc=lmp,dc=com
ldap filter = (&(uid=%u)(objectclass=sambaAccount))


then I get:

smbldap_search: base => [dc=lmp,dc=com], filter =>
[(&(&(uid=pawel)(objectclass=sambaAccount))(objectclass =sambaSamAccount))],
scope => [2]

It doesn't overwrite the ldap filter but add 'objectclass=sambaSamAccount'.

How can I solve this problem? I thing that I cannot connect to samba shares
because of wrong objectclass search.

I'm running debian sarge stable, samba 3.0.14a.

Thx,
Pawel