1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

13520 Commits

Author SHA1 Message Date
Stefan Metzmacher
79affaf37a r25725: merge commit bc9008aa1dcb66890795f0ff2d3046da7df867d9 from v3-2-test:
Author:     Jeremy Allison <jra@samba.org>
AuthorDate: Wed Oct 24 14:40:24 2007 -0700

We do support name lookups for host and service in our replacement
code - remove the restrictions from the original Postgres code.

Jeremy.
(This used to be commit 25a892f2ad1b281869779686ca23f2ed29b46a5c)
2007-12-21 05:43:29 +01:00
Stefan Metzmacher
88f6c5a1d2 r25724: - include getaddrinfo.h after we have defined struct addrinfo
- use rep_ instead of pg_ as prefix in getaddrinfo.[ch]
- define HAVE_<name> macros when we replace functions

metze
(This used to be commit 57d5cf4b5fe8885b1375059aa143c9c71d2503b4)
2007-12-21 05:43:29 +01:00
Andrew Bartlett
1f680ef45d r25723: Add a check to prevent deletion of entries with children. Sadly MMC
doesn't trigger it's recursive delete correctly, but the error return
is correct (but perhaps needs a different LDAP wire format).

Andrew Bartlett
(This used to be commit 10ba3ae6990098e772683de9144b13b3f1d45a36)
2007-12-21 05:43:29 +01:00
Jelmer Vernooij
b28810ab94 r25722: Start merging the various test plan files for Samba 4 into one, so that it'll
be easier to split selftest/ into a generic, a Samba 3 and a Samba 4-specific
bit.
(This used to be commit 5deb3a6fab6d1b4197b8a019ad5602055b50f9d3)
2007-12-21 05:43:28 +01:00
Stefan Metzmacher
f3dbce01ef r25721: remove unused var
metze
(This used to be commit d878351e820957451b1130d0e5724faf7a4c0370)
2007-12-21 05:43:27 +01:00
Stefan Metzmacher
3e1fbf76ba r25719: let "system/network.h" do the replacements first, then
roken.h.in can do the missing heimdal bits.

this removes to redifinition of 'struct addrinfo' on some platforms

metze
(This used to be commit 317b6494452f6162465000fe71e5c40c260f735a)
2007-12-21 05:43:26 +01:00
Stefan Metzmacher
31569f1c88 r25718: [libreplace] if we replace types define the HAVE_<type> macro
this is needed as heimdal's roken.h also tries to replace the types

metze
(This used to be commit 8b92b811015d0855efe3cf4c58cd08e3654f8e88)
2007-12-21 05:43:26 +01:00
Stefan Metzmacher
582496f5d0 r25715: [libreplace] move definition of struct addrinfo so that it can use socklen_t
metze
(This used to be commit 12cec014c465a55974aedf44e0e782f5fb841088)
2007-12-21 05:43:25 +01:00
Stefan Metzmacher
c01f61340b r25714: [libreplace] move define of a constant to near to the others
metze
(This used to be commit 8bd2cf71bee1a08c3d420a330730434edbac5e28)
2007-12-21 05:43:25 +01:00
Stefan Metzmacher
1cfd89c6aa r25713: [libreplace] include socket_wrapper.h after we have typedef'ed socklen_t
metze
(This used to be commit a3657a4e7175e35707e7a00330f6924833774253)
2007-12-21 05:43:24 +01:00
Stefan Metzmacher
135852240e r25712: try to fix the build, perl should handle by_path as comparison function
metze
(This used to be commit ee47f5dc7947cad7eed84f071112e41c4a687275)
2007-12-21 05:43:24 +01:00
Stefan Metzmacher
1b8da06a00 r25711: only use sort if available
metze
(This used to be commit 1f5a98cd91f73f8f16d941fe8bb375fec704f0dd)
2007-12-21 05:43:24 +01:00
Andrew Bartlett
5cfa773202 r25710: Finally fix subtree renames. Untested code is broken code and in this
case an oddity of the javascript caused the test to 'pass'.

