[Samba] smbclient help

Rowland penny rpenny at samba.org
Thu Jan 14 12:25:57 UTC 2021


On 14/01/2021 09:12, jmpatagonia via samba wrote:
> Rowwland if I do that , I have the error Unknown resolve method 'hosts'
>
> - three tests:
>
> ldbsearch -H ldap://midominio:636 -b
> "cn=jcbatman3,cn=Users,dc=midominio,dc=ar" -s sub
> '(&(sAMAccountName=jcbatman3)(memberOf=*))' memberOf -k yes
> Unknown resolve method 'hosts'
> Failed to bind - LDAP client internal error: NT_STATUS_CONNECTION_RESET
> Failed to connect to 'ldap://midominio:636' with backend 'ldap': (null)
> Failed to connect to ldap://midominio:636 - (null)
>
> ldbsearch -H ldap://midominio:389 -b
> "cn=jcbatman3,cn=Users,dc=midominio,dc=ar" -s sub
> '(&(sAMAccountName=jcbatman3)(memberOf=*))' memberOf -k yes
> Unknown resolve method 'hosts'
> Failed to bind - LDAP client internal error: NT_STATUS_INVALID_PARAMETER
> Failed to connect to 'ldap://midominio:389' with backend 'ldap': (null)
> Failed to connect to ldap://midominio:389 - (null)
>
> ldbsearch -H ldap://midominio -b "cn=jcbatman3,cn=Users,dc=midominio,dc=ar"
> -s sub '(&(sAMAccountName=jcbatman3)(memberOf=*))' memberOf -k yes
> Unknown resolve method 'hosts'


The last version should work, do you by any chance have a line in 
smb.conf that starts ' name resolve order' ? if so, remove it, it is 
meant for NT4-style domains and shouldn't be used in AD.

If you don't have that line, can you post your smb.conf, 
/etc/resolv.conf, /etc/nsswitch.conf and /etc/hosts files. You appear to 
have dns problems.

Rowland





More information about the samba mailing list