1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

4620 Commits

Author SHA1 Message Date
Volker Lendecke
fafb9ecc61 open_socket_out is always used with SOCK_STREAM, remove argument "type" 2009-01-03 19:22:06 +01:00
Volker Lendecke
b6138bf4f2 Fix retval of async_syscall_result_int 2009-01-03 19:07:57 +01:00
Volker Lendecke
27abf6731e struct async_req doesn't really need to carry an event_context 2009-01-03 19:07:57 +01:00
Volker Lendecke
aed8c7bfcf packet.h API: The callback is now responsible to talloc_free() "buf" 2009-01-02 22:11:50 +01:00
Stefan Metzmacher
8b81e7c7c6 Happy New Year!
metze
2009-01-02 09:45:14 +01:00
Jelmer Vernooij
08259c1c52 Add iconv_convenience argument to size functions. 2009-01-01 04:45:33 +01:00
Volker Lendecke
972295f80a Rename parent_dirname_talloc() to parent_dirname() 2008-12-31 19:33:25 +01:00
Volker Lendecke
9b79181f15 Remove unused function parent_dirname 2008-12-31 19:33:25 +01:00
Volker Lendecke
add3d572d0 Remove unused function get_numlist() 2008-12-31 19:33:24 +01:00
Volker Lendecke
ce2ff557bd Fix an ancient uninitialized variable read
The callers of open_file_ntcreate expect *psbuf to be filled correctly
2008-12-31 10:51:44 +01:00
Tim Prouty
cb5db966e3 s3 build: Revert previous patch to fix the build
888524623d broke the build.  I'm
reverting it for the short term, while I work on a better fix.
2008-12-30 18:51:16 -08:00
Tim Prouty
0cb430c22e s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 and s4 2008-12-30 16:19:42 -08:00
Tim Prouty
888524623d s3 build: Remove redundant #defines that are in idl generated headers
This fixes a series of samba3 build warnings in the merged build:
'error: "X" redefined', where X is one of the redundant #defines
2008-12-30 16:19:29 -08:00
Stefan Metzmacher
465176b7e2 s3:cluster: register the client connection via CTDB_CONTROL_TCP_ADD
This means we correctly pass IPv6 addresses too.
(CTDB_CONTROL_TCP_CLIENT was IPv4 only)

metze
2008-12-30 16:18:08 +01:00
Stefan Metzmacher
671469ae7e s3:passdb: add SAMU_BUFFER_V4 with no changes
The upgrade is required because of the followin TDBSAM_VERSION
upgrade.

metze
2008-12-29 21:10:49 +01:00
Stefan Metzmacher
0544734309 s3:passdb: make marshalling struct samu from and to a buffer more generic
This marshalling isn't specific to tdbsam and it's
ugly to have the related functions in two different files.

metze
2008-12-29 21:10:49 +01:00
Volker Lendecke
82a152fcf9 Add write_data_iov 2008-12-29 13:24:27 +01:00
Volker Lendecke
6251b97e02 Add sys_writev 2008-12-29 13:24:27 +01:00
Stefan Metzmacher
a255f9ce71 s3:dbwrap: fix dbwrap_store_uint32() to match dbwrap_store_int32()
All callers expect 0 an success and -1 on error.

