svn commit: samba r1305 - branches/SAMBA_4_0/source/utils

2004-06-29 Thread abartlet
Author: abartlet
Date: 2004-06-30 02:05:26 + (Wed, 30 Jun 2004)
New Revision: 1305

Modified:
   branches/SAMBA_4_0/source/utils/ntlm_auth.c
Log:
Grrr, fix my build breakage...

Declare variables at the start of a block.

Andrew Bartlett


WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1305&nolog=1


svn commit: samba r1304 - branches/SAMBA_3_0/source/smbd

2004-06-29 Thread jra
Author: jra
Date: 2004-06-30 01:35:01 + (Wed, 30 Jun 2004)
New Revision: 1304

Modified:
   branches/SAMBA_3_0/source/smbd/open.c
Log:
Turns out non-io opens that cause oplock breaks are a *different* set
of desired access flags from those that cause sharing violations.
Oplock breaks are caused by : 
~(SYNCHRONIZE_ACCESS|FILE_READ_ATTRIBUTES|FILE_WRITE_ATTRIBUTES)
Sharing violations are caused by : 
~(SYNCHRONIZE_ACCESS|READ_CONTROL_ACCESS|FILE_READ_ATTRIBUTES|FILE_WRITE_ATTRIBUTES)
We now pass the torture rename test again.
I still need to work out if subsequent opens will cause sharing violations with an 
existing open
mode of 
SYNCHRONIZE_ACCESS|READ_CONTROL_ACCESS|FILE_READ_ATTRIBUTES|FILE_WRITE_ATTRIBUTES;
Jeremy.


WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1304&nolog=1


svn commit: samba r1303 - trunk/source/smbd

2004-06-29 Thread jra
Author: jra
Date: 2004-06-30 01:34:55 + (Wed, 30 Jun 2004)
New Revision: 1303

Modified:
   trunk/source/smbd/open.c
Log:
Turns out non-io opens that cause oplock breaks are a *different* set
of desired access flags from those that cause sharing violations.
Oplock breaks are caused by : 
~(SYNCHRONIZE_ACCESS|FILE_READ_ATTRIBUTES|FILE_WRITE_ATTRIBUTES)
Sharing violations are caused by : 
~(SYNCHRONIZE_ACCESS|READ_CONTROL_ACCESS|FILE_READ_ATTRIBUTES|FILE_WRITE_ATTRIBUTES)
We now pass the torture rename test again.
I still need to work out if subsequent opens will cause sharing violations with an 
existing open
mode of 
SYNCHRONIZE_ACCESS|READ_CONTROL_ACCESS|FILE_READ_ATTRIBUTES|FILE_WRITE_ATTRIBUTES;
Jeremy.


WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1303&nolog=1


svn commit: samba r1302 - trunk/source/smbd

2004-06-29 Thread jra
Author: jra
Date: 2004-06-29 20:41:36 + (Tue, 29 Jun 2004)
New Revision: 1302

Modified:
   trunk/source/smbd/mangle_hash.c
Log:
Fix bogus error message when using "mangling method = hash" rather
than hash2. We are already calculating lengths so just use memcpy
not safe_strcpy().
Jeremy.


WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1302&nolog=1


svn commit: samba r1301 - branches/SAMBA_3_0/source/smbd

2004-06-29 Thread jra
Author: jra
Date: 2004-06-29 20:41:29 + (Tue, 29 Jun 2004)
New Revision: 1301

Modified:
   branches/SAMBA_3_0/source/smbd/mangle_hash.c
Log:
Fix bogus error message when using "mangling method = hash" rather
than hash2. We are already calculating lengths so just use memcpy
not safe_strcpy().
Jeremy.


WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1301&nolog=1


CVS update: cifsvfs

2004-06-29 Thread sfrench

Date:   Tue Jun 29 19:13:02 2004
Author: sfrench

Update of /home/cvs/cifsvfs
In directory dp.samba.org:/tmp/cvs-serv14891

Modified Files:
26to24_backporting_considerations cifs_24.patch 
Log Message:
Merge with 2.6 updates - bring to version 1.20 of cifs vfs


Revisions:
26to24_backporting_considerations   1.2 => 1.3

http://www.samba.org/cgi-bin/cvsweb/cifsvfs/26to24_backporting_considerations?r1=1.2&r2=1.3
cifs_24.patch   1.2 => 1.3
http://www.samba.org/cgi-bin/cvsweb/cifsvfs/cifs_24.patch?r1=1.2&r2=1.3



