Re: [Samba] Problem connecting to Samba server

2008-02-24 Thread Bernd Kloss
Hi,

could you find any hints within the log-files of the clients 
in /var/log/samba?
Did you try 
net use /delete *
smbpasswd -x client$
add new machine account
before going through complete new procedure of adding client to samba?
Bernd

Am Dienstag, 19. Februar 2008 17:56 schrieb Lionel Pinkhard:
 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
 [EMAIL PROTECTED] failed - Driver not connected Feb 19 18:05:51 server
 upsmon[24272]: Poll UPS [EMAIL PROTECTED] 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 

Re: [Samba] Problem connecting to Samba server

2008-02-20 Thread Lionel Pinkhard
-3.0.25b/source/smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/lib/privileges.c:get_privileges(261)
  get_privileges: No privileges assigned to SID 
[S-1-5-21-2360805854-631494221-4277834304-501]
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/lib/privileges.c:get_privileges(261)
  get_privileges: No privileges assigned to SID [S-1-22-2-32767]
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/lib/privileges.c:get_privileges(261)
  get_privileges: No privileges assigned to SID [S-1-5-2]
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/lib/privileges.c:get_privileges(261)
  get_privileges: No privileges assigned to SID [S-1-5-32-546]
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/smbd/sec_ctx.c:push_sec_ctx(208)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/smbd/uid.c:push_conn_ctx(358)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/smbd/sec_ctx.c:set_sec_ctx(241)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/smbd/sec_ctx.c:pop_sec_ctx(356)
  pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
[2008/02/19 18:05:51, 3] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/printing/printing.c:start_background_queue(1388)
  start_background_queue: Starting background LPQ thread
[2008/02/19 18:05:51, 2] 
/usr/obj/ports/samba-3.0.25b-cups-ldap/samba-3.0.25b/source/smbd/server.c:open_sockets_smbd(458)
  waiting for a connection


- Original Message 
From: Adam Williams [EMAIL PROTECTED]
To: Lionel Pinkhard [EMAIL PROTECTED]
Cc: samba@lists.samba.org
Sent: Wednesday, 20 February 2008 9:37:32
Subject: Re: [Samba] Problem connecting to Samba server

can you past your smbd log?

Lionel Pinkhard wrote:
 cropped


  __ 
Yahoo! Singapore Answers 
Real people. Real questions. Real answers. Share what you know at 
http://answers.yahoo.com.sg
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Problem connecting to Samba server

2008-02-19 Thread Adam Williams

can you past your smbd log?

Lionel Pinkhard wrote:

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 [EMAIL PROTECTED] failed - 
Driver not connected
Feb 19 18:05:51 server upsmon[24272]: Poll UPS [EMAIL PROTECTED] 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