metze
2008-12-29 09:05:15 +01:00
Volker Lendecke
9f31468bd3 Add async cli_write_andx and cli_pull 2008-12-19 23:16:25 +01:00
Volker Lendecke
fa5f11279b Add the cli_wct_ofs routine to calculate the offset for write&x 2008-12-19 18:12:44 +01:00
Volker Lendecke
ae0c6cff25 Remove the direct inbuf reference from construct_reply_common() 2008-12-19 18:08:47 +01:00
Volker Lendecke
1f04d07db0 Convert cli_request->outbuf to uint8_t 2008-12-19 17:47:30 +01:00
Volker Lendecke
398ef0fb85 For large smbwrite&x, we need more than 64k bcc 2008-12-19 16:13:27 +01:00
Volker Lendecke
4abdd3981e Pass "bytes_alignment" up through cli_request_send
This parameter makes smb_spice_chain add padding before the bytes field
2008-12-19 14:53:29 +01:00
Volker Lendecke
f87da49830 Make cli_negprot async 2008-12-19 10:50:52 +01:00
Volker Lendecke
bb8ca0fdbf Make cli_negprot return NTSTATUS instead of bool 2008-12-19 10:28:30 +01:00
Volker Lendecke
96a3d7be31 cli_negprot_send -> cli_negprot_sendsync 2008-12-19 10:28:20 +01:00
Günther Deschner
43d0a4813b s3-ntsvcs: remove last traces of hand-marshalled NTSVCS.
Guenther
2008-12-17 23:52:42 +01:00
Günther Deschner
934b90c17c s3-ntsvcs: remove old _PNP_GetDeviceList.
Guenther
2008-12-17 23:52:41 +01:00
Karolin Seeger
b6e7caebe4 s3/smb.h: Remove unused LDAP_SSL_ON.
LDAP_SSL_ON is not defined at all.
Ldaps can be used by specifying an ldaps URL using the "passdb backend"
parameter.

Karolin
2008-12-17 16:31:06 +01:00
SATOH Fumiyasu
4c3aea3f62 commit b520befe6f51644d20434add9864d7a2fa30aa2e
Author: SATOH Fumiyasu <fumiyas@osstech.co.jp>
Date:   Wed Dec 17 00:42:25 2008 +0900

    libsmbclient: Fix SIGBUS on non-x86 CPUs

    We must align the struct smbc_dirent in the struct
    SMBC_internal_data because the struct smbc_dirent
    has numeric values that require alignment.

Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
2008-12-16 12:20:40 -05:00
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
Volker Lendecke
cb4f8573ba Convert get_correct_cversion to use create_conn_struct
Jerry, please check!
2008-11-24 11:39:03 +01:00
Volker Lendecke
783ab0480b Convert move_driver_to_download_area to use create_conn_struct
This removes a use of struct current_user and the vuid

The become_user() here is unnecessary, within the spoolss handling code we have
switched to the authenticated pipe user anyway.

Jerry, please check!
2008-11-24 11:39:03 +01:00
Volker Lendecke
ed27d91068 Add auth_serversupplied_info to create_conn_struct
srvsvc needs it, as will printing
2008-11-23 22:41:59 +01:00
Jeremy Allison
97fb05c2c0 First part of fix for bug #5903 - vfs_streams_xattr breaks contents of the file.
Restructures parts of open code so that fsp must be allocated before calling
open_file_ntcreate(_internal). Also fix up file ref-counting inside files.c.
Jeremy.
2008-11-21 12:14:53 -08:00
Günther Deschner
afd57a16d8 s3-eventlog: move non rpc eventlog headers to own include file.
Guenther
2008-11-20 17:15:29 +01:00
Günther Deschner
f9d691d9d8 s3-ntsvcs: remove old hand-marshalling for ntsvcs getdevregprop.
Guenther
2008-11-19 23:25:33 +01:00
Steven Danneman
00c6271d5c Added ability to remove id mappings in wbinfo and libwbclient.
The idmap_tdb backend already provides an interface to remove existing id
mappings.  This commit plumbs that ability up through, winbindd, libwbclient,
and wbinfo.

Added new winbindd command:
        WINBINDD_REMOVE_MAPPING
Added new libwbclient interfaces:
        wbcRemoveUidMapping() and wbcRemoveGidMapping()
Added new wbinfo options:
        --remove-uid-mapping
        --remove-gid-mapping

