Changing mail id

2002-07-02 Thread Anjaneya Sastry

Hello Jeremy,
   I want to change my mailing id. from
[EMAIL PROTECTED] to [EMAIL PROTECTED]

Can you tell me how to do it?

Regards
Sastry




__
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com




smbmount with big file sizes

2002-07-02 Thread yash

Dear All,
 I am mounting NTFS file system from few of my windows NT m/cs to Linux backup 
server.
  Few files among them are very big in size around 5 GB. My problem is, when i does 
'ls -l /ntfs-share'
  then 
  it shows weird size of that file i.e

  [root@backup yash]# ls /mnt-sybase/ -l
  total 6609656
  -rwxr-xr-x1 root root 521011200 Jun 18 09:18 
DataApplication20020617_2346.dat
  -rwxr-xr-x1 root root 210982912 Jun 25 09:19 
DataApplication20020624_2347.dat
  -rwxr-xr-x1 root root 18446744072370819072 Jun 18 09:28 
DataCCPRO20020617_2348.dat
  -rwxr-xr-x1 root root 18446744072455077888 Jun 25 09:28 
DataCCPRO20020624_2348.dat
  -rwxr-xr-x1 root root   272384 Jun 25 09:32 
LogApplication20020625_0002.dat
  -rwxr-xr-x1 root root22528 Jun 25 09:46 
LogApplication20020625_0016.dat
  -rwxr-xr-x1 root root26624 Jun 25 10:01 
LogApplication20020625_0031.dat

  
As shown in third and fourth row of files.
Is there any limitation to 'smbmount' that it does't recognises after a definite
  size of a file ?

I have also tried:
 
http://www.hojdpunkten.ac.se/054/samba/index.html

with exactly the steps whatever they are:  
But no luck i have used kernel 2.4.16 and samba 2.2.2.
Can anyone help!

  Regards
  -Yash 
   




[PATCH] Libsmbclient.c

2002-07-02 Thread Tom Jansen

