| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | | |
Guenther
|
| | |
| | |
| | |
| | | |
Guenther
|
| | |
| | |
| | |
| | | |
Guenther
|
| | |
| | |
| | |
| | | |
Guenther
|
| | |
| | |
| | |
| | | |
Guenther
|
| | |
| | |
| | |
| | | |
Guenther
|
| | |
| | |
| | |
| | | |
Guenther
|
| | |
| | |
| | |
| | | |
Signed-off-by: Michael Adam <obnox@samba.org>
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Inside a directory, keep a file open and then renaming
the directory should fail with ACCESS_DENIED.
Jeremy.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Inside a directory, keep a file open and then renaming
the directory should fail with ACCESS_DENIED. This
is connected to the test case where the close was
failing due to a delayed write on a file not being
able to succeed when Samba allowed the containing
directory to be renamed.
I will fix this in the server shortly (this should be done
across connections also but with will be very hard
in Samba - would need a full scan of the open file
db on every directory rename) - so I will fix for
the local case first (scanning local file opens
inside an smbd is cheap).
Jeremy.
|
| | |
| | |
| | |
| | |
| | |
| | | |
This should fix the build on Mac OS 10
metze
|
| | |
| | |
| | |
| | |
| | |
| | | |
Günther, please check...
Michael
|
| | |
| | |
| | |
| | | |
metze
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
and loop from the end to the beginning so that we don't need
to rehash the subkeys...
This gets "net conf drop" with 2000 shares down to 14 seconds
on my box.
Michael
|
| | |
| | |
| | |
| | |
| | |
| | | |
This further speeds up net conf drop.
Michael
|
| | |
| | |
| | |
| | |
| | |
| | | |
delegating the call to the db backend
Michael
|
| | |
| | |
| | |
| | | |
Michael
|
| | |
| | |
| | |
| | |
| | |
| | | |
This is to provide a more atomic means of deleting a subkey of a key.
Michael
|
| | |
| | |
| | |
| | | |
Micheal
|
| | |
| | |
| | |
| | | |
Michael
|
| | |
| | |
| | |
| | |
| | |
| | | |
of regdb_store_values().
Michael
|
| | |
| | |
| | |
| | |
| | |
| | | |
use W_ERROR_... macros and separate assignments from checks
Michael
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Instead of calling store_reg_keys()
On my box, importing 2000 shares into an empty smbconf key
now takes some 32 seconds.
Michael
|
| | |
| | |
| | |
| | |
| | |
| | | |
by delegating to the db backend
Michael
|
| | |
| | |
| | |
| | | |
Michael
|
| | |
| | |
| | |
| | |
| | |
| | | |
This is to provide a more atomic means of adding a subkey of a key.
Michael
|
| | |
| | |
| | |
| | |
| | |
| | | |
a goto destination can be specified as a second parameter.
Michael
|
| | |
| | |
| | |
| | | |
Michael
|
| | |
| | |
| | |
| | | |
Michael
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
All access is now through accessor functions in reg_objects.c
This allows for performance tuning under the hood in the next step.
Michael
|
| | |
| | |
| | |
| | | |
Michael
|
| | |
| | |
| | |
| | | |
Michael
|
| | |
| | |
| | |
| | | |
Michael
|
| | |
| | |
| | |
| | | |
Michael
|
| | |
| | |
| | |
| | | |
Michael
|
| | |
| | |
| | |
| | |
| | |
| | | |
instead of using talloc directly.
Michael
|
| | |
| | |
| | |
| | |
| | |
| | | |
instead of using talloc on struct regsubkey_ctr.
Michael
|
| | |
| | |
| | |
| | | |
Michael
|
| | |
| | |
| | |
| | | |
Michael
|
| | |
| | |
| | |
| | | |
Michael
|
| | |
| | |
| | |
| | | |
Michael
|
| | |
| | |
| | |
| | |
| | |
| | | |
Use the reg_objects accessor regsubkey_ctr_specific_key() instead.
Michael
|
| | |
| | |
| | |
| | |
| | |
| | | |
Use the reg_objects accessor regsubkey_ctr_specific_key() instead.
Michael
|
| | |
| | |
| | |
| | |
| | |
| | | |
Use the reg_objects api instead.
Michael
|
| | |
| | |
| | |
| | |
| | |
| | | |
Use the reg_objects api instead.
Michael
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This paves the way for hiding the typedef and the implementation from the
surface.
Michael
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This reverts commit a13f065bad0f4d21a67e68b743f17f45bf0a4691.
This fix is reverted, because the speedup is going to move
further down into reg_objects.c. The unsorted list of subkey names
is going to be indexed: This O(n^2) search bites us in more places.
This re-establishes the abstraction of reg_objects.c.
Michael
|
| | | |
|