CVS update: cifsvfs/fs/cifs

2004-06-29 Thread sfrench

Date:   Tue Jun 29 19:13:02 2004
Author: sfrench

Update of /home/cvs/cifsvfs/fs/cifs
In directory dp.samba.org:/tmp/cvs-serv14891/fs/cifs

Modified Files:
AUTHORS CHANGES README cifs_debug.c cifsfs.h cifsglob.h 
cifspdu.h cifsproto.h cifssmb.c connect.c dir.c file.c inode.c 
link.c transport.c 
Log Message:
Merge with 2.6 updates - bring to version 1.20 of cifs vfs


Revisions:
AUTHORS 1.8 => 1.9
http://www.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/AUTHORS?r1=1.8&r2=1.9
CHANGES 1.51 => 1.52
http://www.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/CHANGES?r1=1.51&r2=1.52
README  1.22 => 1.23
http://www.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/README?r1=1.22&r2=1.23
cifs_debug.c1.21 => 1.22

http://www.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/cifs_debug.c?r1=1.21&r2=1.22
cifsfs.h1.9 => 1.10
http://www.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/cifsfs.h?r1=1.9&r2=1.10
cifsglob.h  1.33 => 1.34
http://www.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/cifsglob.h?r1=1.33&r2=1.34
cifspdu.h   1.19 => 1.20
http://www.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/cifspdu.h?r1=1.19&r2=1.20
cifsproto.h 1.32 => 1.33
http://www.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/cifsproto.h?r1=1.32&r2=1.33
cifssmb.c   1.60 => 1.61
http://www.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/cifssmb.c?r1=1.60&r2=1.61
connect.c   1.55 => 1.56
http://www.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/connect.c?r1=1.55&r2=1.56
dir.c   1.22 => 1.23
http://www.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/dir.c?r1=1.22&r2=1.23
file.c  1.60 => 1.61
http://www.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/file.c?r1=1.60&r2=1.61
inode.c 1.40 => 1.41
http://www.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/inode.c?r1=1.40&r2=1.41
link.c  1.17 => 1.18
http://www.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/link.c?r1=1.17&r2=1.18
transport.c 1.35 => 1.36
http://www.samba.org/cgi-bin/cvsweb/cifsvfs/fs/cifs/transport.c?r1=1.35&r2=1.36


svn commit: samba r1300 - trunk/source/nmbd

2004-06-29 Thread jra
Author: jra
Date: 2004-06-29 17:33:56 + (Tue, 29 Jun 2004)
New Revision: 1300

Modified:
   trunk/source/nmbd/nmbd_winsserver.c
Log:
Used "break" instead of "continue" so I was only expiring the first record. DOH !
Jeremy.


WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1300&nolog=1


svn commit: samba r1299 - branches/SAMBA_3_0/source/nmbd

2004-06-29 Thread jra
Author: jra
Date: 2004-06-29 17:32:44 + (Tue, 29 Jun 2004)
New Revision: 1299

Modified:
   branches/SAMBA_3_0/source/nmbd/nmbd_winsserver.c
Log:
Don't "break" - "continue" ! Otherwise we only expire the first name !
Doh !
Jeremy.


WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1299&nolog=1


svn commit: samba r1298 - in trunk/source: nsswitch sam

2004-06-29 Thread vlendec
Author: vlendec
Date: 2004-06-29 15:48:35 + (Tue, 29 Jun 2004)
New Revision: 1298

Modified:
   trunk/source/nsswitch/winbindd.c
   trunk/source/nsswitch/winbindd_cache.c
   trunk/source/sam/idmap.c
Log:
Check in the 'winbind proxy only' mode

Send getusersids through a dual daemon.

Volker



WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/trunk/source&rev=1298&nolog=1


svn commit: samba r1297 - in branches/SAMBA_3_0/source: nsswitch sam

2004-06-29 Thread vlendec
Author: vlendec
Date: 2004-06-29 15:46:43 + (Tue, 29 Jun 2004)
New Revision: 1297

Modified:
   branches/SAMBA_3_0/source/nsswitch/winbindd.c
   branches/SAMBA_3_0/source/sam/idmap.c
Log:
Yes, it does survive valgrind for my tests :-)

Check in the 'winbind proxy only' mode -- no new parameter required :-)

