[Samba] Problem connecting to Samba server

Lionel Pinkhard pinkhardlionel at yahoo.com
Tue Feb 19 16:56:36 GMT 2008


Hi

Clients cannot connect to the Samba server (Version 3.0.25b OpenBSD/amd64), first attempt gives Access denied, second attempt gives The network name request is no longer available.

Can someone please help in finding out what is wrong? I've been going through the logs and configuration the past week, but can't seem to find out what's the issue. Any pointers would be appreciated.

The server is supposed to be a primary domain controller, but in this case I'm just trying to browse to it over the network or do a NET VIEW from a Windows XP client. It worked before, I'm not sure what I did to break it (I was fiddling around with Postfix and Courier-imap between it last working and now not working, though it might be something completely unrelated, since I backed up my Samba and OpenLDAP configuration and reinstalled OpenBSD from scratch after breaking some other stuff). But between it working about a week ago, and not working I didn't make any changes to the Samba configuration, I did however add the misc.schema, and the authdaemon.schema files to accomodate Postfix and Courier-IMAP, but a 'slapcat' output compared to the old one looks identical (except for the mail details which are now present). Hope somebody can help me out here, I'm running out of ideas.

Any help would be greatly appreciated!

Regards,

Lionel

Configuration:

[global]
  workgroup = NETWORK
  server string = Server
  security = user
  load printers = yes
  printing = lpd
  log file = /var/log/smbd.%m
  log level = 3
  wins support = yes
  dns proxy = no 
  passdb backend = ldapsam:ldap://localhost
  passdb expand explicit = no
  ldap suffix = dc=network,dc=local
  ldap machine suffix = ou=Computers
  ldap user suffix = ou=Users
  ldap group suffix = ou=Groups
  ldap idmap suffix = ou=Users
  ldap admin dn = cn=Manager,dc=network,dc=local
  ldap ssl = no
  ldap password sync = yes
  idmap uid = 2000-4000
  idmap gid = 2000-4000
  add user script = /usr/sbin/useradd -g DomainUsers -c "System User" \
    -s /sbin/nologin -m %u
  add group script = /usr/sbin/groupadd %g
  add machine script = /usr/sbin/adduser -n -g DomainComputers -c Machine \
    -d /var/empty -s /sbin/nologin %u
  delete user script = /usr/sbin/userdel %u
  delete user from group script = /usr/sbin/deluser %u %g
  delete group script = /usr/sbin/groupdel %g
  local master = yes
  os level = 33
  preferred master = yes
  domain master = yes
  domain logons = yes
  logon script = netlogon.bat 

[homes]
  comment = Home Directories
  browseable = no
  writable = yes

[netlogon]
  comment = Network Logon Service
  path = /var/netlogon
  read only = yes
  guest ok = yes
  write list = @"Domain Admins" 
  share modes = no
  browseable = no

[printers]
  comment = All Printers
  path = /var/spool/samba
  browseable = no
  guest ok = no
  writable = no
  printable = yes

[tmp]
  comment = Temporary file space
  path = /tmp
  read only = no
  public = yes

[profiles]
  path = /var/data/%a
  browseable = yes
  read only = no
  guest ok = yes
  create mask = 0600

[public]
  comment = Public Stuff
  path = /home/public
  public = yes
  writable = yes
  printable = no

