1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-29 04:23:51 +03:00
Commit Graph

15694 Commits

Author SHA1 Message Date
Michael Adam
58dfb0ff3c libreplace: put inet_aton.c under LGPL instead of GPL.
Michael
(This used to be commit cca5d6626f)
2008-03-18 16:10:47 +01:00
Michael Adam
195853464a smbtorture: fix typos in RAW-OPLOCK output.
Michael
(This used to be commit 9fa4b53b61)
2008-03-18 16:10:46 +01:00
Stefan Metzmacher
7a5438ae11 libreplace: remove unused SOCKET_LIBS and NSL_LIBS
metze
(This used to be commit 62bb177a6e)
2008-03-18 15:59:23 +01:00
Stefan Metzmacher
7b412ccade lib/socket: use LIBREPLACE_NETWORK instead of EXT_SOCKET and EXT_NSL
The configure checks are also in libreplace now.

metze
(This used to be commit 07e931a77f)
2008-03-18 15:59:22 +01:00
Stefan Metzmacher
23c35481fa libreplace: for samba4 create LIBREPLACE_NETWORK as EXT_LIB
metze
(This used to be commit 79037c3133)
2008-03-18 15:59:22 +01:00
Stefan Metzmacher
1ef171f6e0 libreplace: use LIBREPLACE_NETWORK_LIBS within some configure checks
...instead of using SOCKET_LIBS and NSL_LIBS.

metze
(This used to be commit cef2e8d748)
2008-03-18 15:59:22 +01:00
Stefan Metzmacher
cbc5e58b8f libreplace: combine SOCKET_LIBS and NSL_LIBS to LIBREPLACE_NETWORK_LIBS
But keep the old ones untill the callers are fixed.

metze
(This used to be commit e7115dcc8a)
2008-03-18 15:59:22 +01:00
Stefan Metzmacher
d53467b9af ldb: remove configure with 'make realdistclean'
configure.in doesn't exist at all...

metze
(This used to be commit ca414d4e9e)
2008-03-18 15:59:21 +01:00
Stefan Metzmacher
7bf6895b67 ldb: nothing uses "system/network.h" so don't include it
metze
(This used to be commit 087667e0cd)
2008-03-18 15:59:21 +01:00
Stefan Metzmacher
92f6333535 ldb: fix the standalone build
metze
(This used to be commit 91b49365ab)
2008-03-18 15:59:21 +01:00
Stefan Metzmacher
5b35e55130 selftest: fix parsing of Subunit results
This reverts parts of
903eb9a23d
and
9196213c49.

metze
(This used to be commit 5f5fa368c2)
2008-03-18 15:59:21 +01:00
Volker Lendecke
3b63333cf2 Allocate one 0-byte in asprintf replacement when len==0
Some S3 code depends on this.
(cherry picked from commit dc3d5e1645)
(This used to be commit 842d144b4f)
2008-03-18 13:48:21 +01:00
Stefan Metzmacher
297399d877 selftest: use a separate var for printing out sub parts of lines with \r
This restores the bahavior of the $_ variable in the code
that detects expected failures.

metze
(This used to be commit 903eb9a23d)
2008-03-18 13:16:44 +01:00
Kai Blin
a1875b039b idmap: Map SIDs to unixids instead of uids/gids
(This used to be commit 73ac7c4a1c)
2008-03-18 10:55:31 +01:00
Kai Blin
3dddbb5e26 make: Fix make valgrindtest-env
(This used to be commit f56912e3b5)
2008-03-18 10:54:28 +01:00
Stefan Metzmacher
3530099cf2 RAW-BENCH-OPEN: avoid sync calls before the main loop
On multi cpu machines the server may reply to the
first requests while the test is still in setup mode.

Now we setup the first opens, but send them all together
when entering the main loop.

metze
(This used to be commit 3f2d12c61e)
2008-03-17 16:06:07 +01:00
Stefan Metzmacher
b65ad8966a RAW-BENCH-OPEN: fix the output and calculate the total operations
metze
(This used to be commit c84e3abae9)
2008-03-17 15:50:54 +01:00
Stefan Metzmacher
0de47f6b57 selftest: handle progress output in verbose mode
metze
(This used to be commit 9196213c49)
2008-03-17 15:50:49 +01:00
Stefan Metzmacher
3e8124bc66 socket_wrapper: make pcap code more portable
Now the pcap support works on x86_64.

