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

47660 Commits

Author SHA1 Message Date
Matthias Dieter Wallnöfer
254eb51c4c Registry server: Enhances commit "type" != NULL (when getting values) 2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
083785c091 Registry server "reg_ldb_unpack_value": Tests demonstrate that also "type" doesn't has to be NULL 2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
c26cb44e03 Revert "Registry server "reg_ldb_unpack_value": Let "data" pointer be NULL"
This reverts commit 82f50ea69f3aece4ac654ffdfa627babd8aadc25.
Cause: Windows (2000) doesn't accept the "data" pointer set to NULL
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
b23c3c24c2 Registry server "reg_ldb_unpack_value": Let "data" pointer be NULL
Prevent segfaults in some client applications (e.g. regdiff)
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
5f2ab665bd Registry server: Cosmetic corrections 2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
ac4808c11f Cleanups of server files
Cosmetic corrections
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
e23e997644 Registry server: More work to be compatible
Some fixup's and assure, that we send only initialized values.
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
f58f74949d ldb_get_value_by_id: Fix the return of the default value
The return of the values of a certain key has been broken since I've introduced the default value.
Now the behaviour is correct: If no default value exists, start with index zero to fetch the other values. Otherwise let zero be the default value and enumerate the others starting with one.
2008-10-21 14:40:41 +02:00
Matthias Dieter Wallnöfer
036b650ee4 reg_ldb_unpack_value: Change "CH_UTF8" in "CH_UNIX"
It's better to use "CH_UNIX" for unpacking, because the system charset doesn't have to be UTF8 and we should be compatible with "reg_ldb_pack_value".
2008-10-21 14:40:40 +02:00
Matthias Dieter Wallnöfer
1938cb1e83 ldb_del_value: Free key data also when removing the default attribute 2008-10-21 14:40:40 +02:00
Matthias Dieter Wallnöfer
d7be73eea2 Fixes for the WINREG RPC server
This changes the WINREG RPC server through some corrections into the Windows-like behaviour.
Compared with Windows 2000 and tested through Windows 2000 Registry Editor.
2008-10-21 14:40:40 +02:00
Matthias Dieter Wallnöfer
ad778c00e7 Fix for allowing the REG_BINARY type and introducing the default attribute
The REG_BINARY type is converted and stored in the LDB database as a leaf object with string-data.
The default attribute is saved directly in the hive object as the "data"-string.
2008-10-21 14:40:40 +02:00
Matthias Dieter Wallnöfer
16ab396d52 Fix for the empty string (REG_SZ) problem
I enhanced the "utf8_push" function, who finally accepts now also the char sequence "" with length 1 as valid UTF8 string.
2008-10-21 14:40:40 +02:00
Stefan Metzmacher
b295dca7a0 blackbox: fix source => source4
metze
2008-09-14 23:08:45 +02:00
Stefan Metzmacher
9d3d332092 Merge Samba3 and Samba4 together 2008-09-14 23:07:26 +02:00
Stefan Metzmacher
4f2b99646b lib/tdb: sync build system changes and python code from samba4
metze
(This used to be commit bdb8ed2448)
2008-09-14 19:23:00 +02:00
Jeremy Allison
a1cf3ad5d6 Remove unecessary msync.
Jeremy.
(cherry picked from commit 0bae1ef3de)
(This used to be commit db2acaf46f)
2008-09-14 19:20:09 +02:00
Simo Sorce
b39e332bd7 The msync manpage reports that msync *must* be called before munmap. Failure to do so may result in lost data. Fix an ifdef check, I really think we meant to check HAVE_MMAP here.
(cherry picked from commit 74c8575b3f)
(This used to be commit 8fd54bb55f)
2008-09-14 19:19:55 +02:00
Volker Lendecke
8c88209c6f Attempt to fix bug 5684
With the ctdb checkin dde9f3f006 tdb optimized out write lock checks for
write-enabled transaction. Sadly, this also removed the possibility to ever
remove dead records left over from tdb_delete calls within a transaction.

