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

15609 Commits

Author SHA1 Message Date
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 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
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 52947fc0c019e57438a21e54953601b6cc08eb49)
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 bda6a38b055fed2394e65cdc0b308a1442116402)
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 5a92771fb55149fcf24f21f30e4c6a622bef44f8)
2008-03-13 10:27:09 +11:00
Andrew Bartlett
3d9056aa86 Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-local
(This used to be commit e9567e39106efb7443ed2c5df3492208b1c1d766)
2008-03-13 10:00:57 +11:00
Andrew Bartlett
07a7c8fa0d 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
(This used to be commit b2d9b03ba3434e76d4d476233a198728523d17f9)
2008-03-13 09:55:06 +11:00
Andrew Bartlett
6f2935d082 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
(This used to be commit fd99b7719bcb503e2695b2cbad0230fa23a094ca)
2008-03-13 09:53:32 +11:00
Andrew Bartlett
69d66e6fb0 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
(This used to be commit a0754c2a857217ca831c2295b17255d8f38dfbc2)
2008-03-13 08:08:05 +11:00
Stefan Metzmacher
50243cdbbd 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
(This used to be commit 4d40f3a02643b4cdacee31f0b7bc9fc77cc9869a)
2008-03-12 17:35:07 +01:00
Stefan Metzmacher
454e9bed04 pvfs_open: pass O_NONBLOCK to open() so that we'll not block with kernel oplocks
metze
(This used to be commit eeb0b8c349552517b521f1b8d7d9341e0ef630f2)
2008-03-12 17:35:06 +01:00
Stefan Metzmacher
49c86b73bf opendb_tdb: use sys_lease to setup kernel oplocks
metze
(This used to be commit e473068bddfaa9028ab8ee49291035313b35fed3)
2008-03-12 17:35:06 +01:00
Stefan Metzmacher
d93f2f2e80 ntvfs/sysdep: implement linux kernel oplocks based F_SETLEASE
metze
(This used to be commit 3f165d3114519c317b9e7c871bb61d4fcbb8fb09)
2008-03-12 17:35:06 +01:00
Stefan Metzmacher
c3643d0ec8 ntvfs/sysdep: add sys_lease abstraction to later support kernel oplocks
metze
(This used to be commit b399f0c872f32bb791da196102a5872c20e62100)
2008-03-12 17:35:05 +01:00
Stefan Metzmacher
7ba236d78e pvfs_open: pass down &f->handle->fd to odb_open_file()
metze
(This used to be commit 80f5f9362100b971fa12ffee33705b745131770e)
2008-03-12 17:35:04 +01:00
Stefan Metzmacher
59917521e9 opendb: pass down a pointer to the fd in odb_open_file()
This prepares kernel oplock support.

