Stefan Metzmacher
faa8edccef
s3:smbd: make use of smbXsrv_tcon for smb1
...
Pair-Programmed-With: Michael Adam <obnox@samba.org>
metze
2012-06-25 20:55:06 +02:00
Stefan Metzmacher
463b308f16
s3:smbd: make use of smbXsrv_tcon and smbXsrv_session for smb2
...
The removes the protocol specific smbd_smb2_session and
smbd_smb2_tcon.
Pair-Programmed-With: Michael Adam <obnox@samba.org>
metze
2012-06-25 20:55:06 +02:00
Rusty Russell
fc9b298761
util_tdb: move timeout chainlock variants from source3/lib/util/util_tdb.c
...
We're about to use them for dbwrap.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-06-22 07:35:17 +02:00
Michael Adam
b240406651
s3:move serverid_equal() to serverid.c
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-21 08:27:32 +02:00
Michael Adam
73b200064f
s3:util: rename procid_equal() to serverid_equal()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-21 08:27:32 +02:00
Michael Adam
0159344d4c
s3:util: remove (now) unused cluster_id_equal()
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-21 08:27:31 +02:00
Stefan Metzmacher
0d1f3c1363
s3:include: add START/END_PROFILE_STAMP()
...
This is needed when the profiling spans multiple functions.
metze
2012-06-20 12:58:58 +02:00
Stefan Metzmacher
e89150597a
Revert "s3-lib Remove unused sys_fcntl_long()"
...
This reverts commit 846a697e20478798288afb43cdb7a9f389a15c69.
This is still used in source3/smbd/oplock_irix.c
metze
2012-06-19 17:04:29 +02:00
Andrew Bartlett
b8815dc23d
lib/param: Create a seperate server role for "active directory domain controller"
...
This will allow us to detect from the smb.conf if this is a Samba4 AD
DC which will allow smarter handling of (for example) accidentially
starting smbd rather than samba.
To cope with upgrades from existing Samba4 installs, 'domain
controller' is a synonym of 'active directory domain controller' and
new parameters 'classic primary domain controller' and 'classic backup
domain controller' are added.
Andrew Bartlett
2012-06-15 09:18:33 +02:00
Stefan Metzmacher
d8b3687fcb
s3:smbd: remember the request_time on an incoming request
...
metze
2012-06-15 07:18:00 +02:00
Michael Adam
b27f88898a
s3:vfs: change files_struct.fnum from int to uint64_t
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Jun 15 05:22:41 CEST 2012 on sn-devel-104
2012-06-15 05:22:41 +02:00
Michael Adam
3309a52988
s3:lib: add a utility function "fsp_fnum_dbg" for logging the fnum of an fsp
...
This is to unify logging of an files_struct.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-15 03:28:14 +02:00
Michael Adam
b8e943e724
s3:smbd: change FNUM_FIELD_INVALID from -1 to 0
...
This is in preparation for changing the type of files_struct.fnum
to unit64_t.
This can safely be done, since all checks have been converted to
using FNUM_FIELD_INVALID and fsp->fnum is only ever set to either
FNUM_FIELD_INVALID or some i + FILE_HANDLE_OFFSET with i >= 0 and
FILE_HANDLE_OFFSET > 0.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-15 03:28:13 +02:00
Michael Adam
63bfc70a2a
s3:include: define FNUM_FIELD_INVALID - the invalid value for the fnum
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-15 03:28:13 +02:00
Volker Lendecke
93e950caf8
s3: Add cli_state->pw_nt_hash
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-12 10:48:15 +02:00
Volker Lendecke
2be5ace544
s3: Add user_auth_info->use_pw_nt_hash
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-12 10:48:15 +02:00
Volker Lendecke
6c13a46732
s3-libsmbclient: Add OptionUseNTHash
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-12 10:48:15 +02:00
Volker Lendecke
4fb283e70e
s3: Add CLI_FULL_CONNECTION_USE_NT_HASH
...
... as an indicator that the password supplied is the NT hash
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-12 10:48:15 +02:00
Volker Lendecke
3b63a6794a
S3: Add ntlmssp_set_password_hash
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-12 10:48:15 +02:00
Volker Lendecke
ae821929a0
s3-libsmbclient: Make SMBC_call_auth_fn static
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-06-12 10:48:15 +02:00
Michael Adam
1c01cb4510
s3:include: change lock_struct->fnum to uint64_t
...
Note: this changes the format of brlock.tdb!
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Jun 6 23:22:00 CEST 2012 on sn-devel-104
2012-06-06 23:21:59 +02:00
Michael Adam
fab660780a
s3:include: change lock_context->tid to uint32_t
...
Note: this changes for format of brlock.tdb!
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-06-06 19:37:14 +02:00
Michael Adam
4389097294
s3:include: change connection_struct->cnum to uint32_t
...
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-06-06 19:37:14 +02:00
Michael Adam
86f621488a
s3:include: change smb_request->tid to uint32_t
...
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-06-06 19:37:14 +02:00
Michael Adam
eb70aff2f5
s3:smb: change the value of TID_FIELD_INVALID from -1 to 0
...
This paves the way to change the tid/cnum types to systematic uint32_t.
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-06-06 19:37:14 +02:00
Michael Adam
ba1699463b
s3:smb: introduce a name TID_FIELD_INVALID for the invalid value for a cnum/tid
...
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-06-06 19:37:14 +02:00
Michael Adam
aa3a7de368
s3:connections: add a CNUM_OFFSET for mapping between cnum and the bitmap index
...
This moves the start of the range of valid cnum values up from 0 to CNUM_OFFSET
(currently 1), so that in a later step we can use 0 as invalid cnum value
instead of the current -1. This will allow us to change the type of cnum to
uint32_t from a mix of int and unsigned.
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-06-06 19:37:13 +02:00
Michael Adam
82a9d23186
s3:smb.h: fix a comment typo
2012-06-06 19:37:13 +02:00
Stefan Metzmacher
02d9ba6ee1
s3:smbd: change user_struct->vuid to uint64_t
...
Only sconn->smb1.sessions.next_vuid remains as uint16_t,
so that we do not generate larger values yet.
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jun 6 12:07:33 CEST 2012 on sn-devel-104
2012-06-06 12:07:33 +02:00
Stefan Metzmacher
2477c73b62
s3:smbd: let open_fake_file() take a uint64_t vuid
...
metze
2012-06-06 10:18:40 +02:00
Stefan Metzmacher
484cb4e43e
s3:printing: let print_spool_open() take a uint64_t vuid
...
metze
2012-06-06 10:18:40 +02:00
Stefan Metzmacher
c0e5cc0686
s3:include: change current_user->vuid to uint64_t
...
metze
2012-06-06 10:18:40 +02:00
Stefan Metzmacher
d4aa494654
s3:include: change smb_request->vuid to uint64_t
...
metze
2012-06-06 10:18:40 +02:00
Stefan Metzmacher
d45e0ddfcd
s3:include: move struct smb_request to vfs.h
...
metze
2012-06-06 10:18:40 +02:00
Stefan Metzmacher
37bfadf4a3
s3:include: change files_struct->vuid to uint64_t
...
metze
2012-06-06 10:18:40 +02:00
Stefan Metzmacher
5a260a1d58
s3:include: change connection_struct->vuid to uint64_t
...
metze
2012-06-06 10:18:40 +02:00
Stefan Metzmacher
defebd9e49
s3:includes: change vuid_cache_entry->vuid to uint64_t
...
metze
2012-06-06 10:18:40 +02:00
Stefan Metzmacher
36c7016cc0
s3:include: move sys_acl prototypes to smb_acls.h
...
metze
2012-06-06 10:18:39 +02:00
Stefan Metzmacher
bc39915f47
s3:smbd: move struct user_struct to globals.h
...
metze
2012-06-06 10:18:39 +02:00
Stefan Metzmacher
b742a75b37
s3:include: remove typedef user_struct
...
metze
2012-06-06 10:18:39 +02:00
Stefan Metzmacher
9e2e3708aa
s3:smbd: move forward declaration of struct aio_extra to smbd.h
...
metze
2012-06-06 10:18:39 +02:00
Stefan Metzmacher
9b5c2ca14c
s3:include: move some prototypes (e.g. smb_register_vfs) to vfs.h
...
These are called from vfs modules, which should not depend on smbd/proto.h
metze
2012-06-06 10:18:38 +02:00
Stefan Metzmacher
c44d2e934c
s3:include: remove unused forward declaration of deferred_open_record in smb.h
...
metze
2012-06-06 10:18:38 +02:00
Stefan Metzmacher
5306c18f2c
s3:smbd: move UCF_ defines to smbd.h
...
metze
2012-06-06 10:18:38 +02:00
Stefan Metzmacher
4a22dd61c0
s3:include: move struct smb_filename to vfs.h
...
metze
2012-06-06 10:18:38 +02:00
Stefan Metzmacher
22cfc8eca8
s3:include: move struct smb_file_time to vfs.h
...
metze
2012-06-06 10:18:38 +02:00
Stefan Metzmacher
5fc502c624
s3:include: move struct connection_struct (and sub structs) to vfs.h
...
metze
2012-06-06 10:18:38 +02:00
Stefan Metzmacher
f88d13b16f
s3:include: move struct stream_struct to vfs.h
...
metze
2012-06-06 10:18:38 +02:00
Stefan Metzmacher
b9500bd988
s3:include: move struct fd_handle/files_struct to vfs.h
...
metze
2012-06-06 10:18:38 +02:00
Stefan Metzmacher
f78cc3aca7
s3:includes: move union unid_t to vfs.h
...
metze
2012-06-06 10:18:38 +02:00