Tridge, please check this! Did dde9f3f006 have any reason beyond performance
optimizations?

Thanks,

Volker
(cherry picked from commit 3f884c4ae3)
(This used to be commit 1d85e0647e)
2008-09-14 19:19:45 +02:00
Stefan Metzmacher
bedd2710fb lib/talloc: sync build system changes from samba4
metze
(This used to be commit 0143c320cc)
2008-09-14 19:18:12 +02:00
Andrew Bartlett
afbd57080b Skip strcmp() on 2 NULL pointers.
Andrew Bartlett
(cherry picked from commit 7b9a647ebb)
(This used to be commit 60f7bdac64)
2008-09-14 19:17:19 +02:00
Kai Blin
b725e9e586 r26514: Revert the talloc.c part of r26511, as talloc.h already takes care of thois.
Thanks to metze for pointing this out
(cherry picked from commit 4a5e1047ff)
(This used to be commit 523cc93f89)
2008-09-14 19:12:57 +02:00
Stefan Metzmacher
375ca336fe r26511: Janitorial: Fix a warning for the 'printf' attribute on gendb_search_v
While at it, also add a PRINTF_ATTRIBUTE for talloc_vasprintf.
(partialy cherry picked from commit 5b3a8c8ae1)
metze
(This used to be commit 0073e41a01)
2008-09-14 19:12:39 +02:00
Simo Sorce
79297bc132 Update homepages for talloc, tdb and ldb subprojects
(cherry picked from commit 8cb07814bc)
(This used to be commit 7d85b8d076)
2008-09-14 19:04:05 +02:00
Michael Adam
ed902d2f91 Adapt source code checkout information to git repo in talloc website.
Michael
(cherry picked from commit 254be79799)
(This used to be commit ac724cddc4)
2008-09-14 19:03:55 +02:00
Michael Adam
5806d2694d Fix paths for talloc into unpacked directory (rsync commands).
Michael
(cherry picked from commit 2839d7f67a)
(This used to be commit a891494d93)
2008-09-14 19:03:46 +02:00
Michael Adam
be9363deed Fix path to talloc guide. Noted by "teferi" on irc.
Michael
(cherry picked from commit bc4e03f2dd)
(This used to be commit 5e5528ff96)
2008-09-14 19:03:31 +02:00
Jelmer Vernooij
586084688a r25614: Add trivial tdb website.
(cherry picked from commit 6f88c41c31)
(This used to be commit 830f99fb5d)
2008-09-14 19:00:08 +02:00
Stefan Metzmacher
9d6e473c22 Fix warnings on SuSE 9.0.
The macros "[un]likely" are already defined on SuSE 9.0.
Patch from Volker.

(partialy cherry-picked 30d181c924)
metze
(This used to be commit ad7ed33f78)
2008-09-14 18:50:13 +02:00
Volker Lendecke
f5d9068359 Fix bug 5400
Thanks to Jason Mader!

Volker
(cherry picked from commit 87d8a63ce4)
(This used to be commit 34ab9e5a23)
2008-09-14 18:47:15 +02:00
Stefan Metzmacher
121bcbdb7f Fix out of tree build. Remove the embedded srcdir path from talloc and tdb.
(partialy cherry picked from commit 359921acd4)
metze
(This used to be commit d89b8fee52)
2008-09-14 18:46:34 +02:00
Stefan Metzmacher
e86dc14d83 libreplace: include <krb5.h> and <com_err.h> and no heimdal specific headers
metze
(partialy cherry picked from commit cffed8e19e)
(This used to be commit f46a17b408)
2008-09-14 18:28:17 +02:00
Yannick Bergeron
6b7c4413fe using NGROUPS_MAX instead of 32 for the max group value in rep_initgroups() subroutine in lib/replace/replace.c
(cherry picked from commit 13b1a232d2)
(This used to be commit 0d2fb0e280)
2008-09-14 18:26:59 +02:00
Yannick Bergeron
b3b28162b6 Solve an IBM XL C/C++ compiler error encountered in get_exit_code() auth_errors array initialization in client/smbspool.c
(cherry picked from commit b45e7fabc6)
(This used to be commit 661f8e1661)
2008-09-14 18:26:59 +02:00
Karolin Seeger
2bb8ef091c Fix typo.
retieve -> retrieve