Increased libwbclient version to 0.2
Increased winbind interface version to 20
2008-11-18 16:04:04 -08:00
Steven Danneman
6d59be1e6d Fix extended DN parse error when AD object does not have a SID.
Some AD objects, like Exchange Public Folders, can be members of Security
Groups but do not have a SID attribute.  This patch adds more granular return
errors to ads_get_sid_from_extended_dn().  Callers can now determine if a parse
error occured because of bad input, or the DN was valid but contained no SID.

I updated all callers to ignore SIDless objects when appropriate.

Also did some cleanup to the out paths of lookup_usergroups_memberof()
2008-11-18 13:02:21 -08:00
Jeremy Allison
d8df43e65d Fix bug #5900 reported by monyo@samba.gr.jp - vfs_readonly.so does not work.
Jeremy.
2008-11-17 14:13:20 -08:00
Günther Deschner
5b4140a997 svcctl: fill in SERVICE_CONTROL from s3.
Guenther
2008-11-17 13:18:00 +01:00
Bo Yang
a8722a190b i18n/l10n pam_winbind
Signed-off-by: Günther Deschner <gd@samba.org>
2008-11-13 12:43:58 +01:00
Volker Lendecke
5a33e906f6 Make "construct_reply_common" static 2008-11-08 10:42:29 +01:00
Volker Lendecke
8637dd1232 change CHECK_READ to use smb_request instead of inbuf 2008-11-08 10:42:28 +01:00
Volker Lendecke
87d4138d09 Converting notify.c to store a request, not an inbuf 2008-11-08 10:42:20 +01:00
Jeremy Allison
8b4b5c3a92 Add wrapper str_list_make_v3() to replace the old S3 behavior of
str_list_make(). From Dan Sledz <dan.sledz@isilon.com>:
In samba 3.2 passing NULL or an empty string returned NULL.
In master, it now returns a list of length 1 with the first string set
to NULL (an empty list).
Jeremy.
2008-11-06 18:53:00 -08:00
Stefan Metzmacher
6815fd1730 s3: rpc: let serverinfo_to_SamInfo3() work with no pipe_session_key
metze
2008-11-06 21:39:14 +01:00
Volker Lendecke
6b4d48c4bf Convert blocking.c to store a smb_request instead of just inbuf 2008-11-04 20:52:07 +01:00
Volker Lendecke
e4897a5376 Add construct_reply_common_req wrapper
The goal is to remove the remaining direct calls to construct_reply_common.
2008-11-04 20:52:06 +01:00
Jeremy Allison
bfc59f63f3 Pass all of RAW-ACLS except for inheritence. Working on that next.
Jeremy.
2008-11-04 01:34:08 -08:00
Stefan Metzmacher
4f25c77924 s3: proto.h: add missing sys_[g|s]et_quota_vfs() prototypes
metze
2008-11-03 18:02:03 +01:00
Jelmer Vernooij
c5a70cab25 Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-11-03 00:15:27 +01:00
Volker Lendecke
7808a2594c Remove some inbuf references by adding "cmd" to smb_request 2008-11-02 23:17:01 +01:00
Volker Lendecke
c2a280ac63 Pass smb_request to send_trans_reply to match with send_[nt]trans[2]_reply 2008-11-02 21:20:41 +01:00
Jelmer Vernooij
3fda6c5c2a Remove global_loadparm stub in Samba 3 as it's no longer used. 2008-11-02 18:28:06 +01:00
Jelmer Vernooij
b327c0a2da Samba3: Remove more configure tests already done by libreplace. 2008-11-02 17:39:41 +01:00
Jelmer Vernooij
41e44d6958 Remove MIN, MAX, slprintf, vslprintf defines already provided by libreplace. 2008-11-02 17:29:39 +01:00
Volker Lendecke
2bab73a18d Remove a bunch of direct inbuf references by adding "vwv" to smb_request 2008-11-02 16:58:19 +01:00
Jelmer Vernooij
ff36c52d8c Remove another use of global_loadparm.
Eventually, we should move some of these parameters into a separate
struct (perhaps into smb_transport_options?), to avoid the long lists of
parameters.
2008-11-02 16:07:28 +01:00
Volker Lendecke
af7cf4f992 Remove some direct inbuf references by adding smbreq_bufrem 2008-11-02 09:22:40 +01:00
Volker Lendecke
a31fab8156 Simplify params of srvstr_pull_buf_talloc()
Now that "req" is available everywhere, use it. Rename srvstr_pull_buf_talloc()
to srvstr_pull_req()
2008-11-02 09:22:40 +01:00
Volker Lendecke
2bd5ac86ff Add srvstr_get_path_req[_wcard] 2008-11-02 09:22:40 +01:00
Volker Lendecke
334d590b5e The non-talloc versions of srvstr_pull are not longer needed 2008-11-01 23:26:21 +01:00
Jelmer Vernooij
4b74b22c4d Remove IS_DOT and IS_DOTDOT macros, already provided by libreplace or
the system.
2008-11-01 20:46:04 +01:00
Jelmer Vernooij
e5081d6dad Move ABS() to libutil. 2008-11-01 20:44:12 +01:00
Volker Lendecke
7bdb571ec4 Remove a bunch of direct inbuf references by adding "buf" to smb_request 2008-11-01 19:41:08 +01:00
Volker Lendecke
ab0561f3c3 Apply some const to get_lock_*() 2008-11-01 19:41:07 +01:00
Volker Lendecke
63da08d00f Apply some const to np_write() 2008-11-01 19:41:07 +01:00
Volker Lendecke
7f9d6f80ef Add a "buflen" struct member to smb_request
This removes some explicit inbuf references and also removes a pointless check
in reply_echo. The buflen can never be more than 64k, this is just a 16 bit
value.
2008-11-01 19:41:07 +01:00
Jelmer Vernooij
7ec720af71 Use shared doserr.c. 2008-11-01 17:28:16 +01:00
Jelmer Vernooij
f929488d58 Remove duplicate prototypes. 2008-11-01 04:59:16 +01:00
Jelmer Vernooij
31fa08dcbd Merge branch 'master' of /home/jelmer/samba3
Conflicts:
	lib/replace/README
	lib/replace/libreplace.m4
	lib/replace/replace.c
	source3/include/proto.h
	source3/lib/system.c