metze
(This used to be commit 61a87bed61)
2008-03-17 15:50:35 +01:00
Andrew Bartlett
87e6d7eab1 Don't require users of credentials.h to have krb5.h and gssapi.h
Rather than require users of Samba4's headers to have krb5-devel
installed (presumably in their system paths), don't expose the minor
functions which require this by default.

Andrew Bartlett
(This used to be commit f14737e4d2)
2008-03-17 15:22:52 +11:00
Stefan Metzmacher
e76c8aa097 pvfs_open: set h->have_opendb_entry directly after odb_open_file()
Otherwise we may not clean up in the destructor.

metze
(This used to be commit 218ec98a16)
2008-03-15 12:36:20 +01:00
Stefan Metzmacher
74d940ca57 pvfs_open: the pvfs_odb_retry structs need to be children of the request
Otherwise they're not cleaned up when the request is finished.

metze
(This used to be commit 055760f0f4)
2008-03-15 12:35:04 +01:00
Stefan Metzmacher
1f65ddb336 pvfs_unlink: disable async retries for wildcard deletes
We would setup multiple retries per client request.

metze
(This used to be commit 951764e284)
2008-03-15 12:22:36 +01:00
Stefan Metzmacher
caea750810 messaging: fix a valgrind warning on 64bit hosts zero out padding
metze
(This used to be commit f555b8e4c3)
2008-03-15 12:21:06 +01:00
Andrew Bartlett
d7299d82c3 Rework memberof handling in slapd.conf (used for OpenLDAP backend)
Instead of using an include file, put the generated configurationd
directly into slapd.conf.

Andrew Bartlett
(This used to be commit 95ac786136)
2008-03-15 19:03:04 +11:00
Stefan Metzmacher
2fd5992038 swig: regenerate _wrap.c files
metze
(This used to be commit 08b41e1069)
2008-03-14 14:33:55 +01:00
Stefan Metzmacher
25a3eb0436 swig: make the code more portable and use NT_STATUS_V() and W_ERROR_V()
metze
(This used to be commit d6fd98a307)
2008-03-14 14:33:54 +01:00
Michael Adam
4b2aee2cd6 libreplace: fix samba4 build (by not setting global LIBS).
This corrects the earlier fix of the standalone build, by setting
LIBS to the desired value only in configure.ac but not in getifaddrs.m4.

Not that this changes the standalone build in that it adds these libs
undconditionally and not only if they are needed by the getifaddrs
replacement functions.

Michael
(This used to be commit ff3af1703d)
2008-03-14 09:39:58 +01:00
Michael Adam
9d0b13bfcc libreplace: add -I$libreplacedir to CPPFLAGS for getifaddrs tests.
This is needed, otherwise $libreplacedir/system/network.h does not
find $libreplacedir/getaddrinfo.h on some systems (solaris, e.g.).

Michael
(This used to be commit 297c3bece0)
2008-03-14 09:04:25 +01:00
Michael Adam
6a4928c630 heimdal_build: fix linkage of asn1_compile and compile_et.
Now inet_aton is available from libreplace.

Michael
(This used to be commit 3b2a3da2f7)
2008-03-14 09:04:24 +01:00
Michael Adam
fe096dd313 libreplace: add an inet_aton() function that calls inet_pton().
inet_aton() is even needed inside libreplace, in the implementation
of rep_getaddrinfo().

Michael
(This used to be commit bcb2f3a880)
2008-03-14 09:02:36 +01:00
Andrew Bartlett
de9b3af624 Allow more 'domain' objects when looking for a unqiue SID.
Andrew Bartlett
(This used to be commit db3b5f16ec)
2008-03-14 12:32:07 +11:00
Andrew Bartlett
9a6422b695 Rework our SAMR test and SAMR server.
Now that we don't create users/domain groups/aliases in the builtin
domain, we hit some bugs in the server-side implementation of the
enumeration functions.

In essence, it turns out to be: don't treat 0 as a special case.

Also, fix up the PDC name to always be returned.  I'm sure nothing
actually uses it, particularly for BUILTIN...