metze
(This used to be commit 9db9b6d85d80a8aaa8bd432afaef9bb634d7364d)
2008-03-12 17:35:04 +01:00
Stefan Metzmacher
7cdf28ebac ntvfs/cifs: fix the fnum on RAW_RENAME_NTTRANS
metze
(This used to be commit b43f1a53dd185cc51a3fb8a18e311abb77c2a7c9)
2008-03-12 17:35:03 +01:00
Stefan Metzmacher
f533d6d8a2 pvfs_rename: implement RAW_RENAME_NTTRANS as noop as w2k3
metze
(This used to be commit 40563583f7ef3d8d1a3426c6c12eaecd18af215c)
2008-03-12 17:14:44 +01:00
Stefan Metzmacher
23ab56cd80 RAW-RENAME: w2k3 just ignores a NTTRANS-RENAME!
metze
(This used to be commit cd1b8efc5d8dc1eec03fe1bf1eb58dbded9584eb)
2008-03-12 15:13:28 +01:00
Stefan Metzmacher
2801b6a522 RAW-STREAMS: do a exit on the session after each sub tests
metze
(This used to be commit 3f7fef8b8c567379649611637d69c89d77d11d6c)
2008-03-12 14:23:30 +01:00
Stefan Metzmacher
6e9d25157d RAW-STREAMS: do what the comments say
metze
(This used to be commit eb68a8ed4fa214ad2e858a7fbdf9b5376cda6e04)
2008-03-12 14:23:30 +01:00
Jeremy Allison
799cfe0d76 Added test_nttransrename() to test Metze's new code.
Jeremy.
(This used to be commit 4556fafede8691c6a12670695ff108e9e59aff98)
2008-03-11 15:27:08 -07:00
Stefan Metzmacher
fdd7f68660 RAW-SEARCH: skip RESUME_KEY tests against samba3
metze
(This used to be commit ca5b37747107bd2941f7415fe609c8293a6b5f7c)
2008-03-11 21:59:16 +01:00
Jeremy Allison
333870d5a0 Samba3.2 now passes a lot more tests - remove the S3 specific
exemptions.
Jeremy.
(This used to be commit a70719d579a7eefbfd973267b95a87aaa6b649b0)
2008-03-11 13:39:04 -07:00
Jeremy Allison
fe3316431e Samba3 now passes the test_raw_oplock_exclusive3 test.
Jeremy.
(This used to be commit b2007956aa4534f22ad7fd85b0aee0be769548ae)
2008-03-11 12:37:20 -07:00
Stefan Metzmacher
8e70dc7e9a pvfs: return NT_STATUS_NOT_IMPLEMENTED on RAW_RENAME_NTTRANS
metze
(This used to be commit 6dc280731d071681b635a2f091be2b153a902080)
2008-03-11 20:16:52 +01:00
Stefan Metzmacher
903ea3d36d smb_server: pass down RAW_RENAME_NTTRANS to the ntvfs layer
metze
(This used to be commit 80711c03e0e8fba6f80261facd939ef00e06c7fd)
2008-03-11 20:16:51 +01:00
Stefan Metzmacher
ebe8a8985c events_signal: pass down the correct siginfo_t struct to the event handler
metze
(This used to be commit 4b071236867ca5c2c0451ad3acc8a9debb0549e4)
2008-03-11 20:16:51 +01:00
Stefan Metzmacher
6743de076d libcli/raw: add RAW_RENAME_NTTRANS support
metze

Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit bfe773a620640fa46efe008f38144f5452350825)
2008-03-11 11:49:00 -07:00
Jeremy Allison
de4a495438 Test trans2 renames with oplocks. It looks like trans2 renames
ignore share modes and oplock breaks :-(.
Jeremy.
(This used to be commit a8a5339cf2ca218668f888eced5ffe7ce059553c)
2008-03-11 10:21:09 -07:00
Andrew Bartlett
9703948850 Fix provision script to work without smb.conf location specified.
Andrew Bartlett
(This used to be commit b4da374a998caac18c288a0a6e3fcd2c50cbffa7)
2008-03-11 14:41:10 +11:00
Andrew Bartlett
b5a5fcdc62 Extend testsuite to cover specifying a domain SID.
Andrew Bartlett
(This used to be commit edb7af0685983543c321e3d8b90f6ae07af2e4e3)
2008-03-11 14:21:53 +11:00
Andrew Bartlett
7da5ec17e6 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
(This used to be commit 1b15f374a89b99f3c43d9c2ce06dde9c67383e66)
2008-03-11 14:20:42 +11:00
Stefan Metzmacher
db06d932c8 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
(This used to be commit 0641a43cd6fd081cac0275f5bde2ad70fa6a71bb)
2008-03-08 09:28:17 +01:00
Stefan Metzmacher
11fb55e8a4 opendb_tdb: correctly initialize modified to false
Otherwise this variable would never change its value...

metze
(This used to be commit 5b13a564b8459c3134a43e1d4b4a791e33108b1b)
2008-03-08 09:28:17 +01:00
Stefan Metzmacher
76eaece42c we now define PACKAGE_BUGREPORT in config.h
metze
(This used to be commit 4afd4058e30e0754a56100e691486139f149e3a3)
2008-03-08 09:28:16 +01:00
Stefan Metzmacher
db669e1eb1 pvfs_open: fix the odb_open_file() callers
metze
(This used to be commit 5fdca988c687f58fe2fddd3c8eff5f461207065b)
2008-03-07 19:35:17 +01:00
Stefan Metzmacher
e5e799aeb6 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
(This used to be commit db0853ae4fead34ef382bbfcfe2f46453ab8b73b)
2008-03-07 19:35:12 +01:00
Stefan Metzmacher
75a412a469 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
(This used to be commit b09a1461ac595be1b6530221b7df5211084884cc)
2008-03-07 19:15:27 +01:00
Stefan Metzmacher
6c27daeeca opendb_tdb: pass down struct messaging_context directly to odb_oplock_break_send()
metze
(This used to be commit c993b07f7d5caf290ccb9ca81961aa35a3ed1f02)
2008-03-07 19:15:21 +01:00