2008-11-01 04:02:47 +01:00
Jelmer Vernooij
5a56c0adf2 Use dup2() replacement from libreplace. 2008-11-01 03:58:14 +01:00
Jelmer Vernooij
7b186c48d3 Remove sys_dl*() - stubs are already provided by libreplace. 2008-11-01 03:49:49 +01:00
Jelmer Vernooij
6a2caa34b2 Remove sys_chroot() - libreplace already provides an alternative. 2008-11-01 03:46:09 +01:00
Jelmer Vernooij
a6d537bb6c Move sys_realpath() to libreplace. 2008-11-01 03:42:27 +01:00
Jelmer Vernooij
38d67363ac Move sys_lchown() to libreplace. 2008-11-01 03:39:20 +01:00
Jelmer Vernooij
e8cda43e17 Move sys_symlink() to libreplace. 2008-11-01 03:35:58 +01:00
Jelmer Vernooij
dbda9adfaf Move sys_readlink() to libreplace. 2008-11-01 03:33:39 +01:00
Jelmer Vernooij
bbbe6ab722 Move sys_link to libreplace. 2008-11-01 03:30:47 +01:00
Jelmer Vernooij
c165770f94 Merge branch 'master' of git://git.samba.org/samba 2008-11-01 03:15:59 +01:00
Jelmer Vernooij
2c81fd70ca proto.h: Remove prototypes already in other header files. 2008-11-01 03:15:10 +01:00
Jelmer Vernooij
9de80e7abc Samba3: Include util.h header file rather than having custom prototypes. 2008-11-01 03:14:43 +01:00
Jeremy Allison
54eaf2de74 Get closer to passing S4 RAW-ACLs.
Jeremy.
2008-10-31 18:04:53 -07:00
Günther Deschner
84cc8f5d11 s3-accessmask: re-run make samba3-idl and remove duplicate copies.
Guenther
2008-11-01 01:41:21 +01:00
Günther Deschner
66993ab03a s3-samr: remove duplicate copies of Alias Object specific access rights.
Guenther
2008-10-31 21:14:27 +01:00
Günther Deschner
5e5edbe761 s3-samr: remove duplicate copies of Group Object specific access rights.
Guenther
2008-10-31 21:14:27 +01:00
Günther Deschner
f126371f17 s3-samr: remove duplicate copies of Domain Object specific access rights.
Guenther
2008-10-31 21:14:27 +01:00
Günther Deschner
29d27297d0 s3-samr: remove duplicate copies of SAM user specific access rights.
Guenther
2008-10-31 21:14:26 +01:00
Günther Deschner
700cece822 s3-samr: remove duplicate copies of SAM server specific access rights.
Guenther
2008-10-31 21:14:26 +01:00
Jeremy Allison
8344e94574 Unify se_access_check with the S4 code. Will make
calculation of SEC_FLAG_MAXIMUM_ALLOWED much easier
for files.
Jeremy.
2008-10-31 10:51:45 -07:00
Günther Deschner
7f8bc6a2d9 errors: share dcerpc error function.
Guenther
2008-10-31 12:42:09 +01:00
Jeremy Allison
8c1a90c2e3 Start moving us closer to passing S4 RAW-ACL test using the vfs_acl_xattr module. Inheritance fails at the moment though.
Jeremy.
2008-10-30 16:13:03 -07:00
Jeremy Allison
7c53ffea28 Allow a new file to inherit the Windows ACL from its parent.
Now to do the same for directories.
Jeremy.
2008-10-29 13:27:14 -07:00
Volker Lendecke
7bea6684c2 Add proxied named pipe support
This is a central piece of the "merged build" thing: Forward named pipes from
samba3 to samba4. This patch is not finished yet, as we will have to forward
the smb-level authentication information to samba4, but I'm pushing this patch
already to demonstrate the implementation without clutter.

