1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-31 12:23:52 +03:00
Commit Graph

15111 Commits

Author SHA1 Message Date
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
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
Jeremy Allison
a70719d579 Samba3.2 now passes a lot more tests - remove the S3 specific
exemptions.
Jeremy.
2008-03-11 13:39:04 -07:00
Jeremy Allison
b2007956aa Samba3 now passes the test_raw_oplock_exclusive3 test.
Jeremy.
2008-03-11 12:37:20 -07:00
Stefan Metzmacher
6dc280731d pvfs: return NT_STATUS_NOT_IMPLEMENTED on RAW_RENAME_NTTRANS
metze
2008-03-11 20:16:52 +01:00
Stefan Metzmacher
80711c03e0 smb_server: pass down RAW_RENAME_NTTRANS to the ntvfs layer
metze
2008-03-11 20:16:51 +01:00
Stefan Metzmacher
4b07123686 events_signal: pass down the correct siginfo_t struct to the event handler
metze
2008-03-11 20:16:51 +01:00
Stefan Metzmacher
bfe773a620 libcli/raw: add RAW_RENAME_NTTRANS support
metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-03-11 11:49:00 -07:00
Jeremy Allison
a8a5339cf2 Test trans2 renames with oplocks. It looks like trans2 renames
ignore share modes and oplock breaks :-(.
Jeremy.
2008-03-11 10:21:09 -07:00
Andrew Bartlett
b4da374a99 Fix provision script to work without smb.conf location specified.
Andrew Bartlett
2008-03-11 14:41:10 +11:00
Andrew Bartlett
edb7af0685 Extend testsuite to cover specifying a domain SID.
Andrew Bartlett
2008-03-11 14:21:53 +11:00
Andrew Bartlett
1b15f374a8 Make error handling in ldb more consistant.
This change ensures we give an immidiate error if the DN won't parse.

Also clean up strcmp use to be more standard.

Andrew Bartlett
2008-03-11 14:20:42 +11:00
Stefan Metzmacher
0641a43cd6 opendb_tdb: keep struct opendb_file arround for the lifetime of struct odb_lock
That means we only have to parse the record once
and as the tdb record is locked the in memory copy
is always the same as the one in the tdb.

metze
2008-03-08 09:28:17 +01:00
Stefan Metzmacher
5b13a564b8 opendb_tdb: correctly initialize modified to false
Otherwise this variable would never change its value...

metze
2008-03-08 09:28:17 +01:00
Stefan Metzmacher
4afd4058e3 we now define PACKAGE_BUGREPORT in config.h
metze
2008-03-08 09:28:16 +01:00
Stefan Metzmacher
5fdca988c6 pvfs_open: fix the odb_open_file() callers
metze
2008-03-07 19:35:17 +01:00
Stefan Metzmacher
db0853ae4f opendb: force odb_can_open() before odb_open_file()
Now there's only odb_can_open() which handles the
share_access rules.

And odb_open_file() only adds the new opendb_entry into the
database and calculates the granted oplock level.

metze
2008-03-07 19:35:12 +01:00
Stefan Metzmacher
b09a1461ac pvfs_open: always call odb_can_open() before odb_open_file()
odb_open_file() will later change to not redo the logic of
odb_can_open().

metze
2008-03-07 19:15:27 +01:00
Stefan Metzmacher
c993b07f7d opendb_tdb: pass down struct messaging_context directly to odb_oplock_break_send()
metze
2008-03-07 19:15:21 +01:00
Stefan Metzmacher
a63910e8e5 vfs_cifs: disable level2 oplocks if the frontend client doesn't support them
metze
2008-03-07 19:15:19 +01:00
Jelmer Vernooij
e384aac5c8 Rerun SWIG. 2008-03-07 18:20:12 +01:00
Michael Adam
d92597d29c torture: fix escape sequence in test_chkpath().
Michael
2008-03-07 15:00:37 +01:00