Günther Deschner
bff54b90c3
util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.
...
Guenther
2009-05-29 13:49:58 +02:00
Jeremy Allison
9df85a9374
Make cli_posix_chown()/cli_posix_chmod() async.
...
Jeremy.
2009-05-28 16:15:09 -07:00
Jeremy Allison
656e86d5fa
Make cli_posix_stat() async.
...
Jeremy.
2009-05-28 13:32:00 -07:00
Jeremy Allison
d74e42e0ec
Make getfacl async.
...
Jeremy.
2009-05-28 13:05:50 -07:00
Volker Lendecke
0dbecbbee5
Make sid_binstring & friends take a talloc context
2009-05-28 11:33:21 +02:00
Jeremy Allison
bccc7ee2c6
Add cli_posix_readlink() and a torture test for it.
...
Jeremy.
2009-05-27 21:51:15 -07:00
Jeremy Allison
f55c7614bd
Add aync POSIX hardlink and symlink and torture test for them.
...
Missing call cli_readlink() is next.
Jeremy.
2009-05-27 17:28:23 -07:00
Marc VanHeyningen
a4887e250b
s3: Allow child processes to exit gracefully if we are out of fds
...
When we run out of file descriptors for some reason, every new
connection forks a child that immediately panics causing smbd to
coredump. This seems unnecessarily harsh; with this code change we
now catch that error and merely log a message about it and exit
without the core dump.
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-05-27 13:16:17 -07:00
Volker Lendecke
49ca690b4b
Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STAT
...
This patch introduces
struct stat_ex {
dev_t st_ex_dev;
ino_t st_ex_ino;
mode_t st_ex_mode;
nlink_t st_ex_nlink;
uid_t st_ex_uid;
gid_t st_ex_gid;
dev_t st_ex_rdev;
off_t st_ex_size;
struct timespec st_ex_atime;
struct timespec st_ex_mtime;
struct timespec st_ex_ctime;
struct timespec st_ex_btime; /* birthtime */
blksize_t st_ex_blksize;
blkcnt_t st_ex_blocks;
};
typedef struct stat_ex SMB_STRUCT_STAT;
It is really large because due to the friendly libc headers playing macro
tricks with fields like st_ino, so I renamed them to st_ex_xxx.
Why this change? To support birthtime, we already have quite a few #ifdef's at
places where it does not really belong. With a stat struct that we control, we
can consolidate the nanosecond timestamps and the birthtime deep in the VFS
stat calls.
At this moment it is triggered by a request to support the birthtime field for
GPFS. GPFS does not extend the system level struct stat, but instead has a
separate call that gets us the additional information beyond posix. Without
being able to do that within the VFS stat calls, that support would have to be
scattered around the main smbd code.
It will very likely break all the onefs modules, but I think the changes will
be reasonably easy to do.
2009-05-26 17:48:23 +02:00
Jeremy Allison
000da55dd9
Make cli_posix_open() and cli_posix_mkdir() async.
...
Jeremy.
2009-05-20 18:31:36 -07:00
Tim Prouty
c1a21d085d
s3: Change unix_convert (and its callers) to use struct smb_filename
...
This is the first of a series of patches that change path based
operations to operate on a struct smb_filename instead of a char *.
This same concept already exists in source4.
My goals for this series of patches are to eventually:
1) Solve the stream vs. posix filename that contains a colon ambiguity
that currently exists.
2) Make unix_convert the only function that parses the stream name.
3) Clean up the unix_convert API.
4) Change all path based vfs operation to take a struct smb_filename.
5) Make is_ntfs_stream_name() a constant operation that can simply
check the state of struct smb_filename rather than re-parse the
filename.
6) Eliminate the need for split_ntfs_stream_name() to exist.
My strategy is to start from the inside at unix_convert() and work my
way out through the vfs layer, call by call. This first patch does
just that, by changing unix_convert and all of its callers to operate
on struct smb_filename. Since this is such a large change, I plan on
pushing the patches in phases, where each phase keeps full
compatibility and passes make test.
The API of unix_convert has been simplified from:
NTSTATUS unix_convert(TALLOC_CTX *ctx,
connection_struct *conn,
const char *orig_path,
bool allow_wcard_last_component,
char **pp_conv_path,
char **pp_saved_last_component,
SMB_STRUCT_STAT *pst)
to:
NTSTATUS unix_convert(TALLOC_CTX *ctx,
connection_struct *conn,
const char *orig_path,
struct smb_filename *smb_fname,
uint32_t ucf_flags)
Currently the smb_filename struct looks like:
struct smb_filename {
char *base_name;
char *stream_name;
char *original_lcomp;
SMB_STRUCT_STAT st;
};
One key point here is the decision to break up the base_name and
stream_name. I have introduced a helper function called
get_full_smb_filename() that takes an smb_filename struct and
allocates the full_name. I changed the callers of unix_convert() to
subsequently call get_full_smb_filename() for the time being, but I
plan to eventually eliminate get_full_smb_filename().
2009-05-20 17:40:15 -07:00
Aravind Srinivasan
1718e803dc
s3: Always allocate memory in dptr_ReadDirName
...
This is a follow up to 69d61453df
to
adjust the API to allow the lower layers allocate memory. Now the
memory can explicitly be freed rather than relying on talloc_tos().
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-05-18 21:50:07 -07:00
Jeremy Allison
459dc8f39c
Change access_check_samr_object -> access_check_object.
...
Make map_max_allowed_access global. Change lsa_get_generic_sd
to add Everyone:LSA_POLICY_READ|LSA_POLICY_EXECUTE, not just
LSA_POLICY_EXECUTE.
Jeremy.
2009-05-18 15:44:03 -07:00
Volker Lendecke
22085c59cb
Add "file_walk_table" to do stuff with all open files
2009-05-18 10:42:22 +02:00
Simo Sorce
4112bb2428
Move smb_create_user() in samsync
...
It is not used anywhere else, so make it also static and remove
it from proto.h
2009-05-16 15:30:48 -04:00
Günther Deschner
dccecdf338
s3-privileges: add privilege_delete_account().
...
Guenther
2009-05-16 01:27:51 +02:00
Stefan Metzmacher
b9f3a78169
s3:libsmb: move read_smb_send/recv() static in async_smb.c
...
metze
2009-05-13 18:27:50 +02:00
Michael Adam
a04bac7135
s3:proto.h: remove old param/params.c prototype
...
Michael
2009-05-12 08:41:00 +02:00
Günther Deschner
f05d888d7a
s3-samr: let set_user_info_16 and 20 follow the same pattern as all other levels.
...
Guenther
2009-05-08 00:41:40 +02:00
Günther Deschner
f93f713898
s3-samr: support some more info levels in samr_SetUserInfo calls.
...
Guenther
2009-05-08 00:41:40 +02:00
Volker Lendecke
d52b0a25ad
Make cli_tcon_andx chainable
2009-05-07 16:37:54 +02:00
Volker Lendecke
b35967edba
Make cli_session_setup_guest chainable
2009-05-07 16:37:54 +02:00
Jeremy Allison
606edf0f35
Make cli_setatr async.
...
Jeremy.
2009-05-06 16:13:42 -07:00
Jeremy Allison
512879a69b
Make cli_setattrE async.
...
Jeremy.
2009-05-06 15:07:05 -07:00
Günther Deschner
9966541f89
s3-printing: simplify print_queue helper functions and return WERROR.
...
Guenther
2009-05-06 10:19:04 +02:00
Jeremy Allison
4cbd0c77e4
Make cli_getatr() async.
...
Jeremy.
2009-05-05 20:59:22 -07:00
Jeremy Allison
e091fdc565
Make cli_getattrE async.
...
Jeremy.
2009-05-05 16:28:44 -07:00
Volker Lendecke
5b7b47f015
Add getaddrinfo_send/recv
2009-05-01 12:30:59 +02:00
Volker Lendecke
8cf75770cf
Add fncall_send/recv
2009-05-01 12:30:59 +02:00
Jeremy Allison
f3af298e5b
Cause cli_close to return an NTSTATUS.
...
Jeremy.
2009-04-30 16:57:42 -07:00
Jeremy Allison
8cf78ff553
Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.
...
Convert all uses of cli_open(), cli_nt_createXXX to NTSTATUS versions.
This is smaller than it looks, it just fixes a lot of old code.
Next up, ensure all cli_XX functions return NTSTATUS.
Jeremy.
2009-04-30 15:26:43 -07:00
Jeremy Allison
370e7209db
Make cli_unlink async.
...
Jeremy.
2009-04-29 18:26:02 -07:00
Jeremy Allison
edd25980b0
More async calls in libsmb/clifile.c
...
Jeremy.
2009-04-29 10:48:16 -07:00
Michael Adam
077bcc1125
s3:smbd/service: switch load_registry_service/shares to use loadparm routines
...
instead of reading the registry directly with tdb and activating the
configure options by hand.
This eliminates the need for repeating checks done in loadparm.
For instance it disables registry shares without path in the server
as is the case with text based shares.
Michael
2009-04-29 02:20:19 +02:00
Michael Adam
fb3b657612
s3:loadparm: refactor process_registry_service out or process_registry_globals
...
Michael
2009-04-29 02:20:19 +02:00
Jeremy Allison
bd6447dcf2
Convert cli_rename to async.
...
Jeremy.
2009-04-28 16:43:16 -07:00
Jeremy Allison
06e404f574
Convert cli_posix_unlink() and cli_posix_rmdir()
...
to async. First trans calls I've done.
Jeremy.
2009-04-28 13:18:51 -07:00
Michael Adam
e935d8616b
s3:registry: replace typedef REGISTRY_OPS by struct registry_ops
...
Michael
2009-04-27 11:21:04 +02:00
Michael Adam
cec8428747
s3:registry: replace typedef REGISTRY_KEY by struct registry_key_handle
...
Michael
2009-04-27 11:21:04 +02:00
Michael Adam
8185d31fb0
s3:registry: replace typedef REGISTRY_VALUE by struct regval_blob
...
Michael
2009-04-27 11:21:03 +02:00
Michael Adam
221151a2a2
s3:registry: replace typedef REGVAL_CTR by struct regval_ctr.
...
This paves the way for hiding the typedef and the implementation
from the surface.
Michael
2009-04-27 11:21:02 +02:00
Jeremy Allison
bd5c2c7dc8
find/replace. Change uintX types to uintX_t types to tidy up the code.
...
Jeremy.
2009-04-24 07:06:48 -07:00
Volker Lendecke
652dc40f0d
Add missing prototypes
2009-04-23 16:46:01 +02:00
Jeremy Allison
455f2a4c65
Make dskattr async.
...
Jeremy.
2009-04-22 08:04:53 -07:00
Jeremy Allison
502f47c7c0
Make cli_chkpath async.
...
Jeremy
2009-04-22 06:46:42 -07:00
Jelmer Vernooij
f4195183a4
s3: Use common security_descriptor_equal().
2009-04-21 18:17:40 +02:00
Jeremy Allison
5ccf58ff59
Make rmdir async.
...
Jeremy.
2009-04-21 06:52:54 -07:00
Jeremy Allison
dfc79de607
Make cli_mkdir async. Change it to return NTSTATUS.
...
Jeremy.
2009-04-21 05:52:34 -07:00
Wilco Baan Hofman
248554370a
Make gpo_ldap.c compatible with samba 4. Add ads_get_ldap_server_name() function to samba 3. Move prototypes to root libgpo where appropriate.
...
gpo_ldap.c now compiles for both samba 3 and 4.
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-20 23:16:16 +02:00
Andrew Bartlett
6c9caed481
Merge commit 'origin/master' into libcli-auth-merge-without-netlogond
2009-04-20 16:53:02 +02:00
Andrew Bartlett
53765c81f7
Remove use of talloc_reference in cli_rpc_pipe_open_schannel_with_key()
2009-04-20 16:50:49 +02:00
Volker Lendecke
35e6a0e618
Add "uint32_t access_granted" to policy handles
...
All policy handles have a mask of allowed operations attached that were
calculated at creation time, so they should carry this mask. This is the basis
for consolidating all our policy handle access checks.
If you want to do your own more complicated access checks further down, just
pass "0" to policy_handle_find.
2009-04-19 09:27:15 +02:00
Volker Lendecke
9b3f2e69f7
Make "struct policy" private to srv_lsa_hnd.c
2009-04-19 09:27:14 +02:00
Volker Lendecke
c9bc1728f9
Add type-safe policy_handle_create/find
2009-04-18 13:58:48 +02:00
Volker Lendecke
fd558b37f6
Add some const
2009-04-18 13:58:48 +02:00
Volker Lendecke
32a36e4703
Add notify_onelevel.tdb
...
This optimizes non-recursive notifys. For non-recursive notifies we can use a
per-directory file-id indexed notify record. This matters for the Windows
Explorer and IIS cases which do not use recursive notifies. In these cases, we
do not have to shuffle around the whole notify record on every change.
For the cluster case, this improves correctness of the notifies, ctdb only
distributes the tdb seqnum once a second, so we can lose notifies.
2009-04-16 15:07:06 +02:00
Andrew Bartlett
4678d1c6f4
Merge branch 'master' of ssh://git.samba.org/data/git/samba into libcli-auth-merge-without-netlogond
2009-04-15 14:36:13 +10:00
Günther Deschner
e3ceb0c653
s3-spoolss: remove unused dup_nt_devicemode().
...
Guenther
2009-04-14 12:13:17 +02:00
Andrew Bartlett
baf7274fed
Make Samba3 use the new common libcli/auth code
...
This is particuarly in the netlogon client (but not server at this
stage)
2009-04-14 16:23:44 +10:00
Andrew Bartlett
f28f113d8e
Rework Samba3 to use new libcli/auth code (partial)
...
This commit is mostly to cope with the removal of SamOemHash (replaced
by arcfour_crypt()) and other collisions (such as changed function
arguments compared to Samba3).
We still provide creds_hash3 until Samba3 uses the credentials code in
netlogon server
Andrew Bartlett
2009-04-14 16:23:35 +10:00
Andrew Bartlett
786447dea0
s3:charcnv remove now unused malloc() based conversion functions
2009-04-14 12:54:13 +10:00
Andrew Bartlett
3b3e21bd9b
Convert Samba3 to use the common lib/util/charset API
...
This removes calls to push_*_allocate() and pull_*_allocate(), as well
as convert_string_allocate, as they are not in the common API
To allow transition to a common charcnv in future, provide Samba4-like
strupper functions in source3/lib/charcnv.c
(the actual implementation remains distinct, but the API is now shared)
Andrew Bartlett
2009-04-14 12:53:56 +10:00
Andrew Bartlett
4786a493f7
Solve some of the conflict between Samba3 and Samba4 push_string
...
This renames push_string in Samba3 into push_string_base and
push_string_check for the two different use cases.
This should allow push_string to be imported from Samba4, using it's
calling conventions.
2009-04-14 12:11:00 +10:00
Volker Lendecke
dcda3ab8ca
Reactivate get_socket_port
2009-04-12 14:51:15 +02:00
Volker Lendecke
cf7d26933b
Convert cli_push to tevent_req
...
Metze, please check!
Thanks,
Volker
2009-04-08 23:11:59 +02:00
Volker Lendecke
9c89aee5f3
Convert cli_pull to tevent_req
2009-04-08 23:11:59 +02:00
Volker Lendecke
a3f24d91c5
Convert rpc_transport_smbd_init to tevent_req
2009-04-08 22:17:04 +02:00
Volker Lendecke
8a2112c942
Convert rpc_cli_smbd_conn_init to tevent_req
2009-04-08 22:17:04 +02:00
Volker Lendecke
f3d33cd81d
Convert rpc_transport_np_init to tevent_req
2009-04-08 22:17:03 +02:00
Günther Deschner
47bda3f3c7
s3-eventlog: split out evlog_convert_tdb_to_evt().
...
Guenther
2009-04-08 19:45:58 +02:00
Günther Deschner
98d703a6b7
s3-eventlog: move rpc_server/srv_eventlog_lib.c out of rpc_server.
...
Guenther
2009-04-08 19:45:57 +02:00
Andrew Bartlett
0c22d55134
s3:charcnv Remove unused unistrcpy() and unistrlen()
...
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-07 20:51:56 +02:00
Andrew Bartlett
3277b19800
s3:rpc_parse remove unused prs_unistr2()
...
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-07 20:51:55 +02:00
Andrew Bartlett
80163b5ac5
s3:charcnv Remove unused unistr2 functions
...
Natrually, the hard work to make these unsued was done by GD, not me :-)
Andrew Bartlett
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-07 20:51:55 +02:00
Andrew Bartlett
5fff538820
s3:charcnv Remove unused ucs2_to_unistr2()
...
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-07 20:51:55 +02:00
Tim Prouty
651fa0964a
s3 oplocks: Refactor level II oplock contention
2009-04-06 13:53:45 -07:00
Volker Lendecke
0c353b5711
Make cli_oplock_ack async
2009-04-06 21:32:08 +02:00
Volker Lendecke
025eb40fbc
Convert cli_open to tevent_req
2009-04-06 21:32:07 +02:00
Volker Lendecke
31910810cf
Convert cli_close to tevent_req
2009-04-06 21:32:07 +02:00
Volker Lendecke
097db28c5d
Convert cli_write_andx to tevent_req
2009-04-06 21:32:07 +02:00
Volker Lendecke
c23ccff13a
Convert cli_read_andx to tevent_req
2009-04-06 21:32:07 +02:00
Volker Lendecke
ca7cd350a6
Convert cli_ntcreate to tevent_req
2009-04-06 21:32:07 +02:00
Volker Lendecke
807328ce6d
Convert cli_tcon_andx to tevent_req
2009-04-06 21:32:07 +02:00
Volker Lendecke
03becb5066
Convert cli_negprot to tevent_req
2009-04-06 21:32:06 +02:00
Volker Lendecke
95c792b6af
Convert cli_session_setup_guest to tevent_req
2009-04-06 21:32:06 +02:00
Volker Lendecke
7ef78bd7b5
Convert cli_trans to tevent_req
2009-04-06 21:32:06 +02:00
Volker Lendecke
dec928e884
Convert cli_echo to tevent_req
2009-04-06 21:32:06 +02:00
Volker Lendecke
ad29104d3d
Add read_smb_send/recv, dumping keepalives
2009-04-06 21:32:05 +02:00
Andrew Bartlett
9512640155
s3:smbldap Remove smbldap_get_dn
...
This removes one more caller to pull_utf8_allocate()
Signed-off-by: Günther Deschner <gd@samba.org>
2009-04-06 14:52:51 +02:00
Günther Deschner
d0e1ff4aff
s3-passdb: add smb_create_user().
...
Guenther
2009-04-01 19:12:19 +02:00
Björn Jacke
4b184eaea1
s3/cups: add encryption support
2009-03-30 11:11:19 +02:00
Günther Deschner
fe340eb92f
s3:rpc_parse: remove unused init_unistr().
...
Guenther
2009-03-26 10:42:13 +01:00
Günther Deschner
c86df62b4a
s3-rpc_parse: remove unused smb_io_domsid().
...
Guenther
2009-03-25 23:09:52 +01:00
Günther Deschner
72636db8e5
s3: remove unused rpc_parse/parse_sec.c file.
...
Guenther
2009-03-25 22:50:40 +01:00
Volker Lendecke
5f753e22f1
Convert rpc_pipe_bind to tevent_req
2009-03-24 13:23:41 +01:00
Volker Lendecke
1724f2ff31
Convert rpc_api_pipe_req to tevent_req
2009-03-24 13:23:40 +01:00
Günther Deschner
c388efdbcb
s3: add missing prototype for auth_wbc_init().
...
Guenther
2009-03-24 11:11:57 +01:00
Volker Lendecke
63aae58fdc
Use avahi to register _smb._tcp in smbd
2009-03-23 17:09:53 +01:00
Volker Lendecke
93e13fe3e0
Add tevent avahi binding
2009-03-23 17:09:53 +01:00
Stefan Metzmacher
6af15943c6
s3:libsmb: use new simplified smb_signing code for the client side
...
We store the seqnum/mid mapping in the cli_request structure
for async requests and in the cli_state structure for sync calls.
We skip the signing check for oplock requests while waiting
for async requests coming in.
metze
2009-03-23 12:21:14 +01:00
Stefan Metzmacher
c16c90a1cb
s3:smbd: use new simplified snb_signing code in the server
...
We keep the seqnum/mid mapping in the smb_request structure.
This also moves one global variable into the
smbd_server_connection struct.
metze
2009-03-23 12:21:13 +01:00
Stefan Metzmacher
1a48d0793b
s3:libsmb: rename smb_signing.c => clisigning.c
...
This prepares a large simplification of the smb_signing code
metze
2009-03-23 12:21:12 +01:00
Stefan Metzmacher
3b73cdb412
s3:nmbd: implement a MAILSLOT => CLDAP proxy for NETLOGON_SAMLOGON requests
...
This will be used as part a the franky setup, where nmbd will forward
the MAILSLOT requests to the local samba4 CLDAP server.
"nmbd_proxy_logon:cldap_server = 127.0.0.1" would configure
and activate this feature.
metze
2009-03-21 10:44:42 +01:00
Günther Deschner
5a388115a9
s3-spoolss: apply some const in spoolss server.
...
Guenther
2009-03-20 17:20:32 +01:00
Günther Deschner
045151b767
s3-spoolss: pure comsetics.
...
sorry, I just need to do that.
Guenther
2009-03-20 10:49:45 +01:00
Günther Deschner
842edcd2b0
s3-samr: try to to fix password_expired flag handling.
...
Guenther
2009-03-20 10:39:18 +01:00
Günther Deschner
531af136f9
s3: remove POLICY_HND.
...
Guenther
2009-03-18 23:22:29 +01:00
Günther Deschner
7d7b1a8dcc
s3-rpc_parse: remove some unused parsing code.
...
Guenther
2009-03-18 22:02:23 +01:00
Günther Deschner
7a85a87edf
s3-rpc_parse: remove unused BUFFER5 and UNISTR3.
...
Guenther
2009-03-18 20:17:01 +01:00
Günther Deschner
36d0785806
s3-spoolss: remove rpc_server/srv_spoolss.c alltogether.
...
Guenther
2009-03-18 17:09:33 +01:00
Günther Deschner
a502392541
s3-spoolss: remove rpc_parse/parse_spoolss.c alltogether.
...
Good-Bye, last hand-marshalled rpc functions, rest in peace.
Guenther
2009-03-18 17:09:26 +01:00
Günther Deschner
a4e999c7e3
s3-spoolss: remove old spoolss_EnumPrinterDataEx.
...
Guenther
2009-03-18 17:09:18 +01:00
Günther Deschner
0cfb1aea29
s3-spoolss: use pidl for _spoolss_EnumPrinterDataEx.
...
Please note that this has been the last call in samba3 that was
using hand-marshalled rpc. With this commit all named pipe rpc services
in samba3 have now fully moved to pidl generated code :-)
Guenther
2009-03-18 17:07:39 +01:00
Günther Deschner
e61c9ca36d
s3-spoolss: fix spoolss server after spoolss_Field changes.
...
Guenther
2009-03-18 16:46:49 +01:00
Günther Deschner
9ab8953d74
s3-rpc_parse: move prs_uint64 to rpc_parse/parse_prs.c.
...
Guenther
2009-03-18 16:43:28 +01:00
Günther Deschner
9d024d1715
s3-spoolss: remove old rpccli_spoolss_enumprinterdataex.
...
Guenther
2009-03-18 01:30:41 +01:00
Günther Deschner
ab85fc78bd
s3-spoolss: add rpccli_spoolss_enumprinterdataex convenience wrapper.
...
Guenther
2009-03-18 01:30:18 +01:00
Jeremy Allison
8dd1faaa29
Remove the global "struct cm_cred_struct" and associated calls, make
...
callers pass in a struct user_auth_info * instead. This commit causes
smbc_set_credentials() to print out a message telling callers to use
smbc_set_credentials_with_fallback() instead, as smbc_set_credentials()
has a broken API (no SMBCCTX * pointer). No more global variables used
in the connection manager API for client dfs calls.
Jeremy.
2009-03-17 14:53:06 -07:00
Günther Deschner
f19faa0e76
s3-spoolss: remove unused DEVICEMODE parsing and header.
...
Guenther
2009-03-17 19:07:30 +01:00
Günther Deschner
6549408a4d
s3-spoolss: rename construct_dev_mode_new to construct_dev_mode.
...
Guenther
2009-03-17 18:39:43 +01:00
Günther Deschner
d759f9961a
s3-spoolss: move SYSTEMTIME parsing to a more generic place, as suggested.
...
Guenther
2009-03-17 18:39:23 +01:00
Günther Deschner
47c024fd75
s3-spoolss: rename temporary convert_devicemode_new function.
...
Guenther
2009-03-17 18:39:17 +01:00
Volker Lendecke
bce98d8c03
Convert np_read to tevent_req
2009-03-17 17:31:22 +01:00
Volker Lendecke
89543d6c78
Convert np_write to tevent_req
2009-03-17 17:31:22 +01:00
Günther Deschner
2d10548ab1
s3: remove rpc_parse/parse_buffer.c completely.
...
Guenther
2009-03-17 12:21:15 +01:00
Günther Deschner
338c61060b
s3-spoolss: remove old spoolss_EnumPrinterKey.
...
Guenther
2009-03-17 12:19:03 +01:00
Günther Deschner
63d78712bc
s3-spoolss: use pidl for _spoolss_EnumPrinterKey.
...
Guenther
2009-03-17 12:18:57 +01:00
Günther Deschner
846b93f54f
s3-spoolss: remove old rpccli_spoolss_enumprinterkey wrapper.
...
Guenther
2009-03-17 12:18:50 +01:00
Günther Deschner
86c25b3533
s3-spoolss: add rpccli_spoolss_enumprinterkey convenience wrapper.
...
Guenther
2009-03-17 12:18:28 +01:00
Günther Deschner
ead6a49218
s3-spoolss: remove spoolss_EnumPrinterData.
...
Guenther
2009-03-17 12:08:06 +01:00
Günther Deschner
80ecd11050
s3-spoolss: use pidl for _spoolss_EnumPrinterData.
...
Guenther
2009-03-17 12:07:58 +01:00
Günther Deschner
57077f43a7
s3-spoolss: remove rpccli_spoolss_enumprinterdata.
...
Guenther
2009-03-17 12:07:50 +01:00
Günther Deschner
628c12e53b
s3-spoolss: remove old spoolss_SetPrinterData.
...
Guenther
2009-03-17 11:57:33 +01:00
Günther Deschner
f9871a846d
s3-spoolss: use pidl for _spoolss_SetPrinterData.
...
Guenther
2009-03-17 11:57:26 +01:00
Günther Deschner
4234969df7
s3-spoolss: remove old rpccli_spoolss_setprinterdata wrapper.
...
Guenther
2009-03-17 11:57:17 +01:00
Günther Deschner
6dca80518d
s3-spoolss: remove old spoolss_GetPrinterData.
...
Guenther
2009-03-17 11:49:37 +01:00
Günther Deschner
aeba6381d3
s3-spoolss: use pidl for _spoolss_GetPrinterData.
...
Guenther
2009-03-17 11:49:30 +01:00
Günther Deschner
d77cc43784
s3-spoolss: remove old rpccli_spoolss_getprinterdata.
...
Guenther
2009-03-17 11:49:23 +01:00
Günther Deschner
08d170abc1
s3-spoolss: add rpccli_spoolss_getprinterdata convenience wrapper.
...
Guenther
2009-03-17 11:49:08 +01:00
Günther Deschner
6df9e1f7aa
s3-spoolss: add push_spoolss_PrinterData().
...
Guenther
2009-03-17 10:53:43 +01:00
Günther Deschner
9a8f19672d
s3-spoolss: add pull_spoolss_PrinterData().
...
Guenther
2009-03-17 10:53:24 +01:00
Günther Deschner
04fd767c0b
s3-spoolss: remove obsolete get_a_builtin_ntform.
...
Guenther
2009-03-17 10:37:53 +01:00
Jeremy Allison
382d8069ad
Add some appropriate const.
...
Jeremy.
2009-03-16 16:38:15 -07:00
Volker Lendecke
20cee26a3d
Convert open_socket_out_defer to tevent_req
2009-03-16 19:32:01 +01:00
Jeremy Allison
f48a345e4a
Remove pwd_cache.c, it was doing nothing. Make user_name, domain, and
...
password talloc'ed strings within the cli_struct.
Jeremy.
2009-03-13 17:49:24 -07:00
Dave Richards
1fcc11ff25
s3: Add strict lock/unlock calls to the vfs layer to replace is_locked
2009-03-13 14:16:55 -07:00
Günther Deschner
7a41f299fc
s3-spoolss: remove more unused marshalling code.
...
Guenther
2009-03-13 09:25:26 +01:00
Günther Deschner
348c4b6baa
s3-spoolss: remove old spoolss_GetPrinter.
...
Guenther
2009-03-13 09:25:26 +01:00
Günther Deschner
1ceb298ed6
s3-spoolss: use pidl for _spoolss_GetPrinter.
...
Guenther
2009-03-13 09:25:25 +01:00
Günther Deschner
a1a02bfac2
s3-spoolss: remove old spoolss_EnumPrinters.
...
Guenther
2009-03-13 09:25:24 +01:00
Günther Deschner
f6f703f16e
s3-spoolss: use pidl for _spoolss_EnumPrinters.
...
Guenther
2009-03-13 09:25:24 +01:00
Günther Deschner
16438e3a93
s3-spoolss: remove old enumprinters wrapper.
...
Guenther
2009-03-13 09:25:24 +01:00
Günther Deschner
9397ae5114
s3-spoolss: add rpccli_spoolss_enumprinters convenience wrapper.
...
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
1b3e068e83
s3-spoolss: remove old spoolss_GetPrinterDriver2.
...
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
8df8abb890
s3-spoolss: use pidl for _spoolss_GetPrinterDriver2.
...
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
a540815b5f
s3-spoolss: remove old spoolss_EnumPrinterDrivers.
...
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
d6e2ef51ec
s3-spoolss: use pidl for _spoolss_EnumPrinterDrivers.
...
Guenther
2009-03-13 09:25:23 +01:00
Günther Deschner
6928c5ce47
s3-spoolss: remove old rpccli_spoolss_enumprinterdrivers wrapper.
...
Guenther
2009-03-13 09:25:22 +01:00
Günther Deschner
5f46554228
s3-spoolss: add rpccli_spoolss_enumprinterdrivers convenience wrapper.
...
Guenther
2009-03-13 09:25:22 +01:00
Günther Deschner
e605e4503c
s3-spoolss: remove old spoolss_GetJob and spoolss_EnumJob.
...
Guenther
2009-03-13 09:25:22 +01:00
Günther Deschner
b80e3e5724
s3-spoolss: use pidl for _spoolss_EnumJobs.
...
Guenther
2009-03-13 09:25:21 +01:00
Günther Deschner
661e81d48c
s3-spoolss: add construct_dev_mode_new.
...
Guenther
2009-03-13 09:25:21 +01:00
Günther Deschner
3bd1aabcfe
s3-spoolss: remove old rpccli_spoolss_enumjobs wrapper.
...
Guenther
2009-03-13 09:25:21 +01:00
Günther Deschner
80284124ba
s3-spoolss: add rpccli_spoolss_enumjobs convenience wrapper.
...
Guenther
2009-03-13 09:25:20 +01:00
Jeremy Allison
e5136e9849
Remove the static "struct client_connection" mess which is part of
...
the problem that stops libsmbclient being thread safe. Subsidiary
DFS connections are now hung off a list inside the cli_state struct.
Much more to do in order to get libsmbclient to thread safety, but
this is a good start.
Jeremy.
2009-03-12 17:59:24 -07:00
Günther Deschner
4b57f6dd34
s3-spoolss: make jobname a const char * in print_job_start().
...
Guenther
2009-03-12 14:47:31 +01:00
Stefan Metzmacher
2fdbafbf54
Revert "s3:libsmb: add an option to cli_push to let the caller provide the buffers"
...
This reverts commit 9579a6f193
.
It's confusing to have a boolean to alter the behavior of cli_push
and as the new feature isn't used yet I revert it.
We can readd a extra function later.
metze
2009-03-12 11:03:50 +01:00
Stefan Metzmacher
9579a6f193
s3:libsmb: add an option to cli_push to let the caller provide the buffers
...
metze
2009-03-10 14:07:56 +01:00
Jelmer Vernooij
3b181564c5
Merge branch 'master' of ssh://git.samba.org/data/git/samba
2009-03-09 21:42:13 +01:00
Jelmer Vernooij
f992416e23
Revert accidental reintroduction of void ** bug.
2009-03-08 06:57:52 +01:00
Volker Lendecke
46bcb10b5a
Shape up pdb_search a bit by making it a talloc ctx with a destructor
2009-03-07 17:51:21 +01:00
Günther Deschner
c9496ba18a
s3-spoolss: remove more leftovers from old enumports call.
...
Guenther
2009-03-07 01:12:18 +01:00
Günther Deschner
33a441b0c2
s3-spoolss: add rpccli_spoolss_enummonitors convenience wrapper.
...
Guenther
2009-03-07 00:55:39 +01:00
Günther Deschner
d8a05bd55d
s3-spoolss: remove old spoolss_EnumMonitors.
...
Guenther
2009-03-07 00:55:38 +01:00
Günther Deschner
2561b2d2e2
s3-spoolss: use pidl for _spoolss_EnumMonitors.
...
Guenther
2009-03-07 00:55:38 +01:00
Günther Deschner
c7e19c2627
s3-spoolss: add rpccli_spoolss_enumports convenience wrapper.
...
Guenther
2009-03-07 00:55:37 +01:00
Günther Deschner
631f277d1c
s3-spoolss: remove old spoolss_EnumPorts.
...
Guenther
2009-03-07 00:55:36 +01:00
Günther Deschner
03f1bec6ce
s3-spoolss: use pidl for _spoolss_EnumPorts.
...
Guenther
2009-03-07 00:55:36 +01:00
Günther Deschner
2d24d3a380
s3-spoolss: add rpccli_spoolss_enumprintprocessordatatypes convenience wrapper.
...
Guenther
2009-03-07 00:55:00 +01:00
Günther Deschner
f9019c1837
s3-spoolss: remove old spoolss_EnumPrintProcDataTypes.
...
Guenther
2009-03-07 00:49:52 +01:00
Günther Deschner
3cf22a8856
s3-spoolss: use pidl for _spoolss_EnumPrintProcDataTypes.
...
Guenther
2009-03-07 00:49:51 +01:00
Günther Deschner
b73411d650
s3-spoolss: add rpccli_spoolss_enumprintprocessors convenience wrapper.
...
Guenther
2009-03-07 00:43:13 +01:00
Günther Deschner
066a47b994
s3-spoolss: remove old spoolss_EnumPrintProcessors.
...
Guenther
2009-03-07 00:43:12 +01:00
Günther Deschner
f48ccec957
s3-spoolss: use pidl for _spoolss_EnumPrintProcessors.
...
Guenther
2009-03-07 00:42:58 +01:00
Stefan Metzmacher
6e572d40a9
s3:libsmb: remove cli_setup_signing_state() and add struct cli_state *cli_initialise_ex()
...
This prepares the next changes.
metze
2009-03-06 16:37:21 +01:00
Stefan Metzmacher
196a5d0388
s3:signing: the seqnum should only be decremented by 1 for ntcancel requests
...
[MS-SMB] 3.3.5.1 Receiving Any Message says that the seqnum
is incremented by only for ntcancel requests for any other
request it's by incremented by 2, even if it doesn't expect
a response.
metze
2009-03-06 16:37:20 +01:00
Günther Deschner
8614ce5ca7
s3-spoolss: remove old _spoolss_EnumForms.
...
Guenther
2009-03-06 14:32:46 +01:00
Günther Deschner
f9bf09e255
s3-spoolss: use pidl for _spoolss_EnumForms.
...
Guenther
2009-03-06 14:32:15 +01:00
Günther Deschner
9bdca59fc5
s3-spoolss: remove old rpccli_spoolss_enumforms.
...
Guenther
2009-03-06 14:30:26 +01:00
Günther Deschner
c14a589a46
s3-spoolss: add convencience wrapper around rpccli_spoolss_EnumForms.
...
Guenther
2009-03-06 14:30:02 +01:00
Jeremy Allison
0d9f4a2886
Last part of fix for #6154 - zfs does not honor admin users.
...
Jeremy.
2009-03-05 15:18:18 -08:00
Tim Prouty
f61f169054
s3: Change open_streams_for_delete to call through the vfs layer
...
This eliminates the last direct caller of create_file_unixpath
2009-03-04 18:32:12 -08:00
Stefan Metzmacher
b00204a461
lib/util: remove samba specific talloc_get_type_abort()
...
metze
2009-03-03 18:07:33 +01:00
Jelmer Vernooij
9551ab8f7b
Merge branch 'master' of git://git.samba.org/samba into convenience
2009-03-01 22:25:57 +01:00
Jelmer Vernooij
7ab8f373c8
Use common header file for character set handling in Samba 3 and Samba 4.
2009-03-01 22:24:34 +01:00
Jelmer Vernooij
8568b4fa9f
Add header files for secace and secacl.
2009-03-01 20:06:55 +01:00
Jelmer Vernooij
94069bd274
s4: Use same function signature for convert_* as s3.
2009-03-01 19:55:46 +01:00
Jelmer Vernooij
9f6e2d6485
Sync smb_iconv_t type, convert_string return type with Samba 3 equivalents.
2009-03-01 12:59:58 +01:00
Günther Deschner
f343ed7319
s3-spoolss: remove old rpccli_spoolss_getjob.
...
Guenther
2009-02-26 22:02:19 +01:00
Günther Deschner
0445c554d1
s3-spoolss: add rpccli_spoolss_getjob convenience wrapper.
...
Guenther
2009-02-26 22:02:18 +01:00
Jeremy Allison
3121249243
Make us pass the RAW-RENAME torture test I just added.
...
Inside a directory, keep a file open and then renaming
the directory should fail with ACCESS_DENIED.
Jeremy.
2009-02-26 11:42:23 -08:00
Michael Adam
97508eefb7
s3:registry: add a delete_subkey method to the backend ops.
...
This is to provide a more atomic means of deleting a subkey of a key.
Michael
2009-02-26 13:22:55 +01:00
Michael Adam
602bfeb360
s3:registry: add a create_subkey method to the backend ops.
...
This is to provide a more atomic means of adding a subkey of a key.
Michael
2009-02-26 13:22:54 +01:00
Michael Adam
0b22f8b99c
s3:registry: hash the list of subkeys in the regsubkey_ctr
...
This removes many loops over all the arrays
(from regsubkey_ctr_key_exists) and thus
reduces "net conf drop" from 1m55 to 48seconds
and "net conf import" from 1m55 to 58 seconds
for 2000 shares on my box.
Michael
2009-02-26 13:22:54 +01:00
Michael Adam
cd8bfd3a84
s3:registry: add regsubkey_ctr_get_seqnum() to hide implementation
...
Michael
2009-02-26 13:22:52 +01:00
Michael Adam
63ed47c9e4
s3:registry: add regsubkey_ctr_set_seqnum to hide implementation from caller.
...
Michael
2009-02-26 13:22:52 +01:00
Michael Adam
763f41f39c
s3:registry: add a regsubkey_ctr_init function for allocating a regsubkey_ctr
...
Michael
2009-02-26 13:22:51 +01:00
Michael Adam
58fc61217d
s3:registry: replace typedef "REGSUBKEY_CTR" by "struct regsubkey_ctr"
...
This paves the way for hiding the typedef and the implementation from the
surface.
Michael
2009-02-26 13:22:51 +01:00
Volker Lendecke
a777b4d501
Convert open_socket_out to tevent_req
2009-02-26 13:04:34 +01:00
Michael Adam
ba0e944c46
s3:registry: provide transaction_start|commit|cancel fns for the registry tdb
...
Michael
2009-02-26 11:05:22 +01:00
Volker Lendecke
5bab95b583
Fix a missing prototype
2009-02-25 13:04:19 +01:00
Günther Deschner
59e90d3715
s3-spoolss: remove rpccli_spoolss_getprinter.
...
Guenther
2009-02-25 11:16:30 +01:00
Günther Deschner
c03f207276
s3-spoolss: remove rpccli_spoolss_setprinter.
...
Guenther
2009-02-25 11:16:29 +01:00
Günther Deschner
c7ba20b465
s3-spoolss: remove rpccli_spoolss_addprinterex.
...
Guenther
2009-02-25 11:16:29 +01:00
Günther Deschner
6366084c4a
s3-spoolss: add rpccli_spoolss_getprinter convenience wrapper.
...
Guenther
2009-02-25 11:16:28 +01:00
Günther Deschner
9d165fa5c6
s3-spoolss: add rpccli_spoolss_addprinterex convenience wrapper.
...
Guenther
2009-02-25 10:32:09 +01:00
Günther Deschner
b3d53e2ce6
s3-spoolss: remove some left-over hand marshalling code and structs.
...
Guenther
2009-02-25 00:32:11 +01:00
Günther Deschner
b2e038ef8b
s3-spoolss: remove rpccli_spoolss_addprinterdriver.
...
Guenther
2009-02-24 23:57:52 +01:00
Günther Deschner
3777978eb4
s3-rpcclient: use rpccli_spoolss_AddPrinterDriver.
...
Guenther
2009-02-24 23:57:51 +01:00
Günther Deschner
5ffa03dcd8
s3-spoolss: remove old rpccli_spoolss_getprinterdriver wrapper.
...
Guenther
2009-02-24 22:40:51 +01:00
Günther Deschner
e4e1b1a0bb
s3-spoolss: add rpccli_spoolss_getprinterdriver2 convenience wrapper.
...
Guenther
2009-02-24 22:40:51 +01:00
Volker Lendecke
202a31d96d
Remove read_pkt
2009-02-24 20:40:48 +01:00
Volker Lendecke
dbc79381a8
Convert name_mangle() to use talloc
2009-02-24 20:40:46 +01:00
Günther Deschner
f21ae452a0
s3-lib: add marshall_sec_desc_buf and unmarshall_sec_desc_buf helpers.
...
Guenther
2009-02-24 12:41:20 +01:00
Steven Danneman
8d63c596a0
Refactored sys_fork() and sys_pid() into shared util library
...
This fixes a bug in 116ce19b
, where we didn't clear the pid cache in
become_daemon() and thus the /var/run/smbd.pid didn't match the actual
pid of the parent process.
Currently S4 will clear the pid cache on fork but doesn't yet take
advantage of the pid cache by using sys_pid() instead of the direct
get_pid().
2009-02-23 21:17:12 -08:00
Günther Deschner
fda0158c14
s3-spoolss: remove cli_spoolss_notify.c completly.
...
All of the spoolss change notify code uses pidl generated functions now.
Guenther
2009-02-23 16:40:52 +01:00
Günther Deschner
2234984fd0
s3-spoolss: remove old spoolss_RemoteFindFirstPrinterChangeNotifyEx.
...
Guenther
2009-02-23 16:26:11 +01:00
Günther Deschner
fc703a1492
s3-spoolss: remove SPOOL_NOTIFY_INFO_DATA and SPOOL_NOTIFY_INFO alltogether.
...
Guenther
2009-02-23 16:26:11 +01:00
Günther Deschner
0295008a87
s3-spoolss: remove old spoolss_RouterReplyPrinterEx.
...
Guenther
2009-02-23 16:26:00 +01:00
Günther Deschner
ce8ca0e68a
s3-spoolss: remove old spoolss_RouterRefreshPrinterChangeNotify.
...
Guenther
2009-02-23 16:20:12 +01:00
Günther Deschner
418691c2e7
s3-spoolss: use more idl types in spoolss server.
...
Guenther
2009-02-23 16:17:36 +01:00
Günther Deschner
03a15f2381
s3-spoolss: use struct spoolss_Notify instead of SPOOL_NOTIFY_INFO_DATA.
...
Guenther
2009-02-23 16:17:34 +01:00
Tim Prouty
1ff9696306
Revert "s3 auth: Add parameter that forces every user through an NSS lookup"
...
After the discussion on samba-technical, it was decided that the best
answer for now was to revert this change. The right way to do this is
to rewrite the token api to use opaque tokens with pluggable modules.
This reverts commit 8e19a28805
.
2009-02-21 14:00:14 -08:00
Steven Danneman
116ce19b10
Moved become_daemon() and close_low_fds() to shared util lib
2009-02-20 16:30:12 -08:00
Steven Danneman
b329ea1cf3
s3: Modifications to generic notify structures to allow implementation of OneFS notify.
...
The OneFS kernel based change notify system takes an fd of the directory
to watch in it's initialization syscall. Since we already have this
directory open, this commit plumbs that fd down to the VFS layer via the
notify_entry struct.
We also need to know if the watch is taken out on a snapshot directory.
The full file_id struct is also passed down to make this determination.
The file_id marshalling wrappers are hand written here, but should
eventually be auto-generated by moving the struct file_id into the idl.
2009-02-20 14:10:30 -08:00
Tim Prouty
e4675ce8db
s3: Add extid to the dev/inode pair
...
This extends the file_id struct to add an additional generic uint64_t
field: extid. For backwards compatibility with dev/inodes stored in
xattr_tdbs and acl_tdbs, the ext id is ignored for these databases.
This patch should cause no functional change on systems that don't use
SMB_VFS_FILE_ID_CREATE to set the extid.
Existing code that uses the smb_share_mode library will need to be
updated to be compatibile with the new extid.
2009-02-19 20:58:26 -08:00
Tim Prouty
6fbebb5369
s3: Modify SMB_VFS_FILE_ID_CREATE to take a stat struct
...
Since file_id_create_dev is incompatible with the concept of file_ids,
it is now static and in the one file that needs it.
2009-02-19 20:58:01 -08:00
Günther Deschner
38fde6d5d9
s3-spoolss: remove old spoolss_AddPrinterDriver{Ex}.
...
Guenther
2009-02-19 19:26:54 +01:00
Günther Deschner
0470feeb7f
s3-spoolss: use pidl for _spoolss_AddPrinterDriver{Ex}.
...
Guenther
2009-02-19 19:26:44 +01:00
Günther Deschner
c71fa39c29
s3-spoolss: remove old spoolss_GetPrintProcessorDirectory.
...
Guenther
2009-02-19 19:23:51 +01:00
Günther Deschner
286ec6847b
s3-spoolss: use pidl for _spoolss_GetPrintProcessorDirectory.
...
Guenther.
2009-02-19 19:21:57 +01:00
Günther Deschner
cdcd525a05
s3-spoolss: remove old spoolss_GetPrinterDriverDirectory.
...
Guenther
2009-02-19 02:07:58 +01:00
Günther Deschner
3b3ab50c05
s3-spoolss: use pidl for _spoolss_GetPrinterDriverDirectory.
...
Guenther
2009-02-19 02:06:57 +01:00
Günther Deschner
1cd34565d0
s3-spoolss: remove old spoolss_XcvData.
...
Guenther
2009-02-18 16:12:27 +01:00
Günther Deschner
7312342062
s3-spoolss: use pidl for _spoolss_XcvData.
...
Guenther
2009-02-18 16:11:01 +01:00
Günther Deschner
df17774412
s3-spoolss: remove old spoolss_ResetPrinter.
...
Guenther
2009-02-17 10:52:32 +01:00
Zach Loafman
8e19a28805
s3 auth: Add parameter that forces every user through an NSS lookup
...
When set to yes, "force username map" forces every user, even AD
users, through an NSS lookup. This allows the token to be overridden
with information from NSS in certain broken environments.
2009-02-16 00:29:21 -08:00
Volker Lendecke
913c547cf6
Rename lp_smb_perfcount_module() to lp_perfcount_module() to match the parameter name
2009-02-14 22:01:03 +01:00
Günther Deschner
cd2af58af9
s3-spoolss: use pidl for _spoolss_SetPrinter.
...
Guenther
2009-02-14 01:42:07 +01:00
Günther Deschner
fbcccbc410
s3-spoolss: use pidl for _spoolss_AddPrinterEx.
...
Guenther
2009-02-14 01:42:01 +01:00