robert mena
2009-Mar-07 15:03 UTC
[Samba] Unable to join domain : Migrating from Ubuntu to CentOS (WinXP Client)
Hi, I am migrating a ubuntu server to a centos one. The ubuntu server is working and new server even tough it's running I can't join the domain from a new machine. The new server is not on production so the client (win xp) is connected via a crossover cable. The error message on the client is something like user/password invalid (I am using the root user/password of the server). The log files on the server shows ***** Samba name server MYDOMAIN is now a local master browser for workgroup MYDOMAIN on subnet 192.168.1.254 ***** [2009/03/07 10:26:23, 3] nmbd/nmbd_sendannounce.c:send_local_master_announcement(166) send_local_master_announcement: type 8c9b0b for name MYDOMAIN on subnet 192.168.1.254 for workgroup MYDOMAIN [2009/03/07 10:26:23, 3] nmbd/nmbd_sendannounce.c:send_workgroup_announcement(185) send_workgroup_announcement: on subnet 192.168.1.254 for workgroup MYDOMAIN [2009/03/07 10:26:43, 3] nmbd/nmbd_serverlistdb.c:write_browse_list(419) write_browse_list: Wrote browse list into file /var/cache/samba/browse.dat [2009/03/07 10:26:49, 3] nmbd/nmbd_incomingdgrams.c:process_host_announce(117) process_host_announce: from HENRIQUE<00> IP 192.168.1.100 to MYDOMAIN<1d> for server HENRIQUE. [2009/03/07 10:26:49, 3] nmbd/nmbd_serverlistdb.c:create_server_on_workgroup(157) create_server_on_workgroup: Created server entry HENRIQUE of type 40011003 () on workgroup MYDOMAIN. [2009/03/07 10:26:49, 3] nmbd/nmbd_serverlistdb.c:write_browse_list(419) write_browse_list: Wrote browse list into file /var/cache/samba/browse.dat [2009/03/07 10:28:00, 0] nmbd/nmbd_incomingrequests.c:process_name_refresh_request(172) process_name_refresh_request: unicast name registration request received for name MYDOMAIN<00> from IP 192.168.1.100 on subnet UNICAST_SUBNET. [2009/03/07 10:28:00, 0] nmbd/nmbd_incomingrequests.c:process_name_refresh_request(173) Error - should be sent to WINS server [2009/03/07 10:28:00, 0] nmbd/nmbd_incomingrequests.c:process_name_refresh_request(172) process_name_refresh_request: unicast name registration request received for name HENRIQUE<20> from IP 192.168.1.100 on subnet UNICAST_SUBNET. [2009/03/07 10:28:00, 0] nmbd/nmbd_incomingrequests.c:process_name_refresh_request(173) Error - should be sent to WINS server [2009/03/07 10:28:00, 0] nmbd/nmbd_incomingrequests.c:process_name_refresh_request(172) process_name_refresh_request: unicast name registration request received for name HENRIQUE<00> from IP 192.168.1.100 on subnet UNICAST_SUBNET. [2009/03/07 10:28:00, 0] nmbd/nmbd_incomingrequests.c:process_name_refresh_request(173) Error - should be sent to WINS server [2009/03/07 10:28:16, 3] nmbd/nmbd_incomingrequests.c:process_name_query_request(454) process_name_query_request: Name query from 192.168.1.100 on subnet UNICAST_SUBNET for name MYDOMAIN<1c> [2009/03/07 10:28:16, 3] nmbd/nmbd_incomingrequests.c:process_name_query_request(569) OK [2009/03/07 10:28:16, 3] nmbd/nmbd_processlogon.c:process_logon_packet(358) process_logon_packet: SAMLOGON sidsize 0 ntv 11 [2009/03/07 10:28:21, 3] nmbd/nmbd_processlogon.c:process_logon_packet(358) process_logon_packet: SAMLOGON sidsize 0 ntv 11 [2009/03/07 10:28:21, 3] nmbd/nmbd_processlogon.c:process_logon_packet(358) process_logon_packet: SAMLOGON sidsize 0 ntv 11 [2009/03/07 10:28:21, 3] nmbd/nmbd_incomingrequests.c:process_name_query_request(454) process_name_query_request: Name query from 192.168.1.100 on subnet UNICAST_SUBNET for name MYDOMAIN<1b> [2009/03/07 10:28:21, 3] nmbd/nmbd_incomingrequests.c:process_name_query_request(569) OK [2009/03/07 10:28:22, 3] nmbd/nmbd_incomingrequests.c:process_name_query_request(454) process_name_query_request: Name query from 192.168.1.100 on subnet UNICAST_SUBNET for name MYDOMAIN<20> [2009/03/07 10:28:22, 3] nmbd/nmbd_incomingrequests.c:process_name_query_request(569) OK [2009/03/07 10:28:22, 3] nmbd/nmbd_processlogon.c:process_logon_packet(358) process_logon_packet: SAMLOGON sidsize 0 ntv 11 [2009/03/07 10:28:23, 3] nmbd/nmbd_processlogon.c:process_logon_packet(358) process_logon_packet: SAMLOGON sidsize 0 ntv 11 [2009/03/07 10:28:23, 3] nmbd/nmbd_sendannounce.c:send_local_master_announcement(166) send_local_master_announcement: type 8c9b0b for name MYDOMAIN on subnet 192.168.1.254 for workgroup MYDOMAIN [2009/03/07 10:28:23, 3] nmbd/nmbd_sendannounce.c:send_workgroup_announcement(185) send_workgroup_announcement: on subnet 192.168.1.254 for workgroup MYDOMAIN My config is [global] ; Basic server settings netbios name = Mydomain netbios aliases = Mydomain workgroup = MYDOMAIN interfaces = lo eth1 192.168.1.254/24 ; we should act as the domain and local master browser os level = 64 preferred master = yes domain master = yes local master = yes ; printers printcap name = cups load printers = yes printing = cups ; Performance socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 ; security settings (must user security = user) security = user ; encrypted passwords are a requirement for a PDC encrypt passwords = yes ; support domain logons domain logons = yes ; where to store user profiles? logon path = \\%N\profiles\%u ; specify a generic logon script for all users ; this is a relative **DOS** path to the [netlogon] share ;logon script = logon.cmd log level = 3 ; necessary share for domain controller ;[netlogon] ; path = /usr/local/samba/lib/netlogon ; read only = yes ; write list = ntadmin ; share for storing user profiles ;[profiles] ; path = /export/smb/ntprofile ; read only = no ; create mask = 0600 ; directory mask = 0700 [homes] comment = Home Directories browseable = no writable = no available = no public = no # only user = no [printers] comment = All Printers path = /var/spool/samba browseable = yes # Set public = yes to allow user 'guest account' to print public = no writable = no printable = yes available = no [Documents] available = yes browseable = yes path = /share public = yes guest only = no writable = yes only user = no force group = comum create mask = 770 force create mode = 0770 directory mask = 0770 force directory mode = 0770 [Senior] path = /share/senior available = yes browseable = yes create mode = 777 writable = yes