Damn, mailing is hard  :(

Again, an attempt to mail a 2 line patch.

Yours,
--
Tom Jansen -- [EMAIL PROTECTED]
Ninja ISD  -- www.ninja.nl

Index: libsmbclient.c
===
RCS file: /cvsroot/samba/source/libsmb/libsmbclient.c,v
retrieving revision 1.27.2.21
diff -u -r1.27.2.21 libsmbclient.c
--- libsmbclient.c  1 Jul 2002 17:03:13 -   1.27.2.21
+++ libsmbclient.c  2 Jul 2002 10:54:27 -
@@ -1302,14 +1302,14 @@
 
dir-dir_end-next = malloc(sizeof(struct smbc_dir_list));

-   if (!dir-dir_end) {
+   if (!dir-dir_end-next) {

SAFE_FREE(dirent);
dir-dir_error = ENOMEM;
return -1;
 
}
-   ZERO_STRUCTP(dir-dir_end);
+   ZERO_STRUCTP(dir-dir_end-next);
 
dir-dir_end = dir-dir_end-next;
 



RE: sessionid.tdb missing after build and client read failutre

2002-07-02 Thread David Shapiro

It did join successfully though, as far as I can tell (net scrolls debug
information now for some reason).  It says joined INS domain at the end.
Things like getent passwd/group work.  There just is no sessionid.tdb..
.
On Mon, 1 Jul 2002, David Shapiro wrote:

 Thanks.  Any idea on why wbinfo -t fails?  Is it related to sessionid.tdb
 missing?  How do I get this file?  I did remove myself from INS domain and
 rejoined again.

Typically that fails because you have not joined the domain properly, or 
you cannot connect to th DC (ie, name lookup fails).


-Original Message-
From: Richard Sharpe [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 12:08 PM
To: David Shapiro
Cc: '[EMAIL PROTECTED]'
Subject: Re: sessionid.tdb missing after build and client read failutre


On Mon, 1 Jul 2002, David Shapiro wrote:

 Hello,
 
 The latest samba head as of 6/30/02 seems to not provide sessionid.tdb and
 gives me the following errors: 
 
 I see this information in the log:
 
 6/28 16:35:59, 3] nsswitch/winbindd_misc.c:winbindd_check_machine_acct(91)
   secret is good
 [2002/06/28 16:35:59, 5]
 nsswitch/winbindd_misc.c:winbindd_check_machine_acct(100)
   Checking the trust account password returned NT_STATUS_OK
 [2002/06/28 16:35:59, 10] nsswitch/winbindd.c:client_write(456)
   client_write: wrote 1300 bytes.
 [2002/06/28 16:35:59, 10] nsswitch/winbindd.c:winbind_client_read(408)
   client_read: read 0 bytes. Need 1304 more for a full request.
 [2002/06/28 16:35:59, 5] nsswitch/winbindd.c:winbind_client_read(415)
   read failed on sock 13, pid 1002: EOF
 
 It is a little confusing.  It says secret is good in the log, but it has
 some error about not reading enough bytes and a sock 13 error.  

This just means that the client of winbindd closed the socket/whatever and 
stopped talking to winbindd.
 
 In addition, which may be related to the above, it looks for davidsha
 instead of INS+DavidSha even though smb.conf has it set to not have the
 server in INS by default.
 
 
 David E. Shapiro
 Senior Unix Admin
 BTi - the future of communications
 4300 Six Forks Road, Raleigh, NC 27609
 
 

-- 
Regards
-
Richard Sharpe, [EMAIL PROTECTED], [EMAIL PROTECTED], 
[EMAIL PROTECTED]




RE: sessionid.tdb missing after build and client read failutre

2002-07-02 Thread David Shapiro

getent group shows davidsha is in domain admin.  I list using a net from a
server I buildt 3 months ago and have not updated, and the new net command
from yesterday cvs build of head.  Both report I joined the domain, but I do
not have a sessionid.tdb after it is done.  I can not access shares as it
stands now...

Using newly compiled net command:

# net rpc join -UDavidSha shows:  (skipped some start stuff)
.
.
.
02/07/02 08:16:28, 5] rpc_parse/parse_prs.c:prs_uint32(590)
  0020 neg_flags: 01ff
[2002/07/02 08:16:28, 5] rpc_parse/parse_prs.c:prs_ntstatus(620)
  0024 status: NT_STATUS_ACCESS_DENIED
[2002/07/02 08:16:28, 1] libsmb/cli_netlogon.c:new_cli_nt_setup_creds(201)
  cli_nt_setup_creds: auth2 challenge failed NT_STATUS_ACCESS_DENIED
[2002/07/02 08:16:28, 1] libsmb/trust_passwd.c:just_change_the_password(43)
  just_change_the_password: unable to setup creds (NT_STATUS_ACCESS_DENIED)!
[2002/07/02 08:16:28, 1] utils/net_rpc.c:run_rpc_command(150)
  rpc command function failed! (NT_STATUS_ACCESS_DENIED)
[2002/07/02 08:16:28, 6] lib/util_sock.c:write_socket(483)
  write_socket(3,45)
[2002/07/02 08:16:28, 6] lib/util_sock.c:write_socket(486)
  write_socket(3,45) wrote 45
[2002/07/02 08:16:28, 10]
lib/util_sock.c:read_smb_length_return_keepalive(539)
  got smb length of 35
[2002/07/02 08:16:28, 5] lib/util.c:show_msg(272)
  size=35
  smb_com=0x4
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=51201
[2002/07/02 08:16:28, 5] lib/util.c:show_msg(278)
  smb_tid=2048
  smb_pid=7649
  smb_uid=2048
  smb_mid=1
  smt_wct=0
[2002/07/02 08:16:28, 5] lib/util.c:show_msg(288)
  smb_bcc=0
[2002/07/02 08:16:28, 10] libsmb/namequery.c:internal_resolve_name(781)
  internal_resolve_name: looking up INS#1b
[2002/07/02 08:16:28, 3] libsmb/namequery.c:resolve_wins(608)
  resolve_wins: Attempting wins lookup for name INS0x1b
[2002/07/02 08:16:28, 6] lib/wins_srv.c:wins_srv_ip_tag(307)
  Current wins server for tag '*' with source 0.0.0.0 is 10.1.4.11
[2002/07/02 08:16:28, 3] libsmb/namequery.c:resolve_wins(647)
  resolve_wins: using WINS server 10.1.4.11 and tag '*'
[2002/07/02 08:16:28, 10] lib/util_sock.c:open_socket_in(720)
  bind succeeded on port 0
[2002/07/02 08:16:28, 5] libsmb/nmblib.c:send_udp(741)
  Sending a packet of len 50 to (10.1.4.11) on port 137
[2002/07/02 08:16:28, 10] lib/util_sock.c:read_udp_socket(184)
  read_udp_socket: lastip 10.1.4.11 lastport 137 read: 62
[2002/07/02 08:16:28, 10] libsmb/nmblib.c:parse_nmb(470)
  parse_nmb: packet id = 27580
[2002/07/02 08:16:28, 5] libsmb/nmblib.c:read_packet(719)
  Received a packet of len 62 from (10.1.4.11) port 137
[2002/07/02 08:16:28, 4] libsmb/nmblib.c:debug_nmb_packet(106)
  nmb packet from 10.1.4.11(137) header: id=27580 opcode=Query(0)
response=Yes
  header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes
  header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
  answers: nmb_name=INS1b rr_type=32 rr_class=1 ttl=0
  answers   0 char `.   hex 6A010404
[2002/07/02 08:16:28, 2] libsmb/namequery.c:name_query(394)
  Got a positive name query response from 10.1.4.11 ( 10.1.4.4 )
[2002/07/02 08:16:28, 10] libsmb/namequery.c:internal_resolve_name(884)
  internal_resolve_name: returning 1 addresses: 10.1.4.4 
[2002/07/02 08:16:28, 10] libsmb/namequery.c:name_status_find(174)
  name_status_find: looking up INS#1c at 10.1.4.4
[2002/07/02 08:16:28, 10] lib/util_sock.c:open_socket_in(720)
  bind succeeded on port 0
[2002/07/02 08:16:28, 5] libsmb/nmblib.c:send_udp(741)
  Sending a packet of len 50 to (10.1.4.4) on port 137
[2002/07/02 08:16:28, 10] lib/util_sock.c:read_udp_socket(184)
  read_udp_socket: lastip 10.1.4.4 lastport 137 read: 301
[2002/07/02 08:16:28, 10] libsmb/nmblib.c:parse_nmb(470)
  parse_nmb: packet id = 23591
[2002/07/02 08:16:28, 5] libsmb/nmblib.c:read_packet(719)
  Received a packet of len 301 from (10.1.4.4) port 137
[2002/07/02 08:16:28, 4] libsmb/nmblib.c:debug_nmb_packet(106)
  nmb packet from 10.1.4.4(137) header: id=23591 opcode=Query(0)
response=Yes
  header: flags: bcast=No rec_avail=No rec_des=No trunc=No auth=Yes
  header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
  answers: nmb_name=INS1c rr_type=33 rr_class=1 ttl=0
  answers   0 char .PDC   hex
0A504443202020202020202020202020
  answers  10 char  D.PDC hex
20440050444320202020202020202020
  answers  20 char   .D.INS   hex
2020004400494E532020202020202020
  answers  30 char ...INS hex
2020202000C400494E53202020202020
  answers  40 char   ...INS   hex
2020202020201CC400494E5320202020
  answers  50 char .D.INS hex
20202020202020201B4400494E532020
  answers  60 char   ...PDC   hex
202020202020202020201EC400504443
  answers  70 char .D.R   hex
20202020202020202020202003440052
  answers  80 char OOT   .L   hex
4F4F542020202020202020202020034C
  answers  90 char .INS  

Re: sessionid.tdb missing after build and client read failutre

2002-07-02 Thread Andrew Bartlett

David Shapiro wrote:
 
 getent group shows davidsha is in domain admin.  I list using a net from a
 server I buildt 3 months ago and have not updated, and the new net command
 from yesterday cvs build of head.  Both report I joined the domain, but I do
 not have a sessionid.tdb after it is done.  I can not access shares as it
 stands now...

 Joined domain INS.

So it joined fine.  sessionid.tdb is not related to this at all - and
should be created on the first login to the server.

Look into the smbd logs for connections, not the domain join.

Andrew Bartlett

-- 
Andrew Bartlett [EMAIL PROTECTED]
Manager, Authentication Subsystems, Samba Team  [EMAIL PROTECTED]
Student Network Administrator, Hawker College   [EMAIL PROTECTED]
http://samba.org http://build.samba.org http://hawkerc.net




RE: sessionid.tdb missing after build and client read failutre

2002-07-02 Thread David Shapiro

Thank you Andrew.  I was looking at joining because it was mentioned that to
get sessionid.tdb, you needed to join domain.  I looked ing smbd.log and saw
a connection from davidsha, and then in my workstation log and saw at the
bottom:

 user_in_list: checking user |INS+DavidSha| against |INS+DavidSha|
[2002/07/02 08:40:53, 5] lib/username.c:Get_Pwnam_internals(223)
  Trying _Get_Pwnam(), username as lowercase is ins+davidsha
[2002/07/02 08:40:53, 5] lib/username.c:Get_Pwnam_internals(251)
  Get_Pwnam_internals did find user [INS+DavidSha]!
[2002/07/02 08:40:53, 1] smbd/service.c:make_connection_snum(513)
  Couldn't find group @Users
[2002/07/02 08:40:53, 3] smbd/service.c:make_connection_snum(523)
  Connect path is /usr/local/samba/lib
[2002/07/02 08:40:53, 3] smbd/sec_ctx.c:push_sec_ctx(241)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2002/07/02 08:40:53, 3] smbd/uid.c:push_conn_ctx(279)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2002/07/02 08:40:53, 3] smbd/sec_ctx.c:set_sec_ctx(273)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2002/07/02 08:40:53, 0] lib/fault.c:fault_report(36)
  ===
[2002/07/02 08:40:53, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 11 in pid 8127 (3.0-alpha17)
  Please read the file BUGS.txt in the distribution
[2002/07/02 08:40:53, 0] lib/fault.c:fault_report(39)
  ===

I also keep getting an xterm session pop up that says:

xterm: Can't execvp /usr/local/bin/gdb

I think this comes from the line in smb.conf:

panic action = /usr/openwin/bin/xterm -display $DISPLAY -e
/usr/local/bin/gbd -p %d

gdb is in /usr/local/bin.  What does it mean it can't execvp it?

-Original Message-
From: Andrew Bartlett [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 8:36 AM
To: David Shapiro
Cc: 'Richard Sharpe'; '[EMAIL PROTECTED]'
Subject: Re: sessionid.tdb missing after build and client read failutre


David Shapiro wrote:
 
 getent group shows davidsha is in domain admin.  I list using a net from a
 server I buildt 3 months ago and have not updated, and the new net command
 from yesterday cvs build of head.  Both report I joined the domain, but I
do
 not have a sessionid.tdb after it is done.  I can not access shares as it
 stands now...

 Joined domain INS.

So it joined fine.  sessionid.tdb is not related to this at all - and
should be created on the first login to the server.

Look into the smbd logs for connections, not the domain join.

Andrew Bartlett

-- 
Andrew Bartlett [EMAIL PROTECTED]
Manager, Authentication Subsystems, Samba Team  [EMAIL PROTECTED]
Student Network Administrator, Hawker College   [EMAIL PROTECTED]
http://samba.org http://build.samba.org http://hawkerc.net




SMS/SAM winbind

2002-07-02 Thread Stefan (metze) Metzmacher

Approach to handle the SID mapping.

I preferr to have a database (or config options in smb.conf) for the 
following DATA:

(Builtin and OurDomain):
 SID: S-1-5-21-4158354609-2045536973-4240204567
 uid: 2-3
 gid: 15000-25000

TrustDomainA: (with NT4 Server)
 SID: S-1-5-21-4158354609-2045536973-4240204567
 uid: 2-3
 gid: 15000-25000

TrustDomainB:   (with ADS Server)
 SID: S-1-5-21-1354354609-4598675973-4240286745
 uid: 4-5
 gid: 4-5

--
I would preferr that every SAM packend has it's own sid mapping for the 
secified domain SID or {u,g}id range. (e.g. sam_ldap would store it's 
mapping's in ldap, sam_tdb stores it in a tdb, or do it with algorithmic 
backend...)

And for Trusted domains winbind is doing the mapping for the domain sid and 
{u,g}id ranges.
__

take a look at www.metzemix.de/projects/samba/index.html

metze
-
Stefan metze Metzmacher [EMAIL PROTECTED]





Re: sessionid.tdb missing after build and client read failutre

2002-07-02 Thread Andrew Bartlett

David Shapiro wrote:
 
 Thank you Andrew.  I was looking at joining because it was mentioned that to
 get sessionid.tdb, you needed to join domain.  I looked ing smbd.log and saw
 a connection from davidsha, and then in my workstation log and saw at the
 bottom:
 

   ===
 [2002/07/02 08:40:53, 0] lib/fault.c:fault_report(37)
   INTERNAL ERROR: Signal 11 in pid 8127 (3.0-alpha17)
   Please read the file BUGS.txt in the distribution
 [2002/07/02 08:40:53, 0] lib/fault.c:fault_report(39)
   ===
 
 I also keep getting an xterm session pop up that says:
 
 xterm: Can't execvp /usr/local/bin/gdb
 
 I think this comes from the line in smb.conf:
 
 panic action = /usr/openwin/bin/xterm -display $DISPLAY -e
 /usr/local/bin/gbd -p %d
 
 gdb is in /usr/local/bin.  What does it mean it can't execvp it?

I dunno - but just make it a simple 'panic action = /bin/sleep 9000' and
attach manually.  Then lets look at it from there.

Andrew Bartlett

-- 
Andrew Bartlett [EMAIL PROTECTED]
Manager, Authentication Subsystems, Samba Team  [EMAIL PROTECTED]
Student Network Administrator, Hawker College   [EMAIL PROTECTED]
http://samba.org http://build.samba.org http://hawkerc.net




Re: smbmount with big file sizes

2002-07-02 Thread Urban Widmark

On Tue, 2 Jul 2002 [EMAIL PROTECTED] wrote:

 I have also tried:
  
 http://www.hojdpunkten.ac.se/054/samba/index.html
 
 with exactly the steps whatever they are:  
 But no luck i have used kernel 2.4.16 and samba 2.2.2.

You have probably not patched both the kernel and samba, rebuilt and
reinstalled both. If either samba or the kernel you are using[1] is
unpatched you will not get large file support.


Also note that there is a 2.4.18 version available. I don't remember that
anything changed from the 2.4.16 patch, but I do know that a lot of people
have had success with the 2.4.18 one.


/Urban


[1] - There is a difference between using and have installed. You can
  have multiple versions installed but use the wrong one.





RE: sessionid.tdb missing after build and client read failutre

2002-07-02 Thread David Shapiro

I am fairly new to gdb.  After I sleep it for 9000 or during that time, what
should I collect?  I did an smbstatus and saw the pid it reported for the
connection and ran gdb smbd pid#.  I stepped a bit through it and saw the
stuff here (not sure if this is enough):

Program received signal SIGABRT, Aborted.
0xff19c724 in _libc_kill () from /usr/lib/libc.so.1
(gdb) n
Single stepping until exit from function _libc_kill, 

which has no line number information.
procfs: couldn't stop process 76253: wait returned -1

(gdb) n
procfs: fetch_registers, get_gregs line 3514, /proc/10717/lwp/1: No such
file or directory.
(gdb) n
procfs: fetch_registers, get_gregs line 3514, /proc/10717/lwp/1: No such
file or directory.
(gdb) n
procfs: fetch_registers, get_gregs line 3514, /proc/10717/lwp/1: No such
file or directory.
(gdb) n
procfs: fetch_registers, get_gregs line 3514, /proc/10717/lwp/1: No such
file or directory.
(gdb) n
procfs: fetch_registers, get_gregs line 3514, /proc/10717/lwp/1: No such
file or directory.
(gdb) n
procfs: fetch_registers, get_gregs line 3514, /proc/10717/lwp/1: No such
file or directory.
(gdb) n
procfs: fetch_registers, get_gregs line 3514, /proc/10717/lwp/1: No such
file or directory.
(gdb) n
procfs: fetch_registers, get_gregs line 3514, /proc/10717/lwp/1: No such
file or directory.
(gdb) n
procfs: fetch_registers, get_gregs line 3514, /proc/10717/lwp/1: No such
file or directory.
(gdb) n
procfs: fetch_registers, get_gregs line 3514, /proc/10717/lwp/1: No such
file or directory.
(gdb) n
procfs: fetch_registers, get_gregs line 3514, /proc/10717/lwp/1: No such
file or directory.
(gdb) n

-Original Message-
From: Andrew Bartlett [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 9:01 AM
To: David Shapiro
Cc: 'Andrew Bartlett'; 'Richard Sharpe';
'[EMAIL PROTECTED]'
Subject: Re: sessionid.tdb missing after build and client read failutre


David Shapiro wrote:
 
 Thank you Andrew.  I was looking at joining because it was mentioned that
to
 get sessionid.tdb, you needed to join domain.  I looked ing smbd.log and
saw
 a connection from davidsha, and then in my workstation log and saw at the
 bottom:
 

   ===
 [2002/07/02 08:40:53, 0] lib/fault.c:fault_report(37)
   INTERNAL ERROR: Signal 11 in pid 8127 (3.0-alpha17)
   Please read the file BUGS.txt in the distribution
 [2002/07/02 08:40:53, 0] lib/fault.c:fault_report(39)
   ===
 
 I also keep getting an xterm session pop up that says:
 
 xterm: Can't execvp /usr/local/bin/gdb
 
 I think this comes from the line in smb.conf:
 
 panic action = /usr/openwin/bin/xterm -display $DISPLAY -e
 /usr/local/bin/gbd -p %d
 
 gdb is in /usr/local/bin.  What does it mean it can't execvp it?

I dunno - but just make it a simple 'panic action = /bin/sleep 9000' and
attach manually.  Then lets look at it from there.

Andrew Bartlett

-- 
Andrew Bartlett [EMAIL PROTECTED]
Manager, Authentication Subsystems, Samba Team  [EMAIL PROTECTED]
Student Network Administrator, Hawker College   [EMAIL PROTECTED]
http://samba.org http://build.samba.org http://hawkerc.net




RE: sessionid.tdb missing after build and client read failutre

2002-07-02 Thread MCCALL,DON (HP-USA,ex1)

Hi David,
It looks like you might have misspelt gdb in your smb.conf line
(in your message it is spelt gbd
Don

-Original Message-
From: David Shapiro [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 8:56
To: 'Andrew Bartlett'; David Shapiro
Cc: 'Richard Sharpe'; '[EMAIL PROTECTED]'
Subject: RE: sessionid.tdb missing after build and client read failutre


Thank you Andrew.  I was looking at joining because it was mentioned that to
get sessionid.tdb, you needed to join domain.  I looked ing smbd.log and saw
a connection from davidsha, and then in my workstation log and saw at the
bottom:

 user_in_list: checking user |INS+DavidSha| against |INS+DavidSha|
[2002/07/02 08:40:53, 5] lib/username.c:Get_Pwnam_internals(223)
  Trying _Get_Pwnam(), username as lowercase is ins+davidsha
[2002/07/02 08:40:53, 5] lib/username.c:Get_Pwnam_internals(251)
  Get_Pwnam_internals did find user [INS+DavidSha]!
[2002/07/02 08:40:53, 1] smbd/service.c:make_connection_snum(513)
  Couldn't find group @Users
[2002/07/02 08:40:53, 3] smbd/service.c:make_connection_snum(523)
  Connect path is /usr/local/samba/lib
[2002/07/02 08:40:53, 3] smbd/sec_ctx.c:push_sec_ctx(241)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2002/07/02 08:40:53, 3] smbd/uid.c:push_conn_ctx(279)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2002/07/02 08:40:53, 3] smbd/sec_ctx.c:set_sec_ctx(273)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2002/07/02 08:40:53, 0] lib/fault.c:fault_report(36)
  ===
[2002/07/02 08:40:53, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 11 in pid 8127 (3.0-alpha17)
  Please read the file BUGS.txt in the distribution
[2002/07/02 08:40:53, 0] lib/fault.c:fault_report(39)
  ===

I also keep getting an xterm session pop up that says:

xterm: Can't execvp /usr/local/bin/gdb

I think this comes from the line in smb.conf:

panic action = /usr/openwin/bin/xterm -display $DISPLAY -e
/usr/local/bin/gbd -p %d

gdb is in /usr/local/bin.  What does it mean it can't execvp it?

-Original Message-
From: Andrew Bartlett [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 8:36 AM
To: David Shapiro
Cc: 'Richard Sharpe'; '[EMAIL PROTECTED]'
Subject: Re: sessionid.tdb missing after build and client read failutre


David Shapiro wrote:
 
 getent group shows davidsha is in domain admin.  I list using a net from a
 server I buildt 3 months ago and have not updated, and the new net command
 from yesterday cvs build of head.  Both report I joined the domain, but I
do
 not have a sessionid.tdb after it is done.  I can not access shares as it
 stands now...

 Joined domain INS.

So it joined fine.  sessionid.tdb is not related to this at all - and
should be created on the first login to the server.

Look into the smbd logs for connections, not the domain join.

Andrew Bartlett

-- 
Andrew Bartlett [EMAIL PROTECTED]
Manager, Authentication Subsystems, Samba Team  [EMAIL PROTECTED]
Student Network Administrator, Hawker College   [EMAIL PROTECTED]
http://samba.org http://build.samba.org http://hawkerc.net




RE: sessionid.tdb missing after build and client read failutre

2002-07-02 Thread David Shapiro

Trying to get better at this gdb here.  I see a segmentation fault:

which has no line number information.

Program received signal SIGSEGV, Segmentation fault.
0xff132e84 in strcmp () from /usr/lib/libc.so.1
(gdb) step
Single stepping until exit from function strcmp, 
which has no line number information.
0xff1544ec in _tzload () from /usr/lib/libc.so.1
(gdb) step
Single stepping until exit from function _tzload, 
which has no line number information.
0xff152df8 in _ltzset_u () from /usr/lib/libc.so.1
(gdb) step
Single stepping until exit from function _ltzset_u, 
which has no line number information.
0xff152994 in mktime () from /usr/lib/libc.so.1
(gdb) step
Single stepping until exit from function mktime, 
which has no line number information.
0xff1736dc in strftime () from /usr/lib/libc.so.1
(gdb) step
Single stepping until exit from function strftime, 
which has no line number information.
0x136db0 in timestring ()
(gdb) step
Single stepping until exit from function timestring, 


-Original Message-
From: Andrew Bartlett [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 9:01 AM
To: David Shapiro
Cc: 'Andrew Bartlett'; 'Richard Sharpe';
'[EMAIL PROTECTED]'
Subject: Re: sessionid.tdb missing after build and client read failutre


David Shapiro wrote:
 
 Thank you Andrew.  I was looking at joining because it was mentioned that
to
 get sessionid.tdb, you needed to join domain.  I looked ing smbd.log and
saw
 a connection from davidsha, and then in my workstation log and saw at the
 bottom:
 

   ===
 [2002/07/02 08:40:53, 0] lib/fault.c:fault_report(37)
   INTERNAL ERROR: Signal 11 in pid 8127 (3.0-alpha17)
   Please read the file BUGS.txt in the distribution
 [2002/07/02 08:40:53, 0] lib/fault.c:fault_report(39)
   ===
 
 I also keep getting an xterm session pop up that says:
 
 xterm: Can't execvp /usr/local/bin/gdb
 
 I think this comes from the line in smb.conf:
 
 panic action = /usr/openwin/bin/xterm -display $DISPLAY -e
 /usr/local/bin/gbd -p %d
 
 gdb is in /usr/local/bin.  What does it mean it can't execvp it?

I dunno - but just make it a simple 'panic action = /bin/sleep 9000' and
attach manually.  Then lets look at it from there.

Andrew Bartlett

-- 
Andrew Bartlett [EMAIL PROTECTED]
Manager, Authentication Subsystems, Samba Team  [EMAIL PROTECTED]
Student Network Administrator, Hawker College   [EMAIL PROTECTED]
http://samba.org http://build.samba.org http://hawkerc.net




RE: sessionid.tdb missing after build and client read failutre

2002-07-02 Thread David Shapiro

A note to this:

The share is:

[samba]
comment = samba smb.conf
path = /usr/local/samba/lib
read only = No
valid users = INS+DavidSha
force create mode=775
force group= users



Note that I can get into the share called home:

[homes]
comment = Home Directories
read only = No
browseable = No





RE: sessionid.tdb missing after build and client read failutre

2002-07-02 Thread David Shapiro

Thanks.  I checked, and it was my note that had the error, but the line in
smb.conf was fine.  I wrote a script called smbpanic.sh and tried using it,
but I get the same error about execvp:

#!/usr/local/bin/perl -w
my $pid = shift;
my @program = `/usr/bin/ps -efo pid,comm`;
foreach (@program) {
if (/$pid/) {
my ($space,$pid2,$comm) = split(/\s+/);
my @split = split(/\//,$comm);
$comm = pop @split;
if ($comm and $pid) {
my $cmd = /usr/local/bin/gdb $comm $pid;
system($cmd) or die Failed to run command:
$cmd\n;
}
exit;
}
}

It doesn't seem to want to run anything.  In the interim, I run smbstatus
and see the pid.  This pid changes a few times before a window opens as if
it is about to show the share.  Once the window opens, that is the one I was
able to quickly run my script against to get some debug information.  It
seems to have a segmentation error during a strcmp and halts during the
fault_report.

David


-Original Message-
From: MCCALL,DON (HP-USA,ex1) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 10:11 AM
To: 'David Shapiro'; 'Andrew Bartlett'
Cc: 'Richard Sharpe'; '[EMAIL PROTECTED]'
Subject: RE: sessionid.tdb missing after build and client read failutre


Hi David,
It looks like you might have misspelt gdb in your smb.conf line
(in your message it is spelt gbd
Don

-Original Message-
From: David Shapiro [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 8:56
To: 'Andrew Bartlett'; David Shapiro
Cc: 'Richard Sharpe'; '[EMAIL PROTECTED]'
Subject: RE: sessionid.tdb missing after build and client read failutre


Thank you Andrew.  I was looking at joining because it was mentioned that to
get sessionid.tdb, you needed to join domain.  I looked ing smbd.log and saw
a connection from davidsha, and then in my workstation log and saw at the
bottom:

 user_in_list: checking user |INS+DavidSha| against |INS+DavidSha|
[2002/07/02 08:40:53, 5] lib/username.c:Get_Pwnam_internals(223)
  Trying _Get_Pwnam(), username as lowercase is ins+davidsha
[2002/07/02 08:40:53, 5] lib/username.c:Get_Pwnam_internals(251)
  Get_Pwnam_internals did find user [INS+DavidSha]!
[2002/07/02 08:40:53, 1] smbd/service.c:make_connection_snum(513)
  Couldn't find group @Users
[2002/07/02 08:40:53, 3] smbd/service.c:make_connection_snum(523)
  Connect path is /usr/local/samba/lib
[2002/07/02 08:40:53, 3] smbd/sec_ctx.c:push_sec_ctx(241)
  push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
[2002/07/02 08:40:53, 3] smbd/uid.c:push_conn_ctx(279)
  push_conn_ctx(0) : conn_ctx_stack_ndx = 0
[2002/07/02 08:40:53, 3] smbd/sec_ctx.c:set_sec_ctx(273)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
[2002/07/02 08:40:53, 0] lib/fault.c:fault_report(36)
  ===
[2002/07/02 08:40:53, 0] lib/fault.c:fault_report(37)
  INTERNAL ERROR: Signal 11 in pid 8127 (3.0-alpha17)
  Please read the file BUGS.txt in the distribution
[2002/07/02 08:40:53, 0] lib/fault.c:fault_report(39)
  ===

I also keep getting an xterm session pop up that says:

xterm: Can't execvp /usr/local/bin/gdb

I think this comes from the line in smb.conf:

panic action = /usr/openwin/bin/xterm -display $DISPLAY -e
/usr/local/bin/gbd -p %d

gdb is in /usr/local/bin.  What does it mean it can't execvp it?

-Original Message-
From: Andrew Bartlett [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 8:36 AM
To: David Shapiro
Cc: 'Richard Sharpe'; '[EMAIL PROTECTED]'
Subject: Re: sessionid.tdb missing after build and client read failutre


David Shapiro wrote:
 
 getent group shows davidsha is in domain admin.  I list using a net from a
 server I buildt 3 months ago and have not updated, and the new net command
 from yesterday cvs build of head.  Both report I joined the domain, but I
do
 not have a sessionid.tdb after it is done.  I can not access shares as it
 stands now...

 Joined domain INS.

So it joined fine.  sessionid.tdb is not related to this at all - and
should be created on the first login to the server.

Look into the smbd logs for connections, not the domain join.

Andrew Bartlett

-- 
Andrew Bartlett [EMAIL PROTECTED]
Manager, Authentication Subsystems, Samba Team  [EMAIL PROTECTED]
Student Network Administrator, Hawker College   [EMAIL PROTECTED]
http://samba.org http://build.samba.org http://hawkerc.net




Re: CVS update: samba/source/libsmb

2002-07-02 Thread Gerald (Jerry) Carter

On Mon, 1 Jul 2002 [EMAIL PROTECTED] wrote:

 Modified Files:
   Tag: SAMBA_2_2
   clientgen.c clilist.c libsmbclient.c 
 Log Message:
 
 Include the patches by Tom Jansen. I have fixed a couple of problems, and it
 compiles, but I have not tested it.
 
 However, this week I will, because I need the new functionality.
 
 
 
 Revisions:
 clientgen.c   1.162.4.11 = 1.162.4.12
   
http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/clientgen.c?r1=1.162.4.11r2=1.162.4.12
 clilist.c 1.6.8.5 = 1.6.8.6
   
http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/clilist.c?r1=1.6.8.5r2=1.6.8.6
 libsmbclient.c1.27.2.20 = 1.27.2.21
   
http://www.samba.org/cgi-bin/cvsweb/samba/source/libsmb/libsmbclient.c?r1=1.27.2.20r2=1.27.2.21


Richard,

Is there a reason that this has to go into SAMBA_2_2?  It looks 
like it could potentially de-stablize the libsmbclient library
and I would prefer not to do on 2.2.  Can we make these changes 
in HEAD?  SAMBA_2_2 should be in a bug fix only mode.  This means 
testing against HEAD and only backporting minimal changes to SAMBA_2_2
as necessary (such as in severely broken functionality in the latter 
branch).

I'll post some summary information on branch maintainence later today.
My fault for not doing so sooner.




cheers, jerry





RE: sessionid.tdb missing after build and client read failutre

2002-07-02 Thread Esh, Andrew
Title: RE: sessionid.tdb missing after build and client read failutre





Don't step at that point. The process has already run the CPU into the wrong segment, or accessed memory using a bad pointer. Stepping will only destroy information.

Do a 'bt' instead. That will dump the call stack, and show what path the code ran to get to this point. What I expect to see is somewhere above the strcmp routine, a Samba routine will call strcmp with a bad pointer, or a non-terminated string buffer. We need to know which routine did that.

-Original Message-
From: David Shapiro [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 9:17 AM
To: 'Andrew Bartlett'; David Shapiro
Cc: 'Richard Sharpe'; '[EMAIL PROTECTED]'
Subject: RE: sessionid.tdb missing after build and client read failutre



Trying to get better at this gdb here. I see a segmentation fault:


which has no line number information.


Program received signal SIGSEGV, Segmentation fault.
0xff132e84 in strcmp () from /usr/lib/libc.so.1
(gdb) step
Single stepping until exit from function strcmp, 
which has no line number information.
0xff1544ec in _tzload () from /usr/lib/libc.so.1
(gdb) step
Single stepping until exit from function _tzload, 
which has no line number information.
0xff152df8 in _ltzset_u () from /usr/lib/libc.so.1
(gdb) step
Single stepping until exit from function _ltzset_u, 
which has no line number information.
0xff152994 in mktime () from /usr/lib/libc.so.1
(gdb) step
Single stepping until exit from function mktime, 
which has no line number information.
0xff1736dc in strftime () from /usr/lib/libc.so.1
(gdb) step
Single stepping until exit from function strftime, 
which has no line number information.
0x136db0 in timestring ()
(gdb) step
Single stepping until exit from function timestring, 



-Original Message-
From: Andrew Bartlett [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 9:01 AM
To: David Shapiro
Cc: 'Andrew Bartlett'; 'Richard Sharpe';
'[EMAIL PROTECTED]'
Subject: Re: sessionid.tdb missing after build and client read failutre



David Shapiro wrote:
 
 Thank you Andrew. I was looking at joining because it was mentioned that
to
 get sessionid.tdb, you needed to join domain. I looked ing smbd.log and
saw
 a connection from davidsha, and then in my workstation log and saw at the
 bottom:
 


 ===
 [2002/07/02 08:40:53, 0] lib/fault.c:fault_report(37)
 INTERNAL ERROR: Signal 11 in pid 8127 (3.0-alpha17)
 Please read the file BUGS.txt in the distribution
 [2002/07/02 08:40:53, 0] lib/fault.c:fault_report(39)
 ===
 
 I also keep getting an xterm session pop up that says:
 
 xterm: Can't execvp /usr/local/bin/gdb
 
 I think this comes from the line in smb.conf:
 
 panic action = /usr/openwin/bin/xterm -display $DISPLAY -e
 /usr/local/bin/gbd -p %d
 
 gdb is in /usr/local/bin. What does it mean it can't execvp it?


I dunno - but just make it a simple 'panic action = /bin/sleep 9000' and
attach manually. Then lets look at it from there.


Andrew Bartlett


-- 
Andrew Bartlett [EMAIL PROTECTED]
Manager, Authentication Subsystems, Samba Team [EMAIL PROTECTED]
Student Network Administrator, Hawker College [EMAIL PROTECTED]
http://samba.org http://build.samba.org http://hawkerc.net





Re: corrupt sessionid.tdb

2002-07-02 Thread Gerald (Jerry) Carter

On 28 Jun 2002, Simo Sorce wrote:

 I may be wrong but I remember a fix in 2.2.5, I think jeremy or jerry
 may tell you more however.

Not for tdb corruption.  

 On Fri, 2002-06-28 at 11:11, Volker Lendecke wrote:
  On Fri, Jun 28, 2002 at 11:08:00AM +0200, [EMAIL PROTECTED] wrote:
   - From time to time at a customer's site the sessionid.tdb seems to be
   corrupt. Using tdbtool, dump says it's empty,
   insert/store/fetch/whatever fail. What can I do to diagnose this?
  
  Sorry for my own reply: I have a corrupt sessionid.tdb here, if anybody wants
  to look at that. Jeremy?
  
  Volker
 





cheers, jerry

-- 
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--






Re: corrupt sessionid.tdb

2002-07-02 Thread Volker Lendecke

On Tue, Jul 02, 2002 at 08:43:36AM -0500, Gerald (Jerry) Carter wrote:
 On 28 Jun 2002, Simo Sorce wrote:
 
  I may be wrong but I remember a fix in 2.2.5, I think jeremy or jerry
  may tell you more however.
 
 Not for tdb corruption.  

Thanks. I recently got another error message from that machine, running 2.2.4:

[2002/07/01 07:56:17, 0, pid=3781] passdb/passdb.c:pdb_init_sam(116)
  pdb_init_sam: error while allocating memory

This essentially means that process 3781 can not malloc about 13k of memory.
Either Samba is severely broken, or this machine has a hardware problem. It
runs about 500 users on a 2GB Fujitsu X86 with Linux 2.4.18

Volker



msg01765/pgp0.pgp
Description: PGP signature


Re: corrupt sessionid.tdb

2002-07-02 Thread Gerald (Jerry) Carter

On Tue, 2 Jul 2002, Volker Lendecke wrote:

 Thanks. I recently got another error message from that machine, running 2.2.4:
 
 [2002/07/01 07:56:17, 0, pid=3781] passdb/passdb.c:pdb_init_sam(116)
   pdb_init_sam: error while allocating memory
 
 This essentially means that process 3781 can not malloc about 13k of memory.
 Either Samba is severely broken, or this machine has a hardware problem. It
 runs about 500 users on a 2GB Fujitsu X86 with Linux 2.4.18

This is the first report I've seen of failed memory allocation, 
so my bet is that there is a hardware problem  What is the 
load on the machine at this time?  I mean, if one malloc fails, 
you would expect to see more if it was just resource exhaustion.










cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--





RE: sessionid.tdb missing after build and client read failutre

2002-07-02 Thread David Shapiro

Just for test of the samba.  

-Original Message-
From: Richard Sharpe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 12:56 PM
To: David Shapiro
Cc: 'Andrew Bartlett'; '[EMAIL PROTECTED]'
Subject: RE: sessionid.tdb missing after build and client read failutre


On Tue, 2 Jul 2002, David Shapiro wrote:

 A note to this:
 
 The share is:
 
 [samba]
 comment = samba smb.conf
 path = /usr/local/samba/lib
 read only = No
 valid users = INS+DavidSha
 force create mode=775
 force group= @users

Hmmm, why do you have a share pointing at the directory where Samba keeps 
its config info etc?

Regards
-
Richard Sharpe, [EMAIL PROTECTED], [EMAIL PROTECTED], 
[EMAIL PROTECTED]




Re: CVS update: samba/source/libsmb

2002-07-02 Thread Richard Sharpe

On Tue, 2 Jul 2002, Gerald (Jerry) Carter wrote:

 On Mon, 1 Jul 2002 [EMAIL PROTECTED] wrote:
 Richard,
 
 Is there a reason that this has to go into SAMBA_2_2?

I don't work in any other area at the moment.

  It looks 
 like it could potentially de-stablize the libsmbclient library
 and I would prefer not to do on 2.2. 

If we get it right, it should be compatible.

 Can we make these changes 
 in HEAD?  SAMBA_2_2 should be in a bug fix only mode.  This means 
 testing against HEAD and only backporting minimal changes to SAMBA_2_2
 as necessary (such as in severely broken functionality in the latter 
 branch).

It would be nice if the two were in step, though, as far as libsmbclient 
is concerned.

 I'll post some summary information on branch maintainence later today.
 My fault for not doing so sooner.
 
 
 
 
 cheers, jerry
 

-- 
Regards
-
Richard Sharpe, [EMAIL PROTECTED], [EMAIL PROTECTED], 
[EMAIL PROTECTED]





Samba VFS

2002-07-02 Thread bjorn . roden
I am trying to make the vscan-sophos module(from www.openantivirus.org) work on IBM AIX 5.1L but it will not load as it does on Linux (RedHat7.3 distribution). I have it working "out of the box" on Linux but it seems like there is some problem with loadingthe module when it is linked to the Sophos API library. Without the library linked it loads fine.I am having trouble finding where in the code VFS modules are loaded, could anyone point me in the right direction?Kind regardsBjorn

archive bit in xattr possible/exist?

2002-07-02 Thread David Orman

I know it is possible to use map archive to keep track of archive
bits, but this is not very useful if you have real UNIX users.  I.e. I
can't have samba arbitrarily playing with the execute bits.

Does anyone know of any attempted implementation of archive bits through
extended attributes?  This would probably need a VFS layer, to get and
set them appropriately.

If no one has looked into this is there a better/different way of
tracking archive bits?


David Orman
Network Administrator
ISU Center for Nondestructive Evaluation







RE: sessionid.tdb missing after build and client read failutre

2002-07-02 Thread David Shapiro
Title: RE: sessionid.tdb missing after build and client read failutre



Okay, 
correct me if I did it wrong...

I ran 
smbstatus, saw the pid of my connection, ran gdb smbd 
pid


  #gdb smbd 17294GNU gdb 5.0Copyright 2000 Free Software 
  Foundation, Inc.GDB is free software, covered by the GNU General Public 
  License, and you arewelcome to change it and/or distribute copies of it 
  under certain conditions.Type "show copying" to see the 
  conditions.There is absolutely no warranty for GDB. Type "show 
  warranty" for details.This GDB was configured as 
  "sparc-sun-solaris2.8".../usr/local/bin/17294: No such file or 
  directory.Attaching to program `/usr/local/samba/sbin/smbd', process 
  17294Reading symbols from /usr/lib/libsec.so.1...done.Loaded symbols 
  for /usr/lib/libsec.so.1Reading symbols from 
  /usr/lib/libgen.so.1...done.Loaded symbols for 
  /usr/lib/libgen.so.1Reading symbols from 
  /usr/lib/libresolv.so.2...done.Loaded symbols for 
  /usr/lib/libresolv.so.2Reading symbols from 
  /usr/lib/libsocket.so.1...done.Loaded symbols for 
  /usr/lib/libsocket.so.1Reading symbols from 
  /usr/lib/libnsl.so.1...done.Loaded symbols for 
  /usr/lib/libnsl.so.1Reading symbols from 
  /usr/lib/libpam.so.1...done.Loaded symbols for 
  /usr/lib/libpam.so.1Reading symbols from 
  /usr/lib/libc.so.1...done.Loaded symbols for /usr/lib/libc.so.1Reading 
  symbols from /usr/lib/libdl.so.1...done.Loaded symbols for 
  /usr/lib/libdl.so.1Reading symbols from 
  /usr/lib/libmp.so.2...done.Loaded symbols for 
  /usr/lib/libmp.so.2Reading symbols from 
  /usr/platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1...done.Loaded symbols 
  for /usr/platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1Reading symbols from 
  /usr/lib/nss_files.so.1...done.Loaded symbols for 
  /usr/lib/nss_files.so.1Reading symbols from 
  /usr/lib/nss_winbind.so.1...done.Loaded symbols for 
  /usr/lib/nss_winbind.so.1Retry #1:Retry #2:Retry #3:Retry 
  #4:[New LWP 1]Symbols already loaded for 
  /usr/lib/libsec.so.1Symbols already loaded for 
  /usr/lib/libgen.so.1Symbols already loaded for 
  /usr/lib/libresolv.so.2Symbols already loaded for 
  /usr/lib/libsocket.so.1Symbols already loaded for 
  /usr/lib/libnsl.so.1Symbols already loaded for 
  /usr/lib/libpam.so.1Symbols already loaded for 
  /usr/lib/libc.so.1Symbols already loaded for 
  /usr/lib/libdl.so.1Symbols already loaded for 
  /usr/lib/libmp.so.2Symbols already loaded for 
  /usr/platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1Symbols already loaded 
  for /usr/lib/nss_files.so.1Symbols already loaded for 
  /usr/lib/nss_winbind.so.10xff19a138 in _poll () from 
  /usr/lib/libc.so.1(gdb) stepSingle stepping until exit from function 
  _poll, which has no line number information.0xff14cfb4 in select () 
  from /usr/lib/libc.so.1(gdb) nextSingle stepping until exit from 
  function select, which has no line number information.0x14aafc in 
  sys_select ()(gdb) stepSingle stepping until exit from function 
  sys_select, which has no line number information.0x73004 in 
  receive_message_or_smb ()(gdb) stepSingle stepping until exit from 
  function receive_message_or_smb, which has no line number 
  information.0x74610 in smbd_process ()(gdb) stepSingle stepping 
  until exit from function smbd_process, which has no line number 
  information.
  
  Program received signal SIGSEGV, Segmentation fault.0xff132e84 in 
  strcmp () from /usr/lib/libc.so.1(gdb) bt#0 0xff132e84 in strcmp 
  () from /usr/lib/libc.so.1#1 0xff194efc in process_cstr () from 
  /usr/lib/libc.so.1#2 0xfefe20c0 in _nss_files_do_all () from 
  /usr/lib/nss_files.so.1#3 0xff149290 in nss_search () from 
  /usr/lib/libc.so.1#4 0xff194bf8 in _getgroupsbymember () from 
  /usr/lib/libc.so.1#5 0xff140c20 in initgroups () from 
  /usr/lib/libc.so.1#6 0x6b5d8 in initialise_groups ()#7 
  0x75a4c in make_connection_snum ()#8 0x76874 in make_connection 
  ()#9 0x4f16c in reply_tcon_and_X ()#10 0x73854 in switch_message 
  ()#11 0x738e0 in construct_reply ()#12 0x73bc0 in process_smb 
  ()#13 0x7462c in smbd_process ()#14 0x357c8 in main ()(gdb) 
  ---Original Message-From: Esh, Andrew 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 02, 2002 11:10 
  AMTo: 'David Shapiro'; 'Andrew Bartlett'Cc: 'Richard 
  Sharpe'; '[EMAIL PROTECTED]'Subject: RE: 
  sessionid.tdb missing after build and client read 
failutre
  Don't step at that point. The process has already run the CPU 
  into the wrong segment, or accessed memory using a bad pointer. Stepping will 
  only destroy information.
  Do a 'bt' instead. That will dump the call stack, and show 
  what path the code ran to get to this point. What I expect to see is somewhere 
  above the strcmp routine, a Samba routine will call strcmp with a bad pointer, 
  or a non-terminated string buffer. We need to know which routine did 
  that.
  -Original Message- From: David 
  Shapiro [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, July 02, 2002 9:17 AM To: 'Andrew Bartlett'; David 

RE: sessionid.tdb missing after build and client read failutre

2002-07-02 Thread Richard Sharpe

On Tue, 2 Jul 2002, David Shapiro wrote:

 Okay, correct me if I did it wrong...

I think that Donald Fagan would say that line should be Sue me if I 
played it wrong.

However, you do appear to have a traceback. Would have been more useful if 
there were line numbers, but for that you will need to rebuild Samba (frob 
the Makefile to include -g in CFLAGS).
  
 I ran smbstatus, saw the pid of my connection, ran gdb smbd pid
  
 
 #gdb smbd 17294
 GNU gdb 5.0
 Copyright 2000 Free Software Foundation, Inc.
 GDB is free software, covered by the GNU General Public License, and you are
 welcome to change it and/or distribute copies of it under certain
 conditions.
 Type show copying to see the conditions.
 There is absolutely no warranty for GDB.  Type show warranty for details.
 This GDB was configured as sparc-sun-solaris2.8...
 /usr/local/bin/17294: No such file or directory.
 Attaching to program `/usr/local/samba/sbin/smbd', process 17294
 Reading symbols from /usr/lib/libsec.so.1...done.
 Loaded symbols for /usr/lib/libsec.so.1
 Reading symbols from /usr/lib/libgen.so.1...done.
 Loaded symbols for /usr/lib/libgen.so.1
 Reading symbols from /usr/lib/libresolv.so.2...done.
 Loaded symbols for /usr/lib/libresolv.so.2
 Reading symbols from /usr/lib/libsocket.so.1...done.
 Loaded symbols for /usr/lib/libsocket.so.1
 Reading symbols from /usr/lib/libnsl.so.1...done.
 Loaded symbols for /usr/lib/libnsl.so.1
 Reading symbols from /usr/lib/libpam.so.1...done.
 Loaded symbols for /usr/lib/libpam.so.1
 Reading symbols from /usr/lib/libc.so.1...done.
 Loaded symbols for /usr/lib/libc.so.1
 Reading symbols from /usr/lib/libdl.so.1...done.
 Loaded symbols for /usr/lib/libdl.so.1
 Reading symbols from /usr/lib/libmp.so.2...done.
 Loaded symbols for /usr/lib/libmp.so.2
 Reading symbols from
 /usr/platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1...done.
 Loaded symbols for /usr/platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1
 Reading symbols from /usr/lib/nss_files.so.1...done.
 Loaded symbols for /usr/lib/nss_files.so.1
 Reading symbols from /usr/lib/nss_winbind.so.1...done.
 Loaded symbols for /usr/lib/nss_winbind.so.1
 Retry #1:
 Retry #2:
 Retry #3:
 Retry #4:
 [New LWP 1]
 Symbols already loaded for /usr/lib/libsec.so.1
 Symbols already loaded for /usr/lib/libgen.so.1
 Symbols already loaded for /usr/lib/libresolv.so.2
 Symbols already loaded for /usr/lib/libsocket.so.1
 Symbols already loaded for /usr/lib/libnsl.so.1
 Symbols already loaded for /usr/lib/libpam.so.1
 Symbols already loaded for /usr/lib/libc.so.1
 Symbols already loaded for /usr/lib/libdl.so.1
 Symbols already loaded for /usr/lib/libmp.so.2
 Symbols already loaded for /usr/platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1
 Symbols already loaded for /usr/lib/nss_files.so.1
 Symbols already loaded for /usr/lib/nss_winbind.so.1
 0xff19a138 in _poll () from /usr/lib/libc.so.1
 (gdb) step
 Single stepping until exit from function _poll, 
 which has no line number information.
 0xff14cfb4 in select () from /usr/lib/libc.so.1
 (gdb) next
 Single stepping until exit from function select, 
 which has no line number information.
 0x14aafc in sys_select ()
 (gdb) step
 Single stepping until exit from function sys_select, 
 which has no line number information.
 0x73004 in receive_message_or_smb ()
 (gdb) step
 Single stepping until exit from function receive_message_or_smb, 
 which has no line number information.
 0x74610 in smbd_process ()
 (gdb) step
 Single stepping until exit from function smbd_process, 
 which has no line number information.
  
 Program received signal SIGSEGV, Segmentation fault.
 0xff132e84 in strcmp () from /usr/lib/libc.so.1
 (gdb) bt
 #0  0xff132e84 in strcmp () from /usr/lib/libc.so.1
 #1  0xff194efc in process_cstr () from /usr/lib/libc.so.1
 #2  0xfefe20c0 in _nss_files_do_all () from /usr/lib/nss_files.so.1
 #3  0xff149290 in nss_search () from /usr/lib/libc.so.1
 #4  0xff194bf8 in _getgroupsbymember () from /usr/lib/libc.so.1
 #5  0xff140c20 in initgroups () from /usr/lib/libc.so.1
 #6  0x6b5d8 in initialise_groups ()
 #7  0x75a4c in make_connection_snum ()
 #8  0x76874 in make_connection ()
 #9  0x4f16c in reply_tcon_and_X ()
 #10 0x73854 in switch_message ()
 #11 0x738e0 in construct_reply ()
 #12 0x73bc0 in process_smb ()
 #13 0x7462c in smbd_process ()
 #14 0x357c8 in main ()
 (gdb) ---Original Message-
 From: Esh, Andrew [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 02, 2002 11:10 AM
 To: 'David Shapiro'; 'Andrew Bartlett'
 Cc: 'Richard Sharpe'; '[EMAIL PROTECTED]'
 Subject: RE: sessionid.tdb missing after build and client read failutre
 
 
 
 Don't step at that point. The process has already run the CPU into the wrong
 segment, or accessed memory using a bad pointer. Stepping will only destroy
 information.
 
 Do a 'bt' instead. That will dump the call stack, and show what path the
 code ran to get to this point. What I expect to see is somewhere above the
 strcmp routine, a Samba routine will call strcmp with a bad pointer, or 

RE: [Samba] RE: FW: samba woes

2002-07-02 Thread Gerald (Jerry) Carter

On Wed, 26 Jun 2002, Johnston, Christopher (DCSA) wrote:

 Excellent.. however we are attempting to try and put together an LDAP
 solution here at ML to keep a centralized database of SID-UID
 mappings.. than letting the LDAP client make calls against the database
 for a UID.. what we would need is a backend script/program to make calls
 against winbind using wbinfo.. and than passing that info off to the
 LDAP server.. not sure if that would work.. but it is something
 management here has been talking about asking me to implement..

I've got some LDAP code I started on with.  Looked like it would work 
technically.  Don't know about performance








cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--






Re: CVS update: samba/source/libsmb

2002-07-02 Thread Gerald (Jerry) Carter

On Wed, 3 Jul 2002, Richard Sharpe wrote:

  Is there a reason that this has to go into SAMBA_2_2?
 
 I don't work in any other area at the moment.

That's not a real good reason IMO.  The libsmbclient
code should be sync'd between HEAD and SAMBA_2_2
so you should be able to work in either branch.
We really need to leave SAMBA_2_2 alone

   It looks 
  like it could potentially de-stablize the libsmbclient library
  and I would prefer not to do on 2.2. 
 
 If we get it right, it should be compatible.

That's a bug **if** though.  What effect will this have on
someone running a client written to use libsmbclient.so 
delivered with 2.2.x after they upgrade?

 It would be nice if the two were in step, though, as far as libsmbclient
 is concerned.

See comments above.






cheers, jerry
 -
 Hewlett-Packard http://www.hp.com
 SAMBA Team   http://www.samba.org
 --http://www.plainjoe.org
 Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
 --I never saved anything for the swim back. Ethan Hawk in Gattaca--





Re: archive bit in xattr possible/exist?

2002-07-02 Thread John E. Malmberg

David Orman wrote:
 I know it is possible to use map archive to keep track of archive
 bits, but this is not very useful if you have real UNIX users.  I.e. I
 can't have samba arbitrarily playing with the execute bits.
 
 Does anyone know of any attempted implementation of archive bits through
 extended attributes?  This would probably need a VFS layer, to get and
 set them appropriately.

Samba 2.0.6 for OpenVMS.

 If no one has looked into this is there a better/different way of
 tracking archive bits?

Tracking the bit to meaningfully give the state is operating system 
dependent.  And may even depend on optional backup products installed.

OpenVMS has the last recorded backup date as an attribute for the file, 
so SAMBA 2.0.6 for OpenVMS has it implemented as a O.S. specific hack to 
report the backup state of the file.

At this time, SAMBA 2.0.6 for OpenVMS does not allow the client to 
manipulate the backup date, as there is no public A.P.I. to do it.

A VFS layer may be a way to do this.

-John
[EMAIL PROTECTED]
Personal Opinion Only





Re: archive bit in xattr possible/exist?

2002-07-02 Thread John E. Malmberg

David Orman wrote:
 I know it is possible to use map archive to keep track of archive
 bits, but this is not very useful if you have real UNIX users.  I.e. I
 can't have samba arbitrarily playing with the execute bits.
 
 Does anyone know of any attempted implementation of archive bits through
 extended attributes?  This would probably need a VFS layer, to get and
 set them appropriately.

Samba 2.0.6 for OpenVMS.

 If no one has looked into this is there a better/different way of
 tracking archive bits?

Tracking the bit to meaningfully give the state is operating system 
dependent.  And may even depend on optional backup products installed.

OpenVMS has the last recorded backup date as an attribute for the file, 
so SAMBA 2.0.6 for OpenVMS has it implemented as a O.S. specific hack to 
report the backup state of the file.

At this time, SAMBA 2.0.6 for OpenVMS does not allow the client to 
manipulate the backup date, as there is no public A.P.I. to do it.

A VFS layer may be a way to do this.

-John
[EMAIL PROTECTED]
Personal Opinion Only





Re: Draft of branch maintainence and release plans....

2002-07-02 Thread Andrew Bartlett

Gerald (Jerry) Carter wrote:
 
 Everyone,
 
 Here are the plans for getting 3.0 ready for release and the
 maintainence plans for SAMBA_2_2.  Comments welcome.
 
 I would love to see this out sometime during the Fall of this
 year.  Of course, none of this will get done without everyone's
 help :-)
 
 Roadmap to 3.0
 --
 
 The following features are planned for inclusion in 3.0.
 This list was compiled based on previous promises during 2.2
 development and believed future directions of Samba
 
 * Internationalization - The UNICODE support is done.  Jeremy
   thinks we will probably need some auditing and testing
   before release.
 
 * Full Windows NT 4.0 PDC support
   - Trust relationships
   - SAM replication

I don't see this being in 3.0.  Maybe a later release, but there is more
work 'todo' in this area that you might expect.  Natrually, Samba-Samba
replication will be fully supported.

   These features will allow for full replacement and migration
   from Windows NT 4.0 domain controllers.  Both of these features
   are partially completed.
 
 * Windows 2000 domain client support - Done.
 
 * NTLMv2  Sign/Seal of RPC packets - NTLMv2 should be ok, the
   sign/seal is yet to be done.

This gets messy - in particular the 'netlogon' problem isn't related to
NTLMv2 at all, its another associated mess...

 * Winbind idmap storage  central idmap repository (for
   clusters, nfs, etc...)
 
 * Winbind working with Samba DC

 * Group Mapping support (pluggable?)

The folks on #samba-technical (kai, metze, ctrlsoft, idra and I) are
working on a new SAM interface (fully pluggable etc), and we will bring
discussions here shortly on how to move this towards the mythical 'Samba
3.0'.

 * Printer attribute publishing using 'net'
 
 * pluggable passwd support - Done.
 
 Other possible feature which may be included depending on
 time/resources.  Probably in later 3.x release.
 
 * Background updates of print queue caches
 
 * WINS replication
 
 * loadable library support for named pipes
 
 * non-blocking winbind implementation
 
 * Printer attribute publishing via smbd

  * SAM Replication over NT4 RPC protocols.

 SAMBA_2_2 maintainence
 --
 
 The SAMBA_2_2 will only be updated to include fixes for
 severe bugs or security exploits.  All testing will be done
 against HEAD at this point.  No new features/functionality
 are to added due to the risk of destabilizing the branch.
 
 There will be a 2.2.6 release most likely, but all efforts
 should be concentrated on HEAD.

Finally!  :-)

Andrew Bartlett

-- 
Andrew Bartlett [EMAIL PROTECTED]
Manager, Authentication Subsystems, Samba Team  [EMAIL PROTECTED]
Student Network Administrator, Hawker College   [EMAIL PROTECTED]
http://samba.org http://build.samba.org http://hawkerc.net




Re: CVS update: samba/source/libsmb

2002-07-02 Thread Gerald Carter

On Wed, 3 Jul 2002, Richard Sharpe wrote:

 On Wed, 3 Jul 2002, Andrew Bartlett wrote:
 
  Just watch in that sync-up - tridge fixed up some (quite serious) bugs
  in the HEAD version (wins *registrations* in the client) and we don't
  want them 'merged back'.
 
 Hey, watch it with the flagrant misuse of adjectives there. They were not 
 (quite serious) bugs, more like sub-optimalities :-)

Yeah.  Sorry.  Captain Pedantic (Chris) already called me on that one :-)







cheers, jerry





Re: Draft of branch maintainence and release plans....

2002-07-02 Thread Matt Pavlovich

Jerry-

I have a good start on the following, and putting it on the list will
help keep it on my radar :).

For 3.0
---
*Conversion to NTSTATUS for return codes

Wishlist

*Pluggable backend for storing WINS entries (ie SQL, LDAP)

Matt Pavlovich

 Message: 8
 Date: Tue, 2 Jul 2002 11:54:18 -0500 (CDT)
 From: Gerald (Jerry) Carter [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Draft of branch maintainence and release plans
 
 Everyone,
 
 Here are the plans for getting 3.0 ready for release and the 
 maintainence plans for SAMBA_2_2.  Comments welcome.
 
 I would love to see this out sometime during the Fall of this 
 year.  Of course, none of this will get done without everyone's 
 help :-)
 
 
 
 Roadmap to 3.0
 --
 
 The following features are planned for inclusion in 3.0.
 This list was compiled based on previous promises during 2.2
 development and believed future directions of Samba
 
 * Internationalization - The UNICODE support is done.  Jeremy
   thinks we will probably need some auditing and testing
   before release.
 
 * Full Windows NT 4.0 PDC support
   - Trust relationships 
   - SAM replication 
   These features will allow for full replacement and migration 
   from Windows NT 4.0 domain controllers.  Both of these features
   are partially completed.
 
 * Windows 2000 domain client support - Done.
 
 * NTLMv2  Sign/Seal of RPC packets - NTLMv2 should be ok, the 
   sign/seal is yet to be done.
 
 * Winbind idmap storage  central idmap repository (for
   clusters, nfs, etc...)
 
 * Winbind working with Samba DC
 
 * Group Mapping support (pluggable?)
 
 * Printer attribute publishing using 'net'
 
 * pluggable passwd support - Done.
 
 
 Other possible feature which may be included depending on 
 time/resources.  Probably in later 3.x release.
 
 * Background updates of print queue caches
 
 * WINS replication
 
 * loadable library support for named pipes
 
 * non-blocking winbind implementation
 
 * Printer attribute publishing via smbd
 
 
 
 SAMBA_2_2 maintainence
 --
 
 The SAMBA_2_2 will only be updated to include fixes for 
 severe bugs or security exploits.  All testing will be done
 against HEAD at this point.  No new features/functionality 
 are to added due to the risk of destabilizing the branch.
 
 There will be a 2.2.6 release most likely, but all efforts
 should be concentrated on HEAD.
 
 
 
 
 
 
 
 cheers, jerry
  -
  Hewlett-Packard http://www.hp.com
  SAMBA Team   http://www.samba.org
  --http://www.plainjoe.org
  Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
  --I never saved anything for the swim back. Ethan Hawk in Gattaca--
 
 
 
 
 --__--__--
 
 Message: 9
 Date: Tue, 2 Jul 2002 11:54:32 -0500 (CDT)
 From: Gerald (Jerry) Carter [EMAIL PROTECTED]
 To: Jelmer Vernooij [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: ADS-HOWTO.sgml
 
 On Fri, 28 Jun 2002, Jelmer Vernooij wrote:
 
  Hi jerry,
  
  Here's the ADS HOWTO converted to sgml..
 
 Adding it to HEAD now. Thanks.
 
 
 
 
 
 
 
 
 
 cheers, jerry
  -
  Hewlett-Packard http://www.hp.com
  SAMBA Team   http://www.samba.org
  --http://www.plainjoe.org
  Sam's Teach Yourself Samba in 24 Hours 2ed.  ISBN 0-672-32269-2
  --I never saved anything for the swim back. Ethan Hawk in Gattaca--






Re: smbmount with big file sizes

2002-07-02 Thread Les Barstow

Is there a reason this hasn't made it into the Samba and mnt.smbfs main
trees yet?  I would have use of it, but it seems odd that it isn't
included in many default kernel builds or in the main Samba build - I
don't want to mess up a production box by doing so.

Thanks,
Les Barstow

On Tue, 2 Jul 2002, Urban Widmark wrote:

 Date: Tue, 2 Jul 2002 15:40:04 +0200 (CEST)
 From: Urban Widmark [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: Re: smbmount with big file sizes

 On Tue, 2 Jul 2002 [EMAIL PROTECTED] wrote:

  I have also tried:
 
  http://www.hojdpunkten.ac.se/054/samba/index.html
 
  with exactly the steps whatever they are:
  But no luck i have used kernel 2.4.16 and samba 2.2.2.

 You have probably not patched both the kernel and samba, rebuilt and
 reinstalled both. If either samba or the kernel you are using[1] is
 unpatched you will not get large file support.


 Also note that there is a 2.4.18 version available. I don't remember that
 anything changed from the 2.4.16 patch, but I do know that a lot of people
 have had success with the 2.4.18 one.


 /Urban


 [1] - There is a difference between using and have installed. You can
   have multiple versions installed but use the wrong one.



-- 
Les Barstow:  [EMAIL PROTECTED]   http://www.faerealm.com

 They that can give up essential liberty to obtain a little temporary
   safety deserve neither liberty nor safety.  --Benjamin Franklin