Karolin
(partialy cherry-picked from 37c6413070)
metze
(This used to be commit 4d92e6d582)
2008-09-14 18:26:59 +02:00
Volker Lendecke
277e095f78 Correctly find a [u]int32_t replacement
(cherry picked from commit 346375cda5)
(cherry picked from commit 15a53945c9)
(This used to be commit 46c3fc67e9)
2008-09-14 18:22:17 +02:00
Jelmer Vernooij
8f691ac524 Fix extra dash in command line flag.
(cherry picked from commit c823cfadb0)
(This used to be commit 176d624376)
2008-09-14 18:20:42 +02:00
Jeremy Allison
b2c4838543 Fix replacement getpass. If we ^C at the prompt echo was left off.
Jeremy.
(cherry picked from commit e54c71954a)
(This used to be commit d61a86b8cd)
2008-09-14 18:19:59 +02:00
Stefan Metzmacher
9a222474bb rpc_server: don't send auth trailers in level connect
Also ignore auth trailers in level connect on receive.

This fixes [krb5,connect] against windows.

TODO: maybe the gensec mech need to decide if signatures
      are needed in level connect.

metze
(This used to be commit 2e36297197)
2008-09-13 20:37:12 +02:00
Stefan Metzmacher
48f500edc0 librpc/rpc: don't send auth trailers in level connect
Also ignore auth trailers in level connect on receive.

This fixes [krb5,connect] against windows.

TODO: maybe the gensec mech need to decide if signatures
      are needed in level connect.

metze
(This used to be commit eca0502b86)
2008-09-13 20:37:12 +02:00
Stefan Metzmacher
de53ddee89 rpc_server: correctly calculate the auth padding
metze
(This used to be commit e82468a8f5)
2008-09-13 20:37:11 +02:00
Stefan Metzmacher
73ebb58f2d client free credentials when not needed anymore
(This used to be commit d982b69df6)
2008-09-13 20:37:11 +02:00
Jeff Layton
73caef2c12 mount.cifs: make local versions of strlcat and strlcpy static
...to silence -Wmissing-prototypes

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit fc7c71f15b)
2008-09-12 21:21:33 -04:00
Jeff Layton
56d5149dc6 cifs.upcall: make most functions static and silence compiler warnings
...to silence -Wmissing-prototypes and some uninit'ed variable
warnings. Thanks to GD for the extra-paranoid compiler flags.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
(This used to be commit f0ee2c145f)
2008-09-12 21:13:54 -04:00
Jeremy Allison
c7b75de962 Modify a comment to make things clearer.
Jeremy.
(This used to be commit 9d55ca85ff)
2008-09-12 15:03:05 -07:00
Jeremy Allison
6ce1c893fa Comment the delay write time tests so I know what they're
testing.
Jeremy.
(This used to be commit 2bf9074c77)
2008-09-12 14:59:32 -07:00
Volker Lendecke
ffbc38abe1 Factor out validate_smb_crypto
(This used to be commit 37fcc9dc46)
2008-09-12 23:09:17 +02:00
Volker Lendecke
ced409b5f7 Fix "make test" -- gna...
(This used to be commit c1d3ae80b5)
2008-09-12 22:29:56 +02:00
Volker Lendecke
0e9f348f1d Add a more explaining comment
(This used to be commit edd70836da)
2008-09-12 21:56:40 +02:00
Volker Lendecke
d892b1c886 remove a pointless empty line
(This used to be commit fba250ece4)
2008-09-12 21:42:34 +02:00