1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

28137 Commits

Author SHA1 Message Date
Michael Adam
9d798494a9 s3:smbconf: move smbconf_share_exists checks into backend
Michael
2009-03-04 22:49:24 +01:00
Michael Adam
0945789031 s3:net conf: reduce memory usage of "net conf import".
"net conf import" was wrapped in one big transaction.
This lead to MAX_TALLOC_SIZE being exceeded at roughly
1500 shares. This patch resolves that problem by
limiting the top level transactions in "net conf import"
to 100 shares.

Michael
2009-03-04 22:49:24 +01:00
Steven Danneman
5a9f668dab s3: Remove madvise support
This reverts 193be432.  The MADVISE_PROTECT is inherited by all child
processes and cannot be unset.  The intention of the original patch was
to protect the parent process, but allow children to be killed in low
memory.  Since this isn't possible with the current API, reverting the
whole feature.
2009-03-04 11:07:27 -08:00
Volker Lendecke
ddc1864fb2 Attempt to fix the build on IRIX 2009-03-04 12:28:39 +01:00
Volker Lendecke
e8484e01ed Make use of gpfs_get_real_filename optional 2009-03-04 11:23:12 +01:00
Michael Adam
fb70a8a255 s3: Fix a memleak in dbwrap_rbt.
The SMB_MALLOC'ed rbt node data was not free'd on talloc free of
the db context. This is a quick fix using talloc instead of malloc
for allocation of the node data.

Since malloc was originally used for performance reasons, one
might want to reverse to malloc and create a talloc destructor
that walks the tree and frees all the node data if this talloc
approach proves to be too slow..

Michael
2009-03-04 11:23:05 +01:00
Tim Prouty
ef89c4bc0d s3 passdb: Add back some useful debug statements
Originally removed in be1dfff02d562e42a7847bd02fed8538630d3f41
2009-03-03 16:49:36 -08:00
Jeremy Allison
35f4ea221e Fix bug #6155 - "force group" is no longer working as expected.
We need to store the "force group" uid separately from the
conn->server_info token as we need to apply it separately also.
Volker PLEASE CHECK !
Jeremy.
2009-03-03 16:08:56 -08:00
Tim Prouty
243d4e8a08 s3 OneFS: Add parameter to ignore streams 2009-03-03 13:06:16 -08:00
Stefan Metzmacher
b00204a461 lib/util: remove samba specific talloc_get_type_abort()
metze
2009-03-03 18:07:33 +01:00
Jeremy Allison
4b2955aa7d Fix "ignore return" warning.
Jeremy.
2009-03-03 08:50:35 -08:00
Dan Sledz
be1dfff02d It appears that the first time we see a uid/gid that winbind can't map,
we end up returning the null sid instead of falling back to the legacy
code.  Next time through the code we'll hit the negative cache and do
the right thing, but we still fail the first time.

If we fail the winbind id to sid mapping, call the legacy version.  This
catches the case where we don't have a negative cache entry for the mapping.
This is better than returning the NULL sid to the caller.
2009-03-02 16:50:19 -08:00
Bo Yang
deb73e87b2 More fix to initialize idmap statuses 2009-03-02 15:51:55 -08:00
Björn Jacke
71ffd21d27 use test -f, Solaris /bin/sh doesn't know test -e 2009-03-02 14:56:58 -08:00
Simo Sorce
1ea0dca50a Fix wbclient.c wrt tevent_req changes too. 2009-03-02 15:38:45 -05:00
Volker Lendecke
9cacb49eb6 Attempt to fix the build
Simo, with which compiler did you build this? I'd be curious to learn about the
compiler settings that make this build.

Thanks,

Volker
2009-03-02 20:17:40 +01:00
Simo Sorce
67d41d0fc7 Make struct tevent_req opaque
Move struct tevent_req in tevent_internal, and ad getters and setters
for private data and the callback function.
This patch also renames 'private_state' into 'data'. What is held in this
pointer is in fact data and not a state like enum tevent_req_state.
Calling it 'state' is confusing.

The functions addedd are:
tevent_req_set_callback() - sets req->async.fn and req->async.private_data
tevent_req_set_print_fn() - sets req->private_print
tevent_req_callback_data() - gets req->async.private_data
tevent_req_data() - gets rea->data