It adds an intermediate parameter

np:proxy = srvsvc samr winreg wkssvc ... and so on

that states which of the pipes should be forwarded to the s4 unix domain socket
DEFAULT. The parameter is intermediate because once we have a proper endpoint
mapper implementation, this information will be retrieved out of a database.

If anybody wants to try this, do the merged build and configure s4 with

server services = samba3_smb, rpc, nbt, wrepl, ldap, cldap, kdc, drepl
samba3:smbd = /data/inst/sbin/smbd

and s3 with

auth methods = guest netlogond
np:proxy = srvsvc samr winreg wkssvc netlogon ntlsa ntsvcs lsass lsarpc netdfs \
rpcecho initshutdown epmapper svcctl eventlog drsuapi

Then run rpcclient against samba4. It will fork s3, which authenticates against
s4, and then forwards the rpc requests to s4.

Volker
2008-10-25 15:42:51 +02:00
Volker Lendecke
1ad54998a9 Add str_list_check[_ci] to s3's proto.h
Jelmer, when I include lib/util/util.h into some s3 file I get errors, this is
why I put those prototypes here as a workaround. Might be fixed differently
later.
2008-10-25 13:50:25 +02:00
Volker Lendecke
ff211be696 Remove "pipe_handle_offset" -- pipes now use "struct files_struct" 2008-10-25 12:09:58 +02:00
Jelmer Vernooij
ea474647f8 Revert Samba3 back to using its own charset handling code. 2008-10-24 16:05:15 +02:00
Jelmer Vernooij
56a0b035c6 Remove more uses of global_loadparm. 2008-10-24 14:31:16 +02:00
Günther Deschner
78a85f9e96 svcctl: move some non-rpc related bits out of rpc_svcctl.h.
Guenther
2008-10-24 00:06:07 +02:00
Jelmer Vernooij
ce0ac322b4 Fix prototype for set_sockaddr_port. 2008-10-23 23:20:50 +02:00
Tim Prouty
0b68762af7 Fix "parameter has incomplete type" build warning.
When libcli-util was moved to the top level
(3be0f6ea56) it introduced a build
warning.  Since ndr_map_error2ntstatus depends on the definition of
enum ndr_err_code and libndr.h can't be easily included in error.h, I
moved the definition of enum ndr_err_code to libndr.h.

