1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-28 12:23:49 +03:00
Commit Graph

1760 Commits

Author SHA1 Message Date
Simo Sorce
e12f070958 r13347: - Now we compare values with an optimized utf8
safe function if the user provides an utf8
compliant casefold function to ldb.

- Fix toupper_m and tolower_m to not crash if
the case tables are not found

- Let load_case_table() search into the correct
directory in the search tree for the case
tables so that we can test utf8

Simo
2007-10-10 13:51:47 -05:00
Andrew Bartlett
b986278b36 r13341: Trivial. 2007-10-10 13:51:46 -05:00
Andrew Bartlett
db32a81f3e r13340: The gensec_init() needs to be after the popt processing, as it
disables modules based on parametric options.

Andrew Bartlett
2007-10-10 13:51:46 -05:00
Simo Sorce
baccb3c914 r13336: Doh! We actually never optimized for the ascii case.
In the 3.0 branches it is fixed this but we missed it for samba4
2007-10-10 13:51:45 -05:00
Simo Sorce
6104f90086 r13335: Fix the build and add an utf8 safe ldb_hadler_fold function
based on ldb_casefold
2007-10-10 13:51:45 -05:00
Simo Sorce
3b4eb2413b r13333: revert previous commit I will use ldb_caseless_cmp in attrib_handlers
to correctly support utf8 comparisons

add an ldb_attr_Casefold function for attribute names and use it
instead of casefold in the right places
2007-10-10 13:51:45 -05:00
Simo Sorce
afda68d7bf r13328: After the attribute name check cleanup it turned up ldb_caseless_cmp()
was used just in one places and by mistake, as there we should have
been using ldb_attr_cmp()

Remove ldb_caseless_cmp() ... going on with the cleanup and utf8 compliance
effort.

Simo.
2007-10-10 13:51:44 -05:00
Simo Sorce
12faf55683 r13325: let samba register it's own utf8 aware functions in ldb 2007-10-10 13:51:44 -05:00
Simo Sorce
ac9b8a41ff r13324: From now on check attribute names obey rfc2251
Also add a way to provide utf8 compliant functions
by registering them with ldb_set_utf8_fns()

Next comes code to register samba internal utf8 functions.

Simo.
2007-10-10 13:51:44 -05:00
Andrew Bartlett
fd974fb647 r13317: Create a new function messaging_client_init() which can be used when
we don't have a server messaging context.  We should replace the
datagram messages with stream sockets in this case, so we don't have
to create a unique socket.

Andrew Bartlett
2007-10-10 13:51:43 -05:00
Simo Sorce
4b5c0493e2 r13289: Check the tree is not NULL
Thanks to Aaron J. Seigo <aseigo@kde.org> for spotting this
2007-10-10 13:51:43 -05:00
Andrew Tridgell
a37d9434d1 r13283: added two optimisations to the tdb transactions code. The first is to
more agressively coalesce entries in the linked list of the undo
log. The second is to ensure that writes during a transaction into the
hash table don't cause the size of the undo log linked list to grow.

These optimisations don't affect Samba much, but they make a huge
difference to the use of ldb in kde
2007-10-10 13:51:42 -05:00
Andrew Tridgell
6ec71ffbc1 r13278: remove a silly strcasecmp() replacement 2007-10-10 13:51:42 -05:00
Andrew Tridgell
a49d024f3d r13268: fixed typo noticed by Aaron Seigo 2007-10-10 13:51:40 -05:00
Andrew Bartlett
29cb5af827 r13258: Fix the talloc heirachy for ldb_tdb.
In the return value res->msgs, msgs was not a child of res, in the
indexed path.  Instead, it hung directly off the ldb, which was
sometimes a long-term context.

Also remove unused parameters.

Found by --leak-report-full

Andrew Bartlett
2007-10-10 13:51:39 -05:00
Andrew Bartlett
53efb3e3e9 r13256: Free temporary memory on error cases, and try to clean up what's left
earlier.

Move gendb_search() to use talloc_vasprintf() and steal only the parts
actually being used for the results.

Andrew Bartlett
2007-10-10 13:51:39 -05:00
James Peach
cd2f94a658 r13255: New CIFS dd client for use in performance testing. The guts of this is
in client/cifsdd*, which implements a minimal implementation of dd. The
IO path is careful to always perform IO at the requested block size.

There is a very basic test suite in script/tests/test_cifsdd.sh which
covers local and remote IO at a variety of block sizes.

Added to lib/util_str.c is a small set of conv_str_*() functions to
convert strings to the corresponding type.

smbcli_parse_unc is modified to insert NULL terminators after its
hostname and sharename parameters. This allows it to correctly parse a
path of the form //foo/share/path/file.
2007-10-10 13:51:39 -05:00
Andrew Bartlett
8866aa06ff r13244: Allow control of the location of the Samba3-compatible winbindd pipe
in Samba4.  This allows us to start winbindd by default, including in
'make test'.

This is via a new 'winbindd socket directory' parameter for utilities
linked against loadparm, as well as a --with-winbindd-socket-dir
option to configure (setting the default and the value for simple
clients).

I hope to add basic winbindd tests, to ensure continued correct
operation, but at least now I don't have to manually change my 'server
services' line.

The other problem with the hard-coded /tmp/.winbind is that RedHat has
moved this in Fedora (to /var/run I think).  For this reason, this
functionality should probably be ported to Samba3 as well.

The default for Samba4 is PREFIX/var/run/winbind_pipe.

I have also re-added the paranoia checks from Samba3 for correct
permissions on the socket directory.

