1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

15847 Commits

Author SHA1 Message Date
Michael Adam
4d16e17e04 libreplace: remove duplicate entry of inet_ntoa from README.
Michael
(This used to be commit 98ee8c84300757d778733a458c6ca3e6022b40ea)
2008-03-18 16:31:15 +01:00
Michael Adam
4500b95c89 libreplace: remove trailing white spaces.
Michael
(This used to be commit 1f9ca7eed965904f67cf78fbac007432b8a057fd)
2008-03-18 16:30:15 +01:00
Michael Adam
87b48a8126 libreplace: replace inet_ntoa() when it is missing
...not only replace it when it is broken.

This moves the defintion of rep_inet_ntoa from replace.c
to inet_ntoa.c and adds configure checks for existence
of inet_ntoa(). Checks are moved to an include file of its own.

NOTE: The original rep_inet_ntoa in replace.c was wrapped
into a "#ifndef WITH_PTHREADS" but the prototype in replace.h
and the define in system/network.h were not. I removed that
ifndef since the inet_ntoa() function is usually not thread safe
anyways, since it returns a pointer to a static buffer.

So whoever calls inet_ntoa() should be aware that it is not
thread safe anyways.

Michael
(This used to be commit 974c0c45ad42644348e0b55454715b12158f1028)
2008-03-18 16:30:15 +01:00
Michael Adam
58dfb0ff3c libreplace: put inet_aton.c under LGPL instead of GPL.
Michael
(This used to be commit cca5d6626fe395f08fd4c8b2344e4e43646cb987)
2008-03-18 16:10:47 +01:00
Michael Adam
195853464a smbtorture: fix typos in RAW-OPLOCK output.
Michael
(This used to be commit 9fa4b53b61064c910b8f5c9c676c971023b8670c)
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 62bb177a6e4a3e1f949b78c7cd7583f2e1271739)
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 07e931a77f21e025281b6285f4ce7aebf1106b86)
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 79037c31334e271a718fcac234148038814b591e)
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 cef2e8d748756f61c248ad6660e85dd1ac36308a)
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 e7115dcc8a0a4f420de7a901e3a21d4f35a6fcf9)
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 ca414d4e9e96b90100c46b006825bc8e935ba0b4)
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 087667e0cd66ea615b5aa43538192fe1d7de87ae)
2008-03-18 15:59:21 +01:00
Stefan Metzmacher
92f6333535 ldb: fix the standalone build
metze
(This used to be commit 91b49365abed6f67e2b3c18b0090b4e6ff1df935)
2008-03-18 15:59:21 +01:00
Stefan Metzmacher
5b35e55130 selftest: fix parsing of Subunit results
This reverts parts of
903eb9a23d80576f5df2d90a0e025f2366ffe4c6
and
9196213c49532ac60349ff55e66430b7c80b09c2.

metze
(This used to be commit 5f5fa368c2ca472409c0082400b6e26029dfd7b5)
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 dc3d5e16452bf30055638ba3cfe99097fb557156)
(This used to be commit 842d144b4fb0981250157f72956e732709663107)
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 903eb9a23d80576f5df2d90a0e025f2366ffe4c6)
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 73ac7c4a1ce937bddd3c52d048665cd0078c6aaa)
2008-03-18 10:55:31 +01:00
Kai Blin
3dddbb5e26 make: Fix make valgrindtest-env
(This used to be commit f56912e3b545325e941ee898337c5483ec435e39)
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 3f2d12c61e95475009baf77c3e0fbea2abecc17a)
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 c84e3abae9781c0cbea5fee00bafe70967fb6468)
2008-03-17 15:50:54 +01:00
Stefan Metzmacher
0de47f6b57 selftest: handle progress output in verbose mode
metze
(This used to be commit 9196213c49532ac60349ff55e66430b7c80b09c2)
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 61a87bed61ef661d98131239976be95c6a8b4d96)
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 f14737e4d2040d2f401a3b20c5e78d0d793cfc3a)
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 218ec98a1694080748d1ac12baa90ffcda364833)
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 055760f0f4aadd2079b0a4999b59ac3dbe5edf8a)
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 951764e28407a53ea4dd39d34388fab1b2259785)
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 f555b8e4c35f69fdc1fb34427d882580eecad284)
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 95ac786136aebfe5ededeb3fb81cbd4e296e3988)
2008-03-15 19:03:04 +11:00
Stefan Metzmacher
2fd5992038 swig: regenerate _wrap.c files
metze
(This used to be commit 08b41e10699c7bb8058ab0ab61f17a1bbfcc1ce4)
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 d6fd98a307f83fd492ef73bf6ec281f9f11286f2)
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 ff3af1703ddc9e5383f32156bc5be8351f795e76)
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 297c3bece094ddb5f268b02e61e33f512ccfe6f5)
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 3b2a3da2f73020b1d3b08a05a479de380b2aa5c4)
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 bcb2f3a880f8da8f9bedb7a8e61d7d7b533f1919)
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 db3b5f16ec8d9b83d8a82a535a4847dce5923663)
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 353bb79f568f20c8469cb9458f7b14c24612ad23)
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 e7afb31df1f12a3cd39ed9b95d76edc6ff0d6a70)
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 d50b76ed71ab6bc8e63926540638df5af10202ae)
2008-03-14 09:59:24 +11:00
Stefan Metzmacher
7db5e0a601 build: compile_et also needs inet_aton()
metze
(This used to be commit b6bcd66612eb3e507da94eb6f05e5d0317a8276c)
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 17997dd9bcd385fcf27646d832ad824cc2a0800a)
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 f1c2207b3d9411eac27cb85891f62e9d05bf5118)
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 9391f6f80461be2b214a881782aecf7df8a4aba3)
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 facbc8dfa5188fdd610f400b5be6e05bc33b0820)
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 502466ba950bfd104518b9eb9586896c1e076343)
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 f542362be25e7182a0836de7a0163f6b9fce9408)
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 a3e1f2830679a56366f0080115de504cdb0144f7)
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 9bfc4757887ceabb4c621d62c140515794679250)
2008-03-13 16:35:11 +11:00
Andrew Bartlett
359be70ed7 Report binding in libnet failure message.
Andrew Bartlett
(This used to be commit def46f6852075e1efe2bb7c5a7cffa5defdbb4ee)
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 7e85f318b571d1a909dffad0ecd661468ed497ca)
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 7c80cd18d5cd9cbf32dac15a4734f5a3c67cd0e7)
2008-03-13 14:12:18 +11:00