This way it is much simpler to keep API/ABI compatibility in the future.
2009-03-02 11:02:09 -05:00
Günther Deschner
04a2b455a0 s3-spoolss: PRINTER_STATUS_OK has been moved to IDL.
Guenther
2009-03-02 14:25:01 +01:00
Günther Deschner
8b336211c3 s3-rpcclient: zero out devmode and secdesc in setdriver and setprinter command.
Guenther
2009-03-02 14:25:01 +01:00
Jelmer Vernooij
0a3ee53b50 Use samba3's own iconv implementation for now, until all changes are
merged.
2009-03-02 05:04:07 +01:00
Tim Prouty
9b0df441e1 s3: Fix incompatible type warnings 2009-03-01 16:40:17 -08:00
Tim Prouty
664268a287 s3 OneFS: Refactor config code and cleanup includes 2009-03-01 16:39:55 -08:00
Jelmer Vernooij
9940c7690e Use shared header file for character sets, remove old definitions from samba3 smb.h. 2009-03-01 22:31:10 +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
da6721e323 Move secacl to top-level. 2009-03-01 18:15:36 +01:00
Jelmer Vernooij
d3c2de093a Also re-add removed codepoint_t; I'm clearly not having my day today. 2009-03-01 18:05:22 +01:00
Jelmer Vernooij
9bd0cf8d60 Keep using Samba3's charset.h for now. 2009-03-01 18:02:24 +01:00
Jelmer Vernooij
99b288156f Move secace.c to top-level. 2009-03-01 18:00:26 +01:00
Jelmer Vernooij
4903d20c21 Merge branch 'master' of git://git.samba.org/samba into convenience 2009-03-01 16:41:57 +01:00
Jelmer Vernooij
54bc27e937 Merge branch 'master' of ssh://git.samba.org/data/git/samba into talloc-next 2009-03-01 16:23:53 +01:00
Jelmer Vernooij
d776ac03c3 Move next_token_talloc() to top-level. 2009-03-01 16:16:16 +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
Volker Lendecke
4a35c974e9 Only copy sharename up from rap_to_pjobid
Why?? :-)

Another one of the little micro-optimizations that I just came across: If you
allocate a variable in a sub-block like the "fstring sharename" in
write_file(), gcc even with -O3 will allocate this variable unconditionally on
the stack at the beginning of the routine. So with eliminating this fstring we
cut 256 bytes of stack in a very hot code path writing to a file. It might make
us a bit more cache-friendly.

This would probably not be worth a second look if it involved larger code
changes, but this one was just too simple to let it pass :-)
2009-03-01 12:27:55 +01:00
Jelmer Vernooij
79fc0ddaf4 Merge branch 'master' of git://git.samba.org/samba into HEAD 2009-03-01 05:46:15 +01:00
Jelmer Vernooij
e6ec32f3ac Eliminate two duplicate SEC_ACE_TYPE constants already provided by
security.idl.
2009-03-01 04:59:07 +01:00
Jeremy Allison
7b9381fb4f Fix bug #6082 - smbd_gpfs_getacl failed: Windows client can´t rename or
delete file (directory fix).
Jeremy.
2009-02-28 13:14:23 -08:00
Volker Lendecke
5686a6d91a Fix async reading winbindd_response 2009-02-28 12:32:28 +01:00
Bo Yang
a54520fd4d Initialize the id_map status in idmap_ldap to avoid surprise 2009-02-27 09:28:46 -08:00
Günther Deschner
670a22852c s3-spoolss: use DSPRINT flags instead of SPOOLS_DS flags.
Guenther
2009-02-27 13:33:15 +01:00
Volker Lendecke
62db0ea0cf Use talloc_tos() in regkey_access_check() 2009-02-27 11:20:17 +01:00
Steven Danneman
61bedb4263 s3: fix guest auth when winbindd is running
This fix is very subtle.  If a server is configured with "security = share"
and "guest ok = yes" and winbindd is running authorization will fail during
tree connect.

This is due to our inability to map the guest sid S-1-5-21-X-501 to a uid
through sid_to_uid().  Winbindd is unaware of the hard coded mapping
between this sid and whatever uid the name in lp_guestaccount() is assigned.
So sid_to_uid() fails and we exit create_token_from_username() without
ever calling pdb_getsampwsid() which IS aware of the hard coded mapping.

This patch just reorganizes the code, moving sid_to_uid() down to the
block of code in which it is needed, avoiding this early failure.
2009-02-26 19:47:43 -08:00
Günther Deschner
b7b287d417 s3-rpcclient: add getjob spoolss command.
Guenther
2009-02-26 22:02:19 +01:00
Günther Deschner
a263d8f430 s3-rpcclient: use is_valid_policy_hnd before closing handles.
Guenther
2009-02-26 22:02:19 +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
c5e062ed74 s3: fix the build JOB_STATUS_BLOCKED -> JOB_STATUS_BLOCKED_DEVQ
Günther, please check...

Michael
2009-02-26 14:35:27 +01:00