[Samba] WINS resolution not working on WINS Server

Ian Clancy clancyian at cel.ie
Tue May 24 08:59:42 GMT 2005


Hi Samba Users,
I'm using a typical Samba/LDAP Solution. My PDC is running samba 3.0.14a 
on RHEL4. This is also my acting WINS server.
WINS resolution appears to be working fine for all other PC's on the 
network. It works for my BDC, and Domain member servers and the various 
windows clients on the network. However WINS does not appear to work on 
the PDC itself.

On the pdc i have the following line in nsswitch.conf:

hosts:      files wins dns

The following output from log.nmbd show an unsuccessful wins lookup by 
the PDC (in reverse using tac). I can see CELCZPDC<00> clearly in the 
wins.dat file:

  find_name_on_subnet: on subnet 192.0.2.14 - name CELCZPDC<00> NOT FOUND
[2005/05/24 09:43:09, 9] nmbd/nmbd_namelistdb.c:find_name_on_subnet(129)
-1 == memcmp( "CELCZPDC<00>", "CELDC<00>", 84 )
nmbd_subnetdb:namelist_entry_compare()
[2005/05/24 09:43:09, 10] nmbd/nmbd_subnetdb.c:namelist_entry_compare(69)
-1 == memcmp( "CELCZPDC<00>", "CELDC<03>", 84 )
nmbd_subnetdb:namelist_entry_compare()
[2005/05/24 09:43:09, 10] nmbd/nmbd_subnetdb.c:namelist_entry_compare(69)
1 == memcmp( "CELCZPDC<00>", "CEL<1e>", 84 )
nmbd_subnetdb:namelist_entry_compare()
[2005/05/24 09:43:09, 10] nmbd/nmbd_subnetdb.c:namelist_entry_compare(69)
-1 == memcmp( "CELCZPDC<00>", "CELDC<20>", 84 )
nmbd_subnetdb:namelist_entry_compare()
[2005/05/24 09:43:09, 10] nmbd/nmbd_subnetdb.c:namelist_entry_compare(69)
1 == memcmp( "CELCZPDC<00>", "CEL<1d>", 84 )
nmbd_subnetdb:namelist_entry_compare()
[2005/05/24 09:43:09, 10] nmbd/nmbd_subnetdb.c:namelist_entry_compare(69)
  process_name_query_request: Name query from 192.0.2.14 on subnet 
192.0.2.14 for name CELCZPDC<00>
[2005/05/24 09:43:09, 3] 
nmbd/nmbd_incomingrequests.c:process_name_query_request(454)


Here is a copy of my smb.conf :

# Global parameters
[global]
        dos charset = 850
        unix charset = ISO8859-1
        workgroup = CEL
        server string = SAMBA-LDAP %v PDC Server
        interfaces = lo, eth0
        bind interfaces only = Yes
        passdb backend = ldapsam:ldap://127.0.0.1
        enable privileges = Yes
        passwd program = /usr/sbin/smbldap-passwd -u %u
        log level = 1 auth:3 winbind:5 passdb:5
        name resolve order = lmhosts host wins bcast
        printcap name = CUPS
        add user script = /opt/IDEALX/sbin/smbldap-useradd -m "%u"
        delete user script = /opt/IDEALX/sbin/smbldap-userdel "%u"
        add group script = /opt/IDEALX/sbin/smbldap-groupadd -p "%g"
        delete group script = /opt/IDEALX/sbin/smbldap-groupdel "%g"
        add user to group script = /opt/IDEALX/sbin/smbldap-groupmod -m 
"%u" "%g"
        delete user from group script = 
/opt/IDEALX/sbin/smbldap-groupmod -x "%u" "%g"
        set primary group script = /opt/IDEALX/sbin/smbldap-usermod -g 
"%g" "%u"
        add machine script = /opt/IDEALX/sbin/smbldap-useradd -w "%u"
        logon script = scripts\celmap.bat
        logon path =
        logon home =
        domain logons = Yes
        preferred master = Yes
        domain master = Yes
        wins support = Yes
        ldap admin dn = cn=Manager,dc=cel,dc=org
        ldap delete dn = Yes
        ldap group suffix = ou=Groups
        ldap idmap suffix = ou=Idmap
        ldap machine suffix = ou=Computers
        ldap passwd sync = Yes
        ldap suffix = dc=cel,dc=org
        ldap user suffix = ou=People
        remote announce = 192.168.2.2
        idmap backend = ldap:ldap://127.0.0.1
        idmap uid = 10000-15000
        idmap gid = 10000-15000
        winbind separator = +
        winbind use default domain = Yes
        winbind trusted domains only = Yes
        printer admin = Administrator


I need wins to work on the PDC to implement trusted domains . Anyone got 
any idea's as to what could be wrong.
regards,

-- 
Ian Clancy
IT Systems Engineer
Connaught Electronics Ltd.
Dunmore Rd,
Tuam,
Co. Galway,
Ireland.

P : ++353 93 23151
F : ++353 93 23110
E : mailto:clancyian at cel.ie
W : http://www.cel-europe.com




More information about the samba mailing list