For the same oddity, we have a failure in ldb's handling of spaces in
DNs.  We need to resolve that too.

Andrew Bartlett
(This used to be commit e8cbac1a46f4d3b083e6bb5a509ef1ba47bebff1)
2007-12-21 05:43:24 +01:00
Jelmer Vernooij
45c3d150d5 r25707: Move selftest makefile code to separate file.
(This used to be commit 9714db7814fd43d2a10485c041bbb761360c0826)
2007-12-21 05:43:23 +01:00
Günther Deschner
34fa7e3d2c r25706: Merge padding fix from Samba3.
Guenther
(This used to be commit d33667f914d8f292f008c1e6288868bcd3392da8)
2007-12-21 05:43:23 +01:00
Andrew Bartlett
c2e5cf6e31 r25705: Ensure we return the out value to the caller.
Andrew Bartlett
(This used to be commit 3434262ad74c366ac58319c70880ca50898fa78c)
2007-12-21 05:43:22 +01:00
Andrew Bartlett
35dc4d9999 r25704: Handle the chicken-and-egg problem of setting up the LDB before we get
a schema.  perhaps i need to look into metze's 'load a schema from
ldif' code.

Andrew Bartlett
(This used to be commit f350ef5f19ec755c93c6c09210cdf276d1b66877)
2007-12-21 05:43:22 +01:00
Andrew Bartlett
e85370e703 r25703: Use less entropy by using the pointer value as a process-unique token.
Andrew Bartlett
(This used to be commit 3480dc71a9f969909b984855d546a1974593368f)
2007-12-21 05:43:21 +01:00
Andrew Bartlett
c4ebf9587f r25702: Clarify comments and make this module more strict on objectclasses.
This is becoming the schema module...

Andrew Bartlett
(This used to be commit ecea817a3e793f8ac0187dd83a29e62a7d645868)
2007-12-21 05:43:21 +01:00
Andrew Bartlett
7619978553 r25701: Clarify comment
(This used to be commit cea496d2163db6dde371526dd5a79d4c090839ef)
2007-12-21 05:43:20 +01:00
Jeremy Allison
c940bec8d7 r25700: Now BOOL no longer exists in Samba 3.2, use bool instead.
Jeremy.
(This used to be commit ad0b9792f2dc91208a199060585c83ed7f622451)
2007-12-21 05:43:20 +01:00
Günther Deschner
bd2bf8990a r25699: Add ForceReplication test.
Guenther
(This used to be commit 0bab602b8e38ca758d3795db3d33a92eb162bb92)
2007-12-21 05:43:19 +01:00
Stefan Metzmacher
df3f31d2d5 r25697: make *clean doesn't work after a svn up when some *.mk files were removed
the error is:
SAMBA_4_0/source> make clean
make: *** No rule to make target `lib/ldb/samba/config.mk', needed by `Makefile'.  Stop.

the problem is:
Makefile: config.status $(MK_FILES)
	./config.status

so now we let the MK_FILES variable empty for the *clean targets
if gnu make is detected, we should later test if this construct
is portable to other make implementations and remove the check for gnu make.

