Samba idmap ldap: works perfect on Linux,bad on Solaris and hpux

I have configured samba for working
with and external ldap(ad windows2003+openldap backend to obtain the same uid and gid on all linux machines)
On linux works perfect,and i get the same uid for a X user
on all machines.
On solaris11 and hpux 11.31 not
wbinfo -u works fine
wbinfo -g works fine
wbinfo -i user give WBC_ERR_DOMAIN_NOT_FOUND

This is my samba configuration

    idmap config * : backend      = ldap
    idmap config * : range        = 10000-20000
    idmap config * : ldap_url     = ldap://server.domain 
    idmap config * : ldap_base_dn = ou=idmap,dc=ldap1,dc=domain,dc=test
    idmap config * : ldap_user_dn = cn=Manager,dc=ldap1,dc=domain,dc=test

of course idmap password of Manager is stored.
I try also the old config style(deprecated on samba 3.6)
but doesn't work.
Is possible to fix this problem?
Thanks