This also eliminates the need for the duplicate definition in proto.h
2008-10-23 12:21:44 -07:00
Jelmer Vernooij
fe36fe8c3e Use common net utility code (address and sockaddr manipulation). 2008-10-23 20:41:15 +02:00
Jelmer Vernooij
d6a5476ee7 Use sockaddr_storage only where we rely on the size, use sockaddr
otherwise (to clarify we can also pass in structs smaller than
sockaddr_storage, such as sockaddr_in).
2008-10-23 19:53:15 +02:00
Jelmer Vernooij
c17898db4e Merge branch 'master' of ssh://git.samba.org/data/git/samba 2008-10-23 18:50:34 +02:00
Jelmer Vernooij
81fabeff2d Use libutil genrand. 2008-10-23 18:46:35 +02:00
Günther Deschner
f36ffa7681 s3-build: remove duplicate svcctl bits and re-run make samba3-idl.
Guenther
2008-10-23 18:34:57 +02:00
Jelmer Vernooij
cf659fa4fe Import talloc_stack into util library. 2008-10-23 17:27:30 +02:00
Jelmer Vernooij
44b728958a Use common error definitions. 2008-10-23 15:35:21 +02:00
Günther Deschner
527d797476 s3-asn1/spnego: use OIDs including dots.
Guenther
2008-10-22 21:37:36 +02:00
Günther Deschner
d9f1fff5b3 s3: use shared asn1 code.
Guenther
2008-10-22 21:37:36 +02:00
Günther Deschner
cef97c2459 s3-spnego: move spnego defines to spnego.h
Guenther
2008-10-22 21:37:36 +02:00
Jelmer Vernooij
ca2d23e048 Remove unused header file. 2008-10-22 17:00:49 +02:00
Jeremy Allison
4e9db0b100 Cope with MAXIMUM_ALLOWED_ACCESS requests when opening handles.
Jeremy.
2008-10-21 18:05:48 -07:00
Jelmer Vernooij
d36edccc00 Merge branch 'master' of git://git.samba.org/samba
Conflicts:
	source3/include/proto.h