If you don't set idmap uid or idmap gid, winbind will not do idmap stuff, it
will only proxy the netlogon request and thus speed up the authentication of
domain users.

Volker



WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_3_0/source&rev=1297&nolog=1


svn commit: samba r1296 - trunk/source/printing

2004-06-29 Thread vlendec
Author: vlendec
Date: 2004-06-29 15:43:50 + (Tue, 29 Jun 2004)
New Revision: 1296

Modified:
   trunk/source/printing/printing.c
Log:
To be able to send a message to the background queue updated, we need to be
root. Otherwise the USR1 signal will not be delivered.

Volker


WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1296&nolog=1


svn commit: samba r1295 - branches/SAMBA_3_0/source/printing

2004-06-29 Thread vlendec
Author: vlendec
Date: 2004-06-29 15:42:00 + (Tue, 29 Jun 2004)
New Revision: 1295

Modified:
   branches/SAMBA_3_0/source/printing/printing.c
Log:
To be able to send a message to the background queue updated, we need to be
root. Otherwise the USR1 signal will not be delivered.

Volker


WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1295&nolog=1


svn commit: samba-docs r160 - trunk/Samba-HOWTO-Collection

2004-06-29 Thread jelmer
Author: jelmer
Date: 2004-06-29 12:32:44 + (Tue, 29 Jun 2004)
New Revision: 160

Modified:
   trunk/Samba-HOWTO-Collection/Passdb.xml
Log:
Fix typo

WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba-docs&path=/&rev=160&nolog=1


svn commit: samba r1294 - in branches/SAMBA_4_0/source: auth libcli libcli/auth librpc/ndr librpc/rpc ntvfs/ipc rpc_server rpc_server/netlogon rpc_server/samr smb_server torture/rpc utils

2004-06-29 Thread abartlet
Author: abartlet
Date: 2004-06-29 09:40:10 + (Tue, 29 Jun 2004)
New Revision: 1294

Removed:
   branches/SAMBA_4_0/source/auth/auth_ntlmssp.c
   branches/SAMBA_4_0/source/rpc_server/dcesrv_crypto.c
   branches/SAMBA_4_0/source/rpc_server/dcesrv_crypto_ntlmssp.c
   branches/SAMBA_4_0/source/rpc_server/dcesrv_crypto_schannel.c
Modified:
   branches/SAMBA_4_0/source/auth/auth.h
   branches/SAMBA_4_0/source/auth/auth_util.c
   branches/SAMBA_4_0/source/auth/config.m4
   branches/SAMBA_4_0/source/auth/config.mk
   branches/SAMBA_4_0/source/libcli/auth/gensec.c
   branches/SAMBA_4_0/source/libcli/auth/gensec.h
   branches/SAMBA_4_0/source/libcli/auth/gensec_ntlmssp.c
   branches/SAMBA_4_0/source/libcli/auth/ntlmssp_sign.c
   branches/SAMBA_4_0/source/libcli/auth/spnego.c
   branches/SAMBA_4_0/source/libcli/auth/spnego.h
   branches/SAMBA_4_0/source/libcli/config.m4
   branches/SAMBA_4_0/source/librpc/ndr/ndr.c
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc.c
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc.h
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_auth.c
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_ntlm.c
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_schannel.c
   branches/SAMBA_4_0/source/librpc/rpc/dcerpc_util.c
   branches/SAMBA_4_0/source/ntvfs/ipc/vfs_ipc.c
   branches/SAMBA_4_0/source/rpc_server/config.m4
   branches/SAMBA_4_0/source/rpc_server/config.mk
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.c
   branches/SAMBA_4_0/source/rpc_server/dcerpc_server.h
   branches/SAMBA_4_0/source/rpc_server/dcesrv_auth.c
   branches/SAMBA_4_0/source/rpc_server/netlogon/dcerpc_netlogon.c
   branches/SAMBA_4_0/source/rpc_server/samr/samr_password.c
   branches/SAMBA_4_0/source/smb_server/password.c
   branches/SAMBA_4_0/source/torture/rpc/schannel.c
   branches/SAMBA_4_0/source/utils/ntlm_auth.c
Log:
A nice, large, commit...

This implements gensec for Samba's server side, and brings gensec up
to the standards of a full subsystem.

This means that use of the subsystem is by gensec_* functions, not
function pointers in structures (this is internal).  This causes
changes in all the existing gensec users.