Andrew Bartlett
2007-10-10 13:51:37 -05:00
Andrew Bartlett
1ac7976ea6 r13206: This patch finally re-adds a -k option that works reasonably.
From here we can add tests to Samba for kerberos, forcing it on and
off.  In the process, I also remove the dependency of credentials on
GENSEC.

This also picks up on the idea of bringing 'set_boolean' into general
code from jpeach's cifsdd patch.

Andrew Bartlett
2007-10-10 13:51:33 -05:00
Andrew Bartlett
78d634047f r13205: Add another useful comment.
Andrew Bartlett
2007-10-10 13:51:33 -05:00
Jelmer Vernooij
da72f47226 r13186: Remove assumption that callers that specify -1 actually mean sizeof(pstring) 2007-10-10 13:51:32 -05:00
Jelmer Vernooij
e9059ea0c5 r13181: Fix standalone ldb build 2007-10-10 13:51:32 -05:00
Simo Sorce
b9d1d02f38 r13167: handle cotrols' reply even in error 2007-10-10 13:51:31 -05:00
Simo Sorce
335050b30d r13166: Patches form Brad Hards 2007-10-10 13:51:31 -05:00
Stefan Metzmacher
317a3eefee r13114: remove 'const' and make clear what the parameters are for
metze
2007-10-10 13:51:27 -05:00
Stefan Metzmacher
7cb4e1bd04 r13112: merge over some stuff from samba3
metze
2007-10-10 13:51:26 -05:00
Stefan Metzmacher
780870293b r13079: add SAMBA_VERSION_RELEASE_NICKNAME
if it's set in source/VERSION

smbd --version will print
4.0.0tp1 (Nickname)

metze
2007-10-10 13:51:23 -05:00
Andrew Tridgell
3f0600e223 r13078: fixed the ldb comparison function for objectSids 2007-10-10 13:51:23 -05:00
Jelmer Vernooij
3e3a0c96cd r13074: Add oLschema2ldif manpage 2007-10-10 13:51:22 -05:00
Jelmer Vernooij
cc35a4bc0e r13067: Don't install ldbtest 2007-10-10 13:51:21 -05:00
Jelmer Vernooij
8195e4f856 r13064: Add 'tags' target to LDB's makefile 2007-10-10 13:51:20 -05:00
Stefan Metzmacher
880dd3538e r13000: fix compiler warnings
metze
2007-10-10 13:51:16 -05:00
Andrew Bartlett
4a50bf95b9 r12995: Don't allow overrides on "name" from above, as it can't be correct.
Andrew Bartlett
2007-10-10 13:51:15 -05:00
Simo Sorce
c12b3c5cb4 r12989: move the control parsing and handleng functions to cmdline.c
so that they can be used by the other ldb tools as well
2007-10-10 13:51:14 -05:00
Stefan Metzmacher
1fe6718949 r12984: add parse code and ldbsearch cmdline code for
NOTIFICATION LDAP Controls
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ldap/ldap/ldap_server_notification_oid.asp

this doesn't work yet, but it shows that we need to extend ldb to correctly
handle async requests...

metze
2007-10-10 13:51:14 -05:00
Stefan Metzmacher
ce9f086c3c r12983: - fix using a DIRSYNC cookie from the command line
- also w2k doesn't work correct with max_attrs = 0, so we should use
  a high number, with this I'm getting the same results from w2k and w2k3

metze
2007-10-10 13:51:14 -05:00
Simo Sorce
bebd403523 r12977: Some code to implement the client side of the Dirsync control
Still investigating how it works.

Simo.
2007-10-10 13:51:13 -05:00
Stefan Metzmacher
8fc2b68aa8 r12959: hopefully fix bug #3365 this time
metze
2007-10-10 13:51:12 -05:00
Stefan Metzmacher
157fd2734d r12948: fix compiler warning
metze
2007-10-10 13:51:12 -05:00
Simo Sorce
982576d248 r12942: this way is better 2007-10-10 13:51:11 -05:00
Simo Sorce
900f4fd343 r12941: Add Attribute Scoped Search control
want to see what it does ?

do aq make test and try:
./bin/ldbsearch -H st/private/sam.ldb --controls=asq:1:member -s base -b 'CN=Administrators,CN=Builtin,DC=samba,DC=example,DC=com' 'objectclass=*'

have fun.
simo.
2007-10-10 13:51:11 -05:00
Simo Sorce
dd386bdc6c r12925: implement client side of ASQ control 2007-10-10 13:51:07 -05:00
Stefan Metzmacher
e70ca698ce r12911: try to fix bug #3365
metze
2007-10-10 13:51:02 -05:00
Stefan Metzmacher
a6f279bc43 r12909: add an ldb module for the wins.ldb,
it currently doesn't do much, but it's later
prevent adding corrupted records via ldbedit,
and will take care of the versionID counter

metze
2007-10-10 13:51:02 -05:00
Stefan Metzmacher
e98d483174 r12850: - add Doxygen comments to ldb
- 'make doxygen' generated the api documentation under apidocs/

Many thanks to Brad Hards <bradh@frogmouth.net> for the patches!

metze
2007-10-10 13:50:53 -05:00
Stefan Metzmacher
552e12c05d r12849: fix typo
metze
2007-10-10 13:50:53 -05:00
Stefan Metzmacher
4d32d50ccd r12847: add some ldb examples from Brad Hards (bradh@frogmouth.net)
metze
2007-10-10 13:50:06 -05:00
Stefan Metzmacher
bf6065b11f r12846: some fixes
metze
2007-10-10 13:50:05 -05:00
Stefan Metzmacher
5d0ae1d2ae r12845: fix some typos
metze
2007-10-10 13:50:05 -05:00
Stefan Metzmacher
75a98047d6 r12844: don't include system headers directly
metze
2007-10-10 13:50:05 -05:00