2008-10-20 21:35:10 +02:00
Jelmer Vernooij
2c1b1255c2 Add source4/ to include path because librpc/gen_ndr is still in source?/ 2008-10-20 21:33:41 +02:00
Jelmer Vernooij
7498f9a9d8 Add missing prototypes for samba3-specific libndr/util.c 2008-10-20 19:51:07 +02:00
Günther Deschner
4b59ecb903 s3-build: no need to duplicate generated ndr_ prototypes.
Guenther
2008-10-20 19:47:00 +02:00
Günther Deschner
c3f3271b82 s3-build: no need to duplicate generated srv_ prototypes.
Guenther
2008-10-20 19:46:44 +02:00
Jelmer Vernooij
d59b2472f4 Include generated header files rather than using manually written
prototypes.
2008-10-20 19:35:55 +02:00
Jelmer Vernooij
4a8c05a91b Remove unused macro CONST_ADD. 2008-10-20 16:52:00 +02:00
Jelmer Vernooij
05a0ccadb0 Remove unused define for crypt (now in libreplace). 2008-10-20 16:46:19 +02:00
Jelmer Vernooij
a8707a43d0 Regenerate pidl output. 2008-10-20 12:19:01 +02:00
Jelmer Vernooij
e09c0c1185 Merge branch 'master' of ssh://git.samba.org/data/git/samba into crypt 2008-10-19 14:27:08 +02:00
Volker Lendecke
ded09b28de Inline the once-used macro "init_dfsroot" 2008-10-19 11:36:32 +02:00
Jelmer Vernooij
2fc058bdb0 Make generate_random_buffer signature match that of lib/util. 2008-10-19 10:16:21 +02:00
Jelmer Vernooij
7275952568 Add TALLOC_CTX pointer to generate_random_str(), for consistency with
Samba 4.
2008-10-19 10:05:48 +02:00
Jelmer Vernooij
b1a1fbcbfb Remove defines for QSORT_CAST, already provided by libreplace. 2008-10-19 09:53:18 +02:00
Jelmer Vernooij
0742635355 Simplify SIG_ATOMIC_T define, since sig_atomic_t is always provided by
libreplace.
2008-10-19 09:51:26 +02:00
Jelmer Vernooij
5380d43d3b Remove duplicate macro definitions (already defined in libutil/attr.h) 2008-10-19 09:47:45 +02:00
Jelmer Vernooij
2c5221ef7a Use attr.h rather than having local defines for GCC attributes. 2008-10-18 18:50:37 +02:00
Jelmer Vernooij
33032d591f Move ufc to libreplace. 2008-10-18 17:49:41 +02:00
Jelmer Vernooij
f3f9446ec1 Rename hex_encode to hex_encode_talloc,for consistency with samba 4 and heimdal. 2008-10-18 16:16:57 +02:00
Jelmer Vernooij
89c9545430 Use str_list_equal() rather than str_list_compare(). 2008-10-18 15:56:07 +02:00
Jelmer Vernooij
b3b6d8f3f9 Fix const, dupes. 2008-10-18 15:00:18 +02:00
Jelmer Vernooij
2d89b52be8 Use separate make variables for libutil and libcrypto. 2008-10-18 14:28:40 +02:00
Jelmer Vernooij
519458a2fa Use shared util.c. 2008-10-18 14:27:13 +02:00
Jelmer Vernooij
4083247a48 Remove empty file. 2008-10-18 14:15:29 +02:00
Jelmer Vernooij
dea4db9611 Remove obsolete comment about bool. 2008-10-18 14:15:25 +02:00
Jelmer Vernooij
fb1a93e666 Remove defines already provided by the system or libreplace. 2008-10-18 14:15:20 +02:00
Jelmer Vernooij
3189d14152 Use the new memory macro file from Samba 3. 2008-10-18 14:07:51 +02:00
Jeremy Allison
7c94c874c4 Unify access checks for lsa server functions.
Jeremy.
2008-10-17 15:24:15 -07:00
Günther Deschner
e31b9e0f66 s3: remove old marshalling for SVCCTL_QUERY_SERVICE_CONFIG.
Guenther
2008-10-16 09:54:50 +02:00
Günther Deschner
6a97b4147c s3: use IDL generated rpc for _svcctl_QueryServiceConfigW.
Guenther
2008-10-16 09:54:49 +02:00
Günther Deschner
d2b836e19a s3: remove rpccli_svcctl_query_config.
Guenther
2008-10-16 09:54:49 +02:00
Günther Deschner
018bf57c27 s3-build: re-run make samba3-idl.
Guenther
2008-10-15 19:44:48 +02:00
Günther Deschner
911501bb8b s3-build: re-run make samba3-idl.
Guenther
2008-10-15 17:11:27 +02:00
Jelmer Vernooij
ec63a6f5ad Merge branch 'master' of git://git.samba.org/samba 2008-10-15 16:16:01 +02:00
Günther Deschner
bf38baba6d s3-build: re-run make samba3-idl.
Guenther
2008-10-15 16:14:20 +02:00