Log files (started syslogd, then nmbd & smbd, attempted to connect client (twice), then stopped logging, please ignore upsmon messages, my ups is also not working):
Feb 19 18:05:46 server upsmon[24272]: Poll UPS [myups at localhost] failed - Driver not connected
Feb 19 18:05:51 server upsmon[24272]: Poll UPS [myups at localhost] failed - Driver not connected
Feb 19 18:05:51 server slapd[9204]: conn=3 fd=18 ACCEPT from IP=127.0.0.1:30347 (IP=0.0.0.0:389) 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=0 BIND dn="cn=Manager,dc=network,dc=local" method=128 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=0 BIND dn="cn=Manager,dc=network,dc=local" mech=SIMPLE ssf=0 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=0 RESULT tag=97 err=0 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=1 SRCH base="" scope=0 deref=0 filter="(objectClass=*)" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=1 SRCH attr=supportedControl 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=2 SRCH base="dc=network,dc=local" scope=2 deref=0 filter="(&(objectClass=sambaDomain)(sambaDomainName=network))" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=2 SRCH attr=sambaDomainName sambaNextRid sambaNextUserRid sambaNextGroupRid sambaSID sambaAlgorithmicRidBase objectClass 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=3 SRCH base="dc=network,dc=local" scope=2 deref=0 filter="(&(uid=root)(objectClass=sambaSamAccount))" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=3 SRCH attr=uid uidNumber gidNumber homeDirectory sambaPwdLastSet sambaPwdCanChange sambaPwdMustChange sambaLogonTime sambaLogoffTime sambaKickoffTime cn sn displayName sambaHomeDrive sambaHomePath sambaLogonScript sambaProfilePath description sambaUserWorkstations sambaSID sambaPrimaryGroupSID sambaLMPassword sambaNTPassword sambaDomainName objectClass sambaAcctFlags sambaMungedDial sambaBadPasswordCount sambaBadPasswordTime sambaPasswordHistory modifyTimestamp sambaLogonHours modifyTimestamp uidNumber 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=3 SEARCH RESULT tag=101 err=0 nentries=1 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=4 SRCH base="sambaDomainName=NETWORK,dc=network,dc=local" scope=0 deref=0 filter="(objectClass=*)" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=4 SRCH attr=sambaPwdHistoryLength 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=4 SEARCH RESULT tag=101 err=0 nentries=1 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=5 SRCH base="ou=Groups,dc=network,dc=local" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(gidNumber=0))" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=5 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=5 SEARCH RESULT tag=101 err=0 nentries=0 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=6 SRCH base="ou=Groups,dc=network,dc=local" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-5-32-544))" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=6 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=6 SEARCH RESULT tag=101 err=0 nentries=1 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=7 SRCH base="ou=Groups,dc=network,dc=local" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-5-32-545))" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=7 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=7 SEARCH RESULT tag=101 err=0 nentries=0 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=8 SRCH base="ou=Groups,dc=network,dc=local" scope=2 deref=0 filter="(&(|(objectClass=sambaGroupMapping)(sambaGroupType=4))(|(sambaSIDList=s-1-5-21-2360805854-631494221-4277834304-500)(sambaSIDList=s-1-5-32-544)(sambaSIDList=s-1-1-0)(sambaSIDList=s-1-5-2)(sambaSIDList=s-1-5-11)))" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=8 SRCH attr=sambaSID 
Feb 19 18:05:51 server slapd[9204]: <= bdb_equality_candidates: (sambaGroupType) index_param failed (18) 
Feb 19 18:05:51 server slapd[9204]: <= bdb_equality_candidates: (sambaSIDList) index_param failed (18) 
Feb 19 18:05:51 server last message repeated 4 times
Feb 19 18:05:51 server slapd[9204]: conn=3 op=8 SEARCH RESULT tag=101 err=0 nentries=0 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=9 SRCH base="ou=Groups,dc=network,dc=local" scope=2 deref=0 filter="(&(|(objectClass=sambaGroupMapping)(sambaGroupType=4))(|(sambaSIDList=s-1-5-21-2360805854-631494221-4277834304-500)(sambaSIDList=s-1-5-32-544)(sambaSIDList=s-1-1-0)(sambaSIDList=s-1-5-2)(sambaSIDList=s-1-5-11)))" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=9 SRCH attr=sambaSID 
Feb 19 18:05:51 server slapd[9204]: <= bdb_equality_candidates: (sambaGroupType) index_param failed (18) 
Feb 19 18:05:51 server slapd[9204]: <= bdb_equality_candidates: (sambaSIDList) index_param failed (18) 
Feb 19 18:05:51 server last message repeated 4 times
Feb 19 18:05:51 server slapd[9204]: conn=3 op=9 SEARCH RESULT tag=101 err=0 nentries=0 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=10 SRCH base="ou=Groups,dc=network,dc=local" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(gidNumber=32767))" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=10 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=10 SEARCH RESULT tag=101 err=0 nentries=0 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=11 SRCH base="ou=Groups,dc=network,dc=local" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-5-32-545))" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=11 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=11 SEARCH RESULT tag=101 err=0 nentries=0 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=12 SRCH base="ou=Groups,dc=network,dc=local" scope=2 deref=0 filter="(&(|(objectClass=sambaGroupMapping)(sambaGroupType=4))(|(sambaSIDList=s-1-5-21-2360805854-631494221-4277834304-501)(sambaSIDList=s-1-22-2-32767)(sambaSIDList=s-1-1-0)(sambaSIDList=s-1-5-2)(sambaSIDList=s-1-5-32-546)))" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=12 SRCH attr=sambaSID 
Feb 19 18:05:51 server slapd[9204]: <= bdb_equality_candidates: (sambaGroupType) index_param failed (18) 
Feb 19 18:05:51 server slapd[9204]: <= bdb_equality_candidates: (sambaSIDList) index_param failed (18) 
Feb 19 18:05:51 server last message repeated 4 times
Feb 19 18:05:51 server slapd[9204]: conn=3 op=12 SEARCH RESULT tag=101 err=0 nentries=0 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=13 SRCH base="ou=Groups,dc=network,dc=local" scope=2 deref=0 filter="(&(|(objectClass=sambaGroupMapping)(sambaGroupType=4))(|(sambaSIDList=s-1-5-21-2360805854-631494221-4277834304-501)(sambaSIDList=s-1-22-2-32767)(sambaSIDList=s-1-1-0)(sambaSIDList=s-1-5-2)(sambaSIDList=s-1-5-32-546)))" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=13 SRCH attr=sambaSID 
Feb 19 18:05:51 server slapd[9204]: <= bdb_equality_candidates: (sambaGroupType) index_param failed (18) 
Feb 19 18:05:51 server slapd[9204]: <= bdb_equality_candidates: (sambaSIDList) index_param failed (18) 
Feb 19 18:05:51 server last message repeated 4 times
Feb 19 18:05:51 server slapd[9204]: conn=3 op=13 SEARCH RESULT tag=101 err=0 nentries=0 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=14 SRCH base="ou=Groups,dc=network,dc=local" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-1-0))" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=14 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=14 SEARCH RESULT tag=101 err=0 nentries=0 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=15 SRCH base="ou=Groups,dc=network,dc=local" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-5-2))" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=15 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=15 SEARCH RESULT tag=101 err=0 nentries=0 text= 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=16 SRCH base="ou=Groups,dc=network,dc=local" scope=2 deref=0 filter="(&(objectClass=sambaGroupMapping)(sambaSID=s-1-5-32-546))" 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=16 SRCH attr=gidNumber sambaSID sambaGroupType sambaSIDList description displayName cn objectClass 
Feb 19 18:05:51 server slapd[9204]: conn=3 op=16 SEARCH RESULT tag=101 err=0 nentries=0 text= 
Feb 19 18:05:56 server nmbd[21055]: [2008/02/19 18:05:56, 0] /usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/nmbd/nmbd_logonnames.c:add_logon_names(163) 
Feb 19 18:05:56 server nmbd[21055]:  add_domain_logon_names: 
Feb 19 18:05:56 server nmbd[21055]:  Attempting to become logon server for workgroup NETWORK on subnet 10.0.0.1 
Feb 19 18:05:56 server nmbd[21055]: [2008/02/19 18:05:56, 0] /usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/nmbd/nmbd_logonnames.c:add_logon_names(163) 
Feb 19 18:05:56 server nmbd[21055]:  add_domain_logon_names: 
Feb 19 18:05:56 server nmbd[21055]:  Attempting to become logon server for workgroup NETWORK on subnet UNICAST_SUBNET 
Feb 19 18:05:56 server nmbd[21055]: [2008/02/19 18:05:56, 0] /usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(335) 
Feb 19 18:05:56 server nmbd[21055]:  become_domain_master_browser_wins: 
Feb 19 18:05:56 server nmbd[21055]:  Attempting to become domain master browser on workgroup NETWORK, subnet UNICAST_SUBNET. 
Feb 19 18:05:56 server nmbd[21055]: [2008/02/19 18:05:56, 0] /usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/nmbd/nmbd_become_dmb.c:become_domain_master_browser_wins(349) 
Feb 19 18:05:56 server nmbd[21055]:  become_domain_master_browser_wins: querying WINS server from IP 10.0.0.1 for domain master browser name NETWORK<1b> on workgroup NETWORK 
Feb 19 18:05:56 server nmbd[21055]: [2008/02/19 18:05:56, 0] /usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/nmbd/nmbd_logonnames.c:become_logon_server_success(124) 
Feb 19 18:05:56 server nmbd[21055]:  become_logon_server_success: Samba is now a logon server for workgroup NETWORK on subnet UNICAST_SUBNET 
Feb 19 18:05:56 server nmbd[21055]: [2008/02/19 18:05:56, 0] /usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/nmbd/nmbd_become_dmb.c:become_domain_master_stage2(113) 
Feb 19 18:05:56 server nmbd[21055]:  ***** 
Feb 19 18:05:56 server nmbd[21055]:    
Feb 19 18:05:56 server nmbd[21055]:  Samba server SERVER is now a domain master browser for workgroup NETWORK on subnet UNICAST_SUBNET 
Feb 19 18:05:56 server nmbd[21055]:    
Feb 19 18:05:56 server nmbd[21055]:  ***** 
Feb 19 18:05:56 server nmbd[21055]: [2008/02/19 18:05:56, 0] /usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(290) 
Feb 19 18:05:56 server nmbd[21055]:  become_domain_master_browser_bcast: 
Feb 19 18:05:56 server nmbd[21055]:  Attempting to become domain master browser on workgroup NETWORK on subnet 10.0.0.1 
Feb 19 18:05:56 server nmbd[21055]: [2008/02/19 18:05:56, 0] /usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/nmbd/nmbd_become_dmb.c:become_domain_master_browser_bcast(303) 
Feb 19 18:05:56 server nmbd[21055]:  become_domain_master_browser_bcast: querying subnet 10.0.0.1 for domain master browser on workgroup NETWORK 
Feb 19 18:05:56 server upsmon[24272]: Poll UPS [myups at localhost] failed - Driver not connected
Feb 19 18:06:01 server nmbd[21055]: [2008/02/19 18:06:01, 0] /usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/nmbd/nmbd_logonnames.c:become_logon_server_success(124) 
Feb 19 18:06:01 server nmbd[21055]:  become_logon_server_success: Samba is now a logon server for workgroup NETWORK on subnet 10.0.0.1 
Feb 19 18:06:01 server upsmon[24272]: Poll UPS [myups at localhost] failed - Driver not connected
Feb 19 18:06:06 server nmbd[21055]: [2008/02/19 18:06:06, 0] /usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/nmbd/nmbd_become_dmb.c:become_domain_master_stage2(113) 
Feb 19 18:06:06 server nmbd[21055]:  ***** 
Feb 19 18:06:06 server nmbd[21055]:    
Feb 19 18:06:06 server nmbd[21055]:  Samba server SERVER is now a domain master browser for workgroup NETWORK on subnet 10.0.0.1 
Feb 19 18:06:06 server nmbd[21055]:    
Feb 19 18:06:06 server nmbd[21055]:  ***** 
Feb 19 18:06:06 server upsmon[24272]: Poll UPS [myups at localhost] failed - Driver not connected
Feb 19 18:06:16 server last message repeated 2 times
Feb 19 18:06:21 server nmbd[21055]: [2008/02/19 18:06:21, 0] /usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/nmbd/nmbd_become_lmb.c:become_local_master_stage2(396) 
Feb 19 18:06:21 server nmbd[21055]:  ***** 
Feb 19 18:06:21 server nmbd[21055]:    
Feb 19 18:06:21 server nmbd[21055]:  Samba name server SERVER is now a local master browser for workgroup NETWORK on subnet 10.0.0.1 
Feb 19 18:06:21 server nmbd[21055]:    
Feb 19 18:06:21 server nmbd[21055]:  ***** 
Feb 19 18:06:21 server upsmon[24272]: Poll UPS [myups at localhost] failed - Driver not connected
Feb 19 18:06:36 server last message repeated 3 times
Feb 19 18:06:41 server slapd[9204]: conn=2 fd=12 closed (connection lost) 
Feb 19 18:06:41 server upsmon[24272]: Poll UPS [myups at localhost] failed - Driver not connected
Feb 19 18:07:11 server last message repeated 6 times

The samba log is also available should it be required, it's been cropped to to space restraints.


      __________________________________________________________________ 
Tired of visiting multiple sites for showtimes? 
Yahoo! Movies is all you need
http://sg.movies.yahoo.com


More information about the samba mailing list