LSA_LOOKUPNAME on Samba-3.0.3rc1

Jianliang Lu j.lu at tiesse.com
Mon Apr 26 13:10:59 GMT 2004


When we use LSA_LOOKUPNAME in "local" search, the "domain" gived is the 
netbios server name, not the domain name. Try:
	rpcclient -Uuser%password -c "lookupnames name" server
it got the "NT_STATUS_NONE_MAPPED".
Same failure was found from NT-Samba test.

FIXME:
--- samba-3.0.3rc1/source/passdb/lookup_sid.c.orig  Fri Apr 23 08:59:07 2004
+++ samba-3.0.3rc1/source/passdb/lookup_sid.c   Mon Apr 26 13:54:54 2004
@@ -36,7 +36,8 @@
    /* If we are looking up a domain user, make sure it is
       for the local machine only */

-   if (strequal(domain, get_global_sam_name())) {
+   if (strequal(domain, global_myname()) || strequal(domain, 
get_global_sam_name()))
{
+       local_lookup = True;
        if (local_lookup_name(name, psid, name_type)) {
            DEBUG(10,
                  ("lookup_name: (local) [%s]\\[%s] -> SID %s (type %s: %u)
\n",
-----------------

Jianliang Lu
TieSse s.p.a.     Ivrea (To) - Italy
j.lu at tiesse.com   luj at libero.it
http://www.tiesse.com


More information about the samba-technical mailing list