1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

54960 Commits

Author SHA1 Message Date
Tim Prouty
9b461ad7eb s3: Attempt to fix hpuxacl module 2009-07-29 10:12:23 -07:00
Michael Adam
d498532389 s3:passdb: use transaction_wrapped write in tdbsam_new_rid()
Now all tdb writes in passdb use transactions.

Michael
2009-07-29 16:26:30 +02:00
Michael Adam
8da2f93716 s3:secrets: use transaction wrapped store in get rand seed.
Now secrets.tdb is only writen with transactions.

Michael
2009-07-29 16:26:29 +02:00
Michael Adam
ae58ff981d s3:dbwrap: add dbwrap_trans_change_int32_atomic()
A transaction wrapper for dbwrap_change_int32_atomic().

Michael
2009-07-29 16:26:29 +02:00
Michael Adam
fac81b3750 s3:dbwrap: export logic of dbwrap_change_int32_atomic into an action function
to prepare for adding a transaction wrapper to dbwrap_change_int32_atomic()

Michael
2009-07-29 16:26:28 +02:00
Michael Adam
a86e163c1b s3:dbwrap: change dbwrap_change_int32_atomic() to take int32_t, not int32
Michael
2009-07-29 16:26:27 +02:00
Michael Adam
3acef09935 s3:winbind: use transaction store in idmap_tdb_set_hwm() to store new hwm.
Btw, the previous code must have failed to warn when exceeding the high_hwm,
because it overwrote hwm with the return value of the dbwrap_store_uint32(),
which does not return the hwm but 0 or -1, depending on success.

Michael
2009-07-29 16:26:27 +02:00
Michael Adam
e46e5d7d08 s3:winbind: fix typo in debug message in idmap_tdb.
Michael
2009-07-29 16:26:26 +02:00
Michael Adam
d289ed916b s3:winbind: fix typo in debugmessage of idmap_tdb
Michael
2009-07-29 16:26:26 +02:00
Michael Adam
bd34de10bc s3:winbind: use transaction in idmap_tdb2_allocate_id_action().
This uses the new dbwrap_trans_change_uint32_atomic()
instead of dbwrap_change_uint32_atomic().

Now all db write operations in idmap_tdb2.c are using
transactions.

Michael
2009-07-29 16:26:25 +02:00
Michael Adam
0579438039 s3:dbwrap: add dbwrap_trans_change_uint32_atomic()
A transaction wrapper for dbwrap_change_uint32_atomic().

Michael
2009-07-29 16:26:25 +02:00
Michael Adam
14c2bc91b9 s3:dbwrap: export logic of dbwrap_change_uint32_atomic into an action function
to prepare for adding a transaction wrapper to dbwrap_change_uint32_atomic()

Michael
2009-07-29 16:26:24 +02:00
Michael Adam
6abcdaad28 s3:dbwrap: untangle assignment and check in dbwrap_change_int32_atomic()
Michael
2009-07-29 16:26:23 +02:00
Michael Adam
8b0993e085 s3:dbwrap: untangle assignemend and check in dbwrap_change_uint32_atomic()
Michael
2009-07-29 16:26:23 +02:00
Michael Adam
de2846012b s3:dbwrap: don't leak in dbwrap_change_int32_atomic().
Michael
2009-07-29 16:26:22 +02:00
Michael Adam
80abb95ead s3:dbwrap: don't leak in dbwrap_change_uint32_atomic()
Michael
2009-07-29 16:26:22 +02:00
Michael Adam
aa4e5a32a7 s3:dbwrap: change dbwrap_change_int32_atomic() to return NTSTATUS not int32.
Michael
2009-07-29 16:26:21 +02:00
Michael Adam
ded0ce8345 s3:dbwrap: change dbwrap_change_uint32_atomic() to return NTSTATUS not uint32_t.
Michael
2009-07-29 16:26:21 +02:00
Michael Adam
d916e56c4c s3:winbind: in idmap_tdb2_sid_to_id(), use transaction wrapped stores.
When a mapping is not found, then the idmap script is called (if defined).
When this gives a reply for the desired sid, this reply is stored in the db.