metze
(This used to be commit 4c8e539af1e8f14bb449c92db3376dec12344e5b)
2007-12-21 05:43:19 +01:00
Günther Deschner
e77a831319 r25696: Fix pipe name for dfs.
Guenther
(This used to be commit 7a0441948977bd97508ab662a550b8664e87c724)
2007-12-21 05:43:18 +01:00
Stefan Metzmacher
1a766af41e r25695: [libreplace] fix the standalone build of libreplace
all configure results which are used in replace.h
or any system/*.h should be in the in the libreplace
*.m4 files!

metze
(This used to be commit 95462d614d68a93e85232e3a779f8bfa86fba4d1)
2007-12-21 05:43:18 +01:00
Andrew Bartlett
4bb52bfcb7 r25694: Move subtree_rename above the partitions module. The next step is to
built a linked_attributes module under this.

Andrew Bartlett
(This used to be commit 4f47e687e579feeb10bb866d62f0c757e5389709)
2007-12-21 05:43:17 +01:00
Andrew Bartlett
21c65d93eb r25693: Implement the rest of subtree renames, now that tridge waved his magic
over the ldb_tdb part of the problem.

Andrew Bartlett
(This used to be commit daca0cfd2fc2ec3344415d2d31f399ee3bf16151)
2007-12-21 05:43:17 +01:00
Andrew Tridgell
5861a17042 r25692: fixed another example where the free of fde and the free of the socket
causes the fd to be closed before epoll is told
(This used to be commit d19686cf8a3aba0c6601c5fa58cbf74461055c1c)
2007-12-21 05:43:16 +01:00
Andrew Tridgell
62078f17ba r25691: make "server role" case insensitive
(This used to be commit f61a9b706894de4fa8916b55a24f330eed9f5b0c)
2007-12-21 05:43:15 +01:00
Andrew Tridgell
0906096ee4 r25690: - only use a readonly traverse in ldb_search when not in a transaction. When we are in a transaction then we could be in a top level modify operation (such as rename), so we must use a writeable traverse so that the async callbacks can do the modifies while the search is progressing.
- don't do the lockall operation on the tdb during a ldb search if in
  a transaction, as this would prevent modifies by callbacks as well
(This used to be commit aa9ab431e071882f42ebc882e809ae1d4b8778d4)
2007-12-21 05:43:15 +01:00
Andrew Tridgell
ab52f9314d r25689: test with a non-zero size file
(This used to be commit 2a6713aa239d07f6898f507ddb3631504c379792)
2007-12-21 05:43:14 +01:00
Volker Lendecke
4e5e316022 r25688: Add a simple test for a samba3 regression
When trying an reqchal/auth2 for an unknown workstation account, we have
to return NT_STATUS_NO_TRUST_SAM_ACCOUNT to the auth2. v3-2-test right
now returns NT_STATUS_ACCESS_DENIED, which seems to prevent XP from
joining a Samba3 PDC.
(This used to be commit 99cc861238a33d43ccc4e97cb5ab756c0a097e1d)
2007-12-21 05:43:14 +01:00
Stefan Metzmacher
9f53479997 r25687: Move #defined for getaddrinfo into network.h (as other
defines). Allows RHEL4 compile to work.
Jeremy.
(cherry picked from commit 0ffdf4fdeea88c21880c8bf69d8db56fb49effa7)
(This used to be commit facb811bb3c77a0b98089c283fe0707c5f486c88)
2007-12-21 05:43:14 +01:00
Stefan Metzmacher
1b73fcadb2 r25686: Added in missing def for AI_ADDRCONFIG.
Jeremy.
(cherry picked from commit 3ef3c3afc3f56b0f4fdb384d55d2e712060fbedf)
(This used to be commit 5d2995c413ff3da801c40fc6d631e2cd443695e3)
2007-12-21 05:43:13 +01:00
Stefan Metzmacher
c68e3d8d65 r25685: rename getsmbpass -> rep_getpass and provide the function prototype
metze
(cherry picked from commit 96820f8d8f6522fc264efda0f069e2f6a420ac2e)
(This used to be commit cd5069a8ca17a3a14814c0fbf55f113690291165)
2007-12-21 05:43:13 +01:00
Stefan Metzmacher
de0343b77b r25684: use "system/*.h" to get the system includes
metze
(cherry picked from commit d20c2fa274297e9577ed28b8ed04806a425bdc57)
(This used to be commit ee8557783534ac5b075a8a4655a12b33b854c050)
2007-12-21 05:43:13 +01:00
Stefan Metzmacher
2367364094 r25683: fix the compilation of getpass.c and it's configure test
metze
(cherry picked from commit f4c0961a16a84dcdfe6e2faafb75c76983e6d466)
(This used to be commit 5d747fcad0b0ac66584da500148e7647122e0544)
2007-12-21 05:43:12 +01:00
Stefan Metzmacher
190039a378 r25682: r16320: Ensure variable is not null before calling fclose. Klocwork #412. Jeremy.
(cherry picked from commit 33ee0cfb190a883229d0824d7194898fd8966ceb)
(This used to be commit 3910d069413834744b17175bb29775a69002712e)
2007-12-21 05:43:12 +01:00
Stefan Metzmacher
066f56bfef r25681: r16245: Cope with string being zero len. Klocwork bug #410. Jeremy.
(cherry picked from commit 46c12de07fe6f44bcf58ca9de276e7932384843d)
(This used to be commit 7099dde3fd8962e752451ebe2d5d79de4d7caee9)
2007-12-21 05:43:11 +01:00
Stefan Metzmacher
50a749404b r25680: Volker's fix for bug #668. Change the \n after the password prompt to go to tty instead of stdout.
(cherry picked from commit 0cd1ed0424ce87f60070d43caffda41be6706d59)
(This used to be commit 249d69fd85b67657a4523ffc9244a8b4ab01270a)
2007-12-21 05:43:11 +01:00
Stefan Metzmacher
2627603506 r25679: reapply: Allow ^C to interrupt smbpasswd if using our getpass. from Jeremy
metze
(cherry picked from commit d4ae42b1b2982dd786d6da16d7fa964d25fd3356)
(This used to be commit a11d21790fc2ee33998e042195ccbad73631bad8)
2007-12-21 05:43:11 +01:00
Stefan Metzmacher
090015a6fb r25678: reformat getpass() replacement code
metze
(cherry picked from commit 3e8f43e3cf97f10be4717978643ef3edca8650a5)
(This used to be commit 78da4477a7ef920ff77b41abb841465511b8db31)
2007-12-21 05:43:10 +01:00
Stefan Metzmacher
ce7a3abcd8 r25677: add missing stuff from samba3
metze
(This used to be commit d286c0533dd2726ebc547dcaf99f45169d4a9d2f)
2007-12-21 05:43:09 +01:00
Andrew Tridgell
e95a5e2541 r25676: fixed a valgrind error in the epoll event backend. The linked list
could get mucked up.
(This used to be commit 67240f380b2828eb85463ab2d256ae601f57348f)
2007-12-21 05:43:09 +01:00
Günther Deschner
c7a1a4abfa r25675: More frsapi IDL.
Guenther
(This used to be commit 7ab033e8395d5284e9223618c238ff94d3948ac8)
2007-12-21 05:43:09 +01:00
Stefan Metzmacher
c28074da32 r25674: fix crash bug in pidl generated client code, this
could have happend with [in,out,unique] pointers
when the clients sends a valid pointer, but the server
reponse with a NULL pointer (as samba-3.0.26a do for some calls).

I've tested with midl to see how windows handles this situation
and also the reverse case where the client sends NULL and
the server reposnse with non-NULL.

It appears that midl generated code just ignores this
and only copies the result if both pointers are non-NULL.

metze
(This used to be commit 7203f717a676a741e49f96f2d477f4f459575caf)
2007-12-21 05:43:08 +01:00
Günther Deschner
af0832769f r25673: Ignore RPC-FRSAPI for samba4.
Guenther
(This used to be commit b9d53f1eea8c1840e24edcbcbc3a284123ecfa36)
2007-12-21 05:43:08 +01:00
Günther Deschner
177faf940f r25672: Some more FRS werrors.
Guenther
(This used to be commit 8fa3de8dca9e9d0d9f7fc79e4fc78b85313f870b)
2007-12-21 05:43:08 +01:00
Günther Deschner
d026214c09 r25671: Add stub FRSAPI_FORCE_REPLICATION.
Guenther
(This used to be commit a7ebef8dd744104da7216344867d8d2bd5463d1f)
2007-12-21 05:43:07 +01:00
Günther Deschner
5da21cd19b r25670: Add torture test for frsapi_IsPathReplicated().
Guenther
(This used to be commit e7fc3c1da9764a2e7c103e05f3d774b540334f75)
2007-12-21 05:43:07 +01:00