Andrew Bartlett
(This used to be commit 353bb79f56)
2008-03-14 12:26:03 +11:00
Andrew Bartlett
39f03829a6 Check for Administrator as a Alias (copy&paste bug)
Andrew Bartlett
(This used to be commit e7afb31df1)
2008-03-14 10:11:03 +11:00
Andrew Bartlett
bd614d28d4 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit d50b76ed71)
2008-03-14 09:59:24 +11:00
Stefan Metzmacher
7db5e0a601 build: compile_et also needs inet_aton()
metze
(This used to be commit b6bcd66612)
2008-03-13 16:26:37 +01:00
Stefan Metzmacher
9c7c6c7049 build: we don't rely on bash yet:-) '==' should be just '='
metze
(This used to be commit 17997dd9bc)
2008-03-13 15:56:39 +01:00
Michael Adam
9f6355baa7 fix build of asn1_compile when there is no system inet_aton() function.
Michael
(This used to be commit f1c2207b3d)
2008-03-13 14:31:00 +01:00
Stefan Metzmacher
1710eca259 configure: when detecting python we should disable pyconfig.h
This fixes the detection on HP-UX where the pyconfig.h contains
bogus defines.

metze
(This used to be commit 9391f6f804)
2008-03-13 14:28:50 +01:00
Andrew Bartlett
80f7e9e081 Rework SAMR functions to avoid gendb_search()
The gendb_*() API does not return error codes, and mixes error returns
with the count of returned entries.

Andrew Bartlett
(This used to be commit facbc8dfa5)
2008-03-13 17:26:01 +11:00
Andrew Kroeger
131111f166 kdc: Provide extended error information in AS-REP error replies.
This change utilizes the addition of the e_data parameter to the windc_plugin in
the heimdal code to pass extended information back to the client.  The extended
information is provided in an e-data block as part of the kerberos error
message, and allows the client to determine which specific error condition
occurred.
(This used to be commit 502466ba95)
2008-03-13 01:17:48 -05:00
Andrew Kroeger
a550317253 heimdal: Add parameter to windc_plugin to allow extended return codes.
These changes add a krb5_data parameter named e_data to the windc_plugin to
allow the samba KDC to return extended error information in addition to the
standard KRB5KDC_ERR_* codes.  Windows uses the extended information to provide
detailed information in user dialogs (e.g. account disabled, logon hours
restriction, must change password, etc.).

This particular commit modifies only heimdal code.  Hopefully this can be
submitted and accepted into the upstream heimdal codebase.
(This used to be commit f542362be2)
2008-03-13 01:16:49 -05:00
Andrew Bartlett
44628c43ee Don't use 'dn', this attribute does not exist with the LDAP backend,
or in AD.

Andrew Bartlett
(This used to be commit a3e1f28306)
2008-03-13 16:35:53 +11:00
Andrew Bartlett
8b20113517 Show why a LookupName fails (help debugging)
Andrew Bartlett
(This used to be commit 9bfc475788)
2008-03-13 16:35:11 +11:00
Andrew Bartlett
359be70ed7 Report binding in libnet failure message.
Andrew Bartlett
(This used to be commit def46f6852)
2008-03-13 14:13:31 +11:00
Andrew Bartlett
4a2ba0c047 Bail out, rather than segfault on no domain sid.
Andrew Bartlett
(This used to be commit 7e85f318b5)
2008-03-13 14:12:50 +11:00
Andrew Bartlett
e50d666bf9 Correctly normalise records against OpenLDAP.
Fixing this simple typo allows more of the ldap.js test to pass.

Andrew Bartlett
(This used to be commit 7c80cd18d5)
2008-03-13 14:12:18 +11:00
Andrew Bartlett
536d585c4c Don't search the whole tree for the domains's sid
This change removes a dependency on objectclass=domainDNS, and avoids
a subtree search when we really know exactly where this record is.

Andrew Bartlett
(This used to be commit 52947fc0c0)
2008-03-13 14:11:06 +11:00
Andrew Bartlett
0c88240236 Rework to have member server 'domains' be CN=NETBIOSNAME
This reworks quite a few parts of our provision system to use
CN=NETBIOSNAME as the domain for member servers.

This makes it clear that these domains are not in the DNS structure,
while complying with our own schema (found by OpenLDAP's schema
validation).

Andrew Bartlett
(This used to be commit bda6a38b05)
2008-03-13 11:36:58 +11:00
Andrew Bartlett
58edd6d179 Don't segfault on invalid objectClass input.
If the objectClass found does not include a defaultSecurityDescriptor,
then we should not segfault in the SDDL parser.

Andrew Bartlett
(This used to be commit 5a92771fb5)
2008-03-13 10:27:09 +11:00