This patch wraps theses two store operations into a transaction by re-using
the idmap_tdb2_set_mapping_action() function previously defined
for idmap_tdb2_set_mapping().

Michael
2009-07-29 16:26:20 +02:00
Michael Adam
a9bea871c9 s3:winbind: in idmap_tdb2_id_to_sid(), use transaction wrapped stores.
When a mapping is not found, then the idmap script is called (if defined).
When this gives a reply for the desired id, this reply is stored in the db.

This patch wraps theses two store operations into a transaction by re-using
the idmap_tdb2_set_mapping_action() function previously defined
for idmap_tdb2_set_mapping().

Michael
2009-07-29 16:26:20 +02:00
Michael Adam
9e20e178b3 s3:winbind: use transaction wrapper in idmap_tdb2_allocate_id()
Michael
2009-07-29 16:26:19 +02:00
Michael Adam
ab7a7be5d4 s3:winbind: use transaction wrapper in idmap_tdb2_set_mapping()
Michael
2009-07-29 16:26:12 +02:00
Volker Lendecke
94a139afe5 shadow_copy2: The system getrealfilename() can't deal with a 0-length fname
This fixes viewing the content of snapshots in the share root directory. We
have to treat the filename that *just* consists of "@GMT-YYYY.MM.DD-HH.MM.SS"
like the share root, which is the current working directory.
2009-07-29 06:28:50 -04:00
Volker Lendecke
d8543da9da Fix unqualified "net join"
Kai, please check!

Thanks,

Volker
2009-07-29 04:32:21 -04:00
Jeremy Allison
2d0cd3e53a (Hopefully) fix the problem Kai reported with
net ads leave and IPv6. Ensure all DC lookups
prefer IPv4.
Jeremy.
2009-07-28 18:02:10 -07:00
Andrew Bartlett
285edf6a59 s4:samba3sam Remove extra newlines that broke samba3sam test
The python ldif parser was changed to be stricter (perhaps too
strict), and the extra newlines broke it.

The problem was masked earlier because errors parsing the LDIF were
considered to be 'end of file', and so no error was raised.

Andrew Bartlett
2009-07-29 09:29:50 +10:00
Andrew Bartlett
113621d96d s4:provision We no longer add krbtgt or kpasswd account into secrets.ldb 2009-07-29 09:07:49 +10:00
Volker Lendecke
d793beed56 Remove a duplicate prototype 2009-07-28 17:17:43 -04:00
Jeremy Allison
5d05d22999 Added prefer_ipv4 bool parameter to resolve_name().
W2K3 DC's can have IPv6 addresses but won't serve
krb5/ldap or cldap on those addresses. Make sure when
we're asking for DC's we prefer IPv4.
If you have an IPv6-only network this prioritizing code
will be a no-op. And if you have a mixed network then you
need to prioritize IPv4 due to W2K3 DC's.
Jeremy.
2009-07-28 11:51:58 -07:00
Karolin Seeger
571f20cd4d release-scripts: Remove RFCs in source4/.
Remove RFCs as they are non-free content (with a strict interpretation of
the DFSG). Addresse Debian bug #538034.

Karolin
2009-07-28 13:22:35 +02:00
Ronnie Sahlberg
c6d7f3bdb5 pidl: import a patch to pidl made in the wireshark reporitory.
Original commit message in wireshark SVN (rev 28961):
====
From Kovarththanan Rajaratnam:
More "Cleanup header_field_info definitions"
====

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-07-28 12:30:16 +02:00
Stefan Metzmacher
7204ea422b s4:gensec/spnego: only generate the mechListMic when the server expects it
This fixes the ntvfs.cifs tests.

metze
2009-07-28 12:16:13 +02:00
Andrew Bartlett
4e049b0a1c Fix compile of py_net.c 2009-07-28 18:00:46 +10:00
Andrew Bartlett
058cd95c88 s4:libnet Add in a 'credentials' parameter for python libnet_Join 2009-07-28 16:06:05 +10:00
Andrew Bartlett
bfda910a20 s4:tls Enable GnuTLS back to version 1.4 (an into the future)
We think we have the bug fixed.

