Jelmer Vernooij
2be233ebe3
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-12-15 23:19:49 +01:00
Michael Adam
91c543f0b5
s3:loadparm: rename lp_local_ptr() to lp_local_ptr_by_snum()
...
Michael
2008-12-15 14:16:06 +01:00
Jelmer Vernooij
573441ff9b
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2008-12-14 17:17:55 +01:00
Volker Lendecke
daeb3a190d
Remove the global "cmdline_auth_info" from source3/lib/util.c
...
This involves changing all our clients, that's why it's so large.
2008-12-14 14:00:43 +01:00
Volker Lendecke
31f157a04b
Move 128 bytes from the data to the text segment
2008-12-14 13:13:37 +01:00
Stefan Metzmacher
895c40d03a
s3:libsmb/namequery.c: add saf_join_store() function
...
saf_join_store() should be called after a successful
domain join, the affinity to the dc used at join time
has a larger ttl, to avoid problems with delayed replication.
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit 80e74a27c5
)
2008-12-13 11:42:35 +01:00
Stefan Metzmacher
588f5aae66
s3: correctly detect if the current dc is the closest one
...
ads->config.tried_closest_dc was never set.
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Günther Deschner <gd@samba.org>
(cherry picked from commit dfe5b00db3
)
2008-12-13 11:42:22 +01:00
Günther Deschner
fb6803119c
s3: remove duplicate prototypes in proto.h.
...
Guenther
2008-12-13 00:26:13 +01:00
Jelmer Vernooij
cd25b6245f
Move dom_sid to the Samba 3 IDL file, remove the old definition.
2008-12-12 20:20:01 +01:00
Volker Lendecke
1c6a87604f
Fix the build
...
Crap, too many trees and no instant, infinitely fast rebuild
Signed-off-by: Michael Adam <obnox@samba.org>
2008-12-11 00:00:50 +01:00
Volker Lendecke
7ad9676864
Revert "Fix the build"
...
This reverts commit c044b09572
.
2008-12-10 23:13:34 +01:00
Volker Lendecke
c044b09572
Fix the build
...
Crap, too many trees and no instant, infinitely fast rebuild
2008-12-10 19:02:11 +01:00
Volker Lendecke
21b9dec990
Pass the get_real_filename operation through the VFS
...
This is done to help file systems that can tell us about the real upper/lower
case combination given a case-insensitive file name. The sample I will soon
push is the gpfs module (recent gpfs has a get_real_filename function), others
might have a similar function to help alleviate the 1million files in a single
directory problem.
Jeremy, please comment!
Thanks,
Volker
2008-12-10 18:05:26 +01:00
Günther Deschner
b431406357
s3-netlogon: fix netlogon server build.
...
Guenther
2008-12-10 11:58:28 +01:00
Tim Prouty
7b9f6dda13
s3: [3/3]: Fix a delete on close divergence from windows and the associated torture test
...
This third patch cleans up by removing all of the code that is made
obsolete by the first patch. It should cause no functional changes.
2008-12-09 18:06:49 -08:00
Tim Prouty
2053f77b3c
s3: Refactor calculating path from relative_fid into a separate function
2008-12-09 14:51:48 -08:00
Tim Prouty
6153f622af
s3: Refactor getting sec_info from a security_descriptor into separate function
2008-12-09 14:51:48 -08:00
Tim Prouty
d5d9d3dc0e
s3: Make a few open utility functions non-static
...
This allows vfs modules that implement SMB_VFS_CREATE_FILE to access
some of the useful utility functions.
2008-12-09 14:51:47 -08:00
Todd Stecher
9985898e94
s3: Add support for access based share enumeration
2008-12-08 22:23:16 -08:00
Volker Lendecke
7fbb64d726
Simplify async programming a bit with helper routines
...
Introduce async_req_is_error() and async_req_simple_recv()
2008-12-08 22:09:33 +01:00
Volker Lendecke
f9aa69ae35
Streamline the async_sock API a bit
2008-12-08 22:09:33 +01:00
Volker Lendecke
ed25c6c287
Add a "bytes_padding" parameter to smb_splice_chain
...
For example open&x and write&x needs the bytes to be aligned relative to the
SMB header. In particular for write&x we should not have to move stuff around.
2008-12-08 22:09:33 +01:00
Volker Lendecke
f0bb53dd0f
Factor out smb_splice_chain(), to be used by chain_reply() in smbd
2008-12-08 22:09:33 +01:00
Jeremy Allison
3b6e5e6cc8
Fix lp_socket_address() prototype.
...
Jeremy.
2008-12-05 14:04:51 -08:00
Günther Deschner
b883bcd4ff
s3: store user session key in cli_rpc_pipe_open_noauth().
...
Guenther
2008-12-05 14:27:03 +01:00
Günther Deschner
b8204ffd03
s3-samr: fix samr callers of samr_UserInfo18.
...
Guenther
2008-12-05 14:27:03 +01:00
Jeremy Allison
15e1fd7c54
Fix bug #1254 - write list not working under share-level security
...
A somewhat more elegant fix than I could use for 3.2.x or 3.0.x.
Turns out the only part of check_user_ok() that needs to change
for share level security is the VUID cache pieces, so I can just
always use check_user_ok() for all lp_security() cases.
Jeremy
2008-12-04 11:20:57 -08:00
Tim Prouty
5844012285
s3: Change SMB_VFS_CREATE_FILE to take a create_file_flags argument
...
This replaces the is_dos_path bool with a more future-proof argument.
The next step is to plumb INTERNAL_OPEN_ONLY through this flag instead
of overridding the oplock_request.
2008-12-03 17:51:44 -08:00
Tim Prouty
f79aae70dd
s3: Simplify the create_file_unix_path->open_file_ntcreate path
...
Also removed open_file_ntcreate/open_file from proto.h so they can no
longer be called directly.
2008-12-03 17:51:35 -08:00
Tim Prouty
2caa4fe08e
s3: Modify direct callers of create_file_unix_path to call SMB_VFS_CREATE_FILE
2008-12-03 17:51:07 -08:00
Tim Prouty
f995a7af2a
s3: Add new "is_dos_path" argument to SMB_VFS_CREATE_FILE
...
Now unix paths can be differentiated from windows paths so the
underlying create_file implementations can convert paths correctly.
2008-12-03 17:50:37 -08:00
Tim Prouty
f38d7f20a8
s3: Add SMB_VFS_CREATE_FILE to the vfs layer
...
Modify all callers of create_file to go through SMB_VFS_CREATE_FILE
2008-12-03 17:50:17 -08:00
Tim Prouty
1eb743ab8e
s3: Change sockaddr util function names for consistency
...
Also eliminates name conflicts with OneFS system libraries
2008-12-03 10:40:20 -08:00
Volker Lendecke
25e7b21121
Attempt to fix a build failure on AIX
2008-12-02 09:51:46 +01:00
Günther Deschner
61a6b49e48
s3-passdb: remove unused (now samr.idl) ACCT_NT/LM_PWD_SET flags.
...
Guenther
2008-12-02 00:52:39 +01:00
Günther Deschner
798c4b3e6a
s3-samr: use samr_DomainServerState in client tools.
...
Guenther
2008-12-02 00:37:39 +01:00
Stefan Metzmacher
0b169748ce
s3:vfs: fix FCHMOD_ACL macros
...
metze
2008-12-01 14:21:34 -08:00
Steven Danneman
7bd7846df7
Make nt4_compatible_acls() non-static for use by VFS ACL modules.
2008-11-30 21:04:19 -08:00
Michael Adam
757a1f5132
s3:winbindd/nss_info: change nss_map_{to|from}_alias to take nss_domain_entry
...
instead of just the domain name
Michael
2008-12-01 04:37:20 +01:00
Volker Lendecke
8fc15ab96d
remove the explicit mem_ctx from ntlmssp_state, use the state itself
2008-11-30 17:15:19 +01:00
Volker Lendecke
d253a367ef
fix nonempty blank lines
2008-11-30 17:15:19 +01:00
Günther Deschner
143097d71c
s3-samr: add init_samr_user_info25 and init_samr_user_info26.
...
Guenther
2008-11-28 14:16:51 +01:00
Günther Deschner
4d7485df96
s3-samr: fix init_samr_user_info{23,24} callers.
...
Guenther
2008-11-28 13:55:38 +01:00
Volker Lendecke
2bb90b7a88
Remove "conn" parameter from np_open, smb_request contains it
2008-11-28 10:06:32 +01:00
Volker Lendecke
9a3be6f0f8
Move cli_trans_oob to lib/util.c
...
Rename it to trans_oob, it will be used in the server routines.
2008-11-28 08:24:37 +01:00
Günther Deschner
e09f658be7
s3-samr: add init_samr_user_info5.
...
Guenther
2008-11-27 18:27:26 +01:00
Volker Lendecke
f340ed1348
Fix nonempty blank lines
2008-11-24 11:39:03 +01:00
Volker Lendecke
907f126d3e
Get rid of pipes_struct->pipe_user, we have server_info now --- YESSS!
2008-11-24 11:39:03 +01:00
Volker Lendecke
6f840dd678
Remove unused make_connection_with_chdir()
2008-11-24 11:39:03 +01:00
Volker Lendecke
c25f5c778a
Convert delete_driver_files to use create_conn_struct
...
Jerry, please check!
2008-11-24 11:39:03 +01:00