1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-24 15:33:20 +03:00
Commit Graph

15131 Commits

Author SHA1 Message Date
Stefan Metzmacher
c84e3abae9 RAW-BENCH-OPEN: fix the output and calculate the total operations
metze
2008-03-17 15:50:54 +01:00
Stefan Metzmacher
9196213c49 selftest: handle progress output in verbose mode
metze
2008-03-17 15:50:49 +01:00
Stefan Metzmacher
61a87bed61 socket_wrapper: make pcap code more portable
Now the pcap support works on x86_64.

metze
2008-03-17 15:50:35 +01:00
Andrew Bartlett
f14737e4d2 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
2008-03-17 15:22:52 +11:00
Stefan Metzmacher
218ec98a16 pvfs_open: set h->have_opendb_entry directly after odb_open_file()
Otherwise we may not clean up in the destructor.

metze
2008-03-15 12:36:20 +01:00
Stefan Metzmacher
055760f0f4 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
2008-03-15 12:35:04 +01:00
Stefan Metzmacher
951764e284 pvfs_unlink: disable async retries for wildcard deletes
We would setup multiple retries per client request.

metze
2008-03-15 12:22:36 +01:00
Stefan Metzmacher
f555b8e4c3 messaging: fix a valgrind warning on 64bit hosts zero out padding
metze
2008-03-15 12:21:06 +01:00
Andrew Bartlett
95ac786136 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
2008-03-15 19:03:04 +11:00
Stefan Metzmacher
08b41e1069 swig: regenerate _wrap.c files
metze
2008-03-14 14:33:55 +01:00
Stefan Metzmacher
d6fd98a307 swig: make the code more portable and use NT_STATUS_V() and W_ERROR_V()
metze
2008-03-14 14:33:54 +01:00
Michael Adam
ff3af1703d 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
2008-03-14 09:39:58 +01:00
Michael Adam
297c3bece0 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
2008-03-14 09:04:25 +01:00
Michael Adam
3b2a3da2f7 heimdal_build: fix linkage of asn1_compile and compile_et.
Now inet_aton is available from libreplace.

Michael
2008-03-14 09:04:24 +01:00
Michael Adam
bcb2f3a880 libreplace: add an inet_aton() function that calls inet_pton().
inet_aton() is even needed inside libreplace, in the implementation
of rep_getaddrinfo().

Michael
2008-03-14 09:02:36 +01:00
Andrew Bartlett
db3b5f16ec Allow more 'domain' objects when looking for a unqiue SID.
Andrew Bartlett
2008-03-14 12:32:07 +11:00
Andrew Bartlett
353bb79f56 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
2008-03-14 12:26:03 +11:00
Andrew Bartlett
e7afb31df1 Check for Administrator as a Alias (copy&paste bug)
Andrew Bartlett
2008-03-14 10:11:03 +11:00
Andrew Bartlett
d50b76ed71 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local 2008-03-14 09:59:24 +11:00
Stefan Metzmacher
b6bcd66612 build: compile_et also needs inet_aton()
metze
2008-03-13 16:26:37 +01:00
Stefan Metzmacher
17997dd9bc build: we don't rely on bash yet:-) '==' should be just '='
metze
2008-03-13 15:56:39 +01:00
Michael Adam
f1c2207b3d fix build of asn1_compile when there is no system inet_aton() function.
Michael
2008-03-13 14:31:00 +01:00
Stefan Metzmacher
9391f6f804 configure: when detecting python we should disable pyconfig.h
This fixes the detection on HP-UX where the pyconfig.h contains
bogus defines.

metze
2008-03-13 14:28:50 +01:00
Andrew Bartlett
facbc8dfa5 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
2008-03-13 17:26:01 +11:00
Andrew Bartlett
a3e1f28306 Don't use 'dn', this attribute does not exist with the LDAP backend,
or in AD.

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

Andrew Bartlett
2008-03-13 14:12:18 +11:00
Andrew Bartlett
52947fc0c0 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
2008-03-13 14:11:06 +11:00
Andrew Bartlett
bda6a38b05 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
2008-03-13 11:36:58 +11:00
Andrew Bartlett
5a92771fb5 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
2008-03-13 10:27:09 +11:00
Andrew Bartlett
e9567e3910 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local 2008-03-13 10:00:57 +11:00
Andrew Bartlett
b2d9b03ba3 Update the provision scripts and selftest for LDAP
This should allow us to provision onto an OpenLDAP backend again.

Also ensure we always have a sysvol and netlogon share in the selftest
environment.

Andrew Bartlett
2008-03-13 09:55:06 +11:00
Andrew Bartlett
fd99b7719b Don't talloc_free() the UUID before we return.
This error caused us to put a 0x80 byte at the end of GUID, which was
only detected by OpenLDAP's schema checking.

Andrew Bartlett
2008-03-13 09:53:32 +11:00
Andrew Bartlett
a0754c2a85 Upgrade provision-backend to python.
This required a large rework of the provision code, so as to move much
of the 'guess' logic into subprocedures, rather than just inline in
the provision code.

Andrew Bartlett
2008-03-13 08:08:05 +11:00
Stefan Metzmacher
4d40f3a026 pvfs_open: retry pvfs_open() after an EGAIN or EWOULDBLOCK from open()
In case a unix application as an oplock or share mode on
a file we need to retry periodicly as there's no way
to get a notification from the kernel when the oplock
is released.

metze
2008-03-12 17:35:07 +01:00
Stefan Metzmacher
eeb0b8c349 pvfs_open: pass O_NONBLOCK to open() so that we'll not block with kernel oplocks
metze
2008-03-12 17:35:06 +01:00
Stefan Metzmacher
e473068bdd opendb_tdb: use sys_lease to setup kernel oplocks
metze
2008-03-12 17:35:06 +01:00
Stefan Metzmacher
3f165d3114 ntvfs/sysdep: implement linux kernel oplocks based F_SETLEASE
metze
2008-03-12 17:35:06 +01:00
Stefan Metzmacher
b399f0c872 ntvfs/sysdep: add sys_lease abstraction to later support kernel oplocks
metze
2008-03-12 17:35:05 +01:00
Stefan Metzmacher
80f5f93621 pvfs_open: pass down &f->handle->fd to odb_open_file()
metze
2008-03-12 17:35:04 +01:00
Stefan Metzmacher
9db9b6d85d opendb: pass down a pointer to the fd in odb_open_file()
This prepares kernel oplock support.

metze
2008-03-12 17:35:04 +01:00
Stefan Metzmacher
b43f1a53dd ntvfs/cifs: fix the fnum on RAW_RENAME_NTTRANS
metze
2008-03-12 17:35:03 +01:00
Stefan Metzmacher
40563583f7 pvfs_rename: implement RAW_RENAME_NTTRANS as noop as w2k3
metze
2008-03-12 17:14:44 +01:00
Stefan Metzmacher
cd1b8efc5d RAW-RENAME: w2k3 just ignores a NTTRANS-RENAME!
metze
2008-03-12 15:13:28 +01:00
Stefan Metzmacher
3f7fef8b8c RAW-STREAMS: do a exit on the session after each sub tests
metze
2008-03-12 14:23:30 +01:00
Stefan Metzmacher
eb68a8ed4f RAW-STREAMS: do what the comments say
metze
2008-03-12 14:23:30 +01:00
Jeremy Allison
4556fafede Added test_nttransrename() to test Metze's new code.
Jeremy.
2008-03-11 15:27:08 -07:00
Stefan Metzmacher
ca5b377471 RAW-SEARCH: skip RESUME_KEY tests against samba3
metze
2008-03-11 21:59:16 +01:00