Andrew Bartlett
2009-07-28 14:11:18 +10:00
Andrew Bartlett
8ff1f50b0c s4:kerberos Add support for user principal names in certificates
This extends the PKINIT code in Heimdal to ask the HDB layer if the
User Principal Name name in the certificate is an alias (perhaps just
by case change) of the name given in the AS-REQ.  (This was a TODO in
the Heimdal KDC)

The testsuite is extended to test this behaviour, and the other PKINIT
certficate (using the standard method to specify a principal name in a
certificate) is updated to use a Administrator (not administrator).
(This fixes the kinit test).

Andrew Bartlett
2009-07-28 14:10:47 +10:00
Andrew Bartlett
47a7a2e442 s4:kerberos Add 'net export keytab' command for wireshark decryption
It is much easier to do decryption with wireshark when the keytab is
available for every host in the domain.  Running 'net export keytab
<keytab name>' will export the current (as pointed to by the supplied
smb.conf) local Samba4 doamin.

(This uses Heimdal's 'hdb' keytab and then the existing hdb-samba4,
and so has a good chance of keeping working in the long term).

Andrew Bartlett
2009-07-28 08:52:43 +10:00
Jeremy Allison
9297b975f5 Fix the build breakage by #including modules/vfs_acl_common.c
into acl_tdb and acl_xattr. Duplicates the code size, but keeps
the code in common so I don't have to do bug fixes in two places
(which is what I really cared about).
Jeremy.
2009-07-27 12:09:40 -07:00
Kai Blin
67d9130c13 s3: net ads user info should print primary group as well (bug #2658)
Thanks to Pavel V. Rochnyack <rpv@muma.tusur.ru> for reporting this and
offering an initial patch.
2009-07-27 20:03:46 +02:00
Shirish Pargaonkar
a869e4253a umount.cifs: do not attempt to update /etc/mtab if it is symbolic link
If /etc/mtab is a symbolic link to e.g. /proc/mounts, do not update it.

This is a fix for a bug reported in 4675 on samba bugzilla

Signed-off-by: Shirish Pargaonkar <shirishpargaonkar@gmail.com>
2009-07-27 12:02:35 -04:00
Stefan Metzmacher
b676e63a52 frstrans.idl: add definition of frstrans_InitializeFileTransferAsync()
metze
2009-07-27 17:51:36 +02:00
Stefan Metzmacher
826e6a83a0 frstrans.idl: add definition of frstrans_AsyncPoll()
metze
2009-07-27 17:51:35 +02:00
Stefan Metzmacher
3142f76e2d frstrans.idl: add definition of frstrans_RequestVersionVector()
metze
2009-07-27 17:51:35 +02:00
Stefan Metzmacher
2a797731a0 frstrans.idl: add definition of frstrans_RequestUpdates()
metze
2009-07-27 17:51:35 +02:00
Stefan Metzmacher
a2d0c6cec8 frstrans.idl: add definition of frstrans_EstablishSession
metze
2009-07-27 17:51:34 +02:00
Stefan Metzmacher
e31a92c44e frstrans.idl: add definition of frstrans_EstablishConnection()
metze
2009-07-27 17:51:34 +02:00
Stefan Metzmacher
8860a03671 frstrans.idl: add definition of frstrans_CheckConnectivity()
metze
2009-07-27 17:51:33 +02:00
Stefan Metzmacher
f167c977d1 librpc: rerun "make idl_full"
metze
2009-07-27 17:51:33 +02:00
Stefan Metzmacher
92791ce9a8 pidl: allow foo being on the wire after [length_is(foo)] uint8 *buffer
metze
2009-07-27 17:51:32 +02:00
Stefan Metzmacher
7ccc9a6ef5 pidl: add support for [string] on fixed size arrays.
midl also supports this:

struct {
	long l1;
	[string] wchar_t str[16];
	long l2;
};

Where the wire size of str is encoded like a length_is() header:
4-byte offset == 0;
4-byte array length;

The strings are zero terminated.

metze
2009-07-27 17:51:32 +02:00