Our RPC server no longer contains it's own generalised security
scheme, and now calls gensec directly.

Gensec has also taken over the role of auth/auth_ntlmssp.c

An important part of gensec, is the output of the 'session_info'
struct.  This is now reference counted, so that we can correctly free
it when a pipe is closed, no matter if it was inherited, or created by
per-pipe authentication.

The schannel code is reworked, to be in the same file for client and
server.  

ntlm_auth is reworked to use gensec.

The major problem with this code is the way it relies on subsystem
auto-initialisation.  The primary reason for this commit now.is to
allow these problems to be looked at, and fixed.

There are problems with the new code:
- I've tested it with smbtorture, but currently don't have VMware and
  valgrind working (this I'll fix soon).  
- The SPNEGO code is client-only at this point.
- We still do not do kerberos.

Andrew Bartlett



WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source&rev=1294&nolog=1


svn commit: samba r1293 - branches/SAMBA_4_0/source/smb_server

2004-06-29 Thread abartlet
Author: abartlet
Date: 2004-06-29 09:23:37 + (Tue, 29 Jun 2004)
New Revision: 1293

Modified:
   branches/SAMBA_4_0/source/smb_server/sesssetup.c
Log:
Indent

Andrew Bartlett


WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1293&nolog=1


svn commit: samba r1292 - in branches/SAMBA_4_0/source: auth include lib smbd

2004-06-29 Thread abartlet
Author: abartlet
Date: 2004-06-29 09:20:18 + (Tue, 29 Jun 2004)
New Revision: 1292

Modified:
   branches/SAMBA_4_0/source/auth/auth.c
   branches/SAMBA_4_0/source/include/module.h
   branches/SAMBA_4_0/source/lib/module.c
   branches/SAMBA_4_0/source/smbd/process_model.c
Log:
Add const to the subsystem/module registration code.

Add some 'multi init' code, until we get a better set of infrustructure.

Andrew Bartlett


WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source&rev=1292&nolog=1


svn commit: samba r1291 - in branches/SAMBA_4_0/source: lib ntvfs ntvfs/cifs ntvfs/ipc param smb_server smbd

2004-06-29 Thread metze
Author: metze
Date: 2004-06-29 07:40:14 + (Tue, 29 Jun 2004)
New Revision: 1291

Modified:
   branches/SAMBA_4_0/source/lib/util.c
   branches/SAMBA_4_0/source/ntvfs/cifs/vfs_cifs.c
   branches/SAMBA_4_0/source/ntvfs/ipc/vfs_ipc.c
   branches/SAMBA_4_0/source/ntvfs/ntvfs_generic.c
   branches/SAMBA_4_0/source/param/loadparm.c
   branches/SAMBA_4_0/source/smb_server/conn.c
   branches/SAMBA_4_0/source/smb_server/connection.c
   branches/SAMBA_4_0/source/smb_server/negprot.c
   branches/SAMBA_4_0/source/smb_server/password.c
   branches/SAMBA_4_0/source/smb_server/reply.c
   branches/SAMBA_4_0/source/smb_server/request.c
   branches/SAMBA_4_0/source/smb_server/search.c
   branches/SAMBA_4_0/source/smb_server/service.c
   branches/SAMBA_4_0/source/smb_server/session.c
   branches/SAMBA_4_0/source/smb_server/sesssetup.c
   branches/SAMBA_4_0/source/smb_server/signing.c
   branches/SAMBA_4_0/source/smb_server/smb_server.c
   branches/SAMBA_4_0/source/smb_server/smb_server.h
   branches/SAMBA_4_0/source/smb_server/srvtime.c
   branches/SAMBA_4_0/source/smb_server/trans2.c
   branches/SAMBA_4_0/source/smbd/process_model.c
   branches/SAMBA_4_0/source/smbd/process_model.h
   branches/SAMBA_4_0/source/smbd/process_single.c
   branches/SAMBA_4_0/source/smbd/process_standard.c
   branches/SAMBA_4_0/source/smbd/process_thread.c
   branches/SAMBA_4_0/source/smbd/rewrite.c
Log:
rename struct smbsrv_context to smbsrv_connection
because this is the connection state per transport layer (tcp)
connection

I also moved the substructs directly into smbsrv_connection,
because they don't need a struct name and we should allway pass the complete
smbsrv_connection struct into functions

metze


WebSVN: 
http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source&rev=1291&nolog=1