1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

67869 Commits

Author SHA1 Message Date
Jelmer Vernooij
953d253748 heimdal: Call HEIMDAL_AUTOPROTO() manually. 2010-10-16 17:33:20 +02:00
Jelmer Vernooij
32fce1f075 heimdal: Call HEIMDAL_AUTOPROTO_PRIVATE() manually. 2010-10-16 17:33:19 +02:00
Jelmer Vernooij
1c4c96d3fe heimdal: Add variables for source files. 2010-10-16 17:33:19 +02:00
Jelmer Vernooij
196e8d1655 heimdal: Simplify handling of ../heimdal prefixes in HEIMDAL_SUBSYSTEM. 2010-10-16 17:33:18 +02:00
Jelmer Vernooij
b2af44e92b heimdal_build: Fix detection of system roken library. 2010-10-16 17:33:17 +02:00
Jelmer Vernooij
c3366c19a7 heimdal_build: Remove ignored argument ldflags from HEIMDAL_BINARY(). 2010-10-16 17:33:16 +02:00
Matthias Dieter Wallnöfer
dd0f22d446 ldb:pyldb.c - remove pointless comment
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Oct 16 14:38:58 UTC 2010 on sn-devel-104
2010-10-16 14:38:58 +00:00
Matthias Dieter Wallnöfer
39d11a977d ldb:"ldb_dn_compare_base" - use "unsigned int" counters
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Oct 16 13:54:13 UTC 2010 on sn-devel-104
2010-10-16 13:54:13 +00:00
Matthias Dieter Wallnöfer
531d7f569e ldb:"ldb_dn_add_child" - use "unsigned int" counters 2010-10-16 15:11:45 +02:00
Matthias Dieter Wallnöfer
1557acb44a ldb:"ldb_dn_remove_base_components" - use an "unsigned int" counter 2010-10-16 15:04:57 +02:00
Matthias Dieter Wallnöfer
19e94349b3 ldb:"ldb_dn_canonical" - use an "unsigned int" counter
Convert it to use an "unsigned int" counter which represents the exact length
of the DN components.
2010-10-16 14:57:52 +02:00
Matthias Dieter Wallnöfer
bc0294814a s4:samldb LDB module - use appropriate fixed-length integer types where needed
- The "systemFlags" we interpret always as signed
- Use "samdb_msg_add_int" where possible (much saver for integer storing than
  ldb_msg_add_fmt)
2010-10-16 14:39:23 +02:00
Matthias Dieter Wallnöfer
42d9978cdd s4:dsdb/samdb/ldb_modules/util.c - remove now unused functions which set integers
Please do always use the functions which specifiy the appropriate integer
length to not run into platform-specific issues. Therefore I'm removing these
generic calls.
2010-10-16 14:39:23 +02:00
Matthias Dieter Wallnöfer
a0bd529751 s4:samba3sid LDB module - handle the RID as uint32_t
- This is how we always deal with RIDs
- Use an integer-length safe function for the RID update
2010-10-16 14:39:23 +02:00
Matthias Dieter Wallnöfer
d7ca757b31 s4:objectclass LDB module - implement the "isCriticalSystemObject" subtree delete protection
MS-ADTS 3.1.1.5.5.7.2

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Oct 16 11:24:09 UTC 2010 on sn-devel-104
2010-10-16 11:24:09 +00:00
Matthias Dieter Wallnöfer
88e5375ad3 s4:ldif_handlers.c - fix a typo 2010-10-16 12:42:06 +02:00
Matthias Dieter Wallnöfer
c291858199 s4:dsdb - fix unsigned integer save problems using the "%u" specifier
The issue here is that we have not yet first cast to int32_t explicitly,
before we cast to an signed int to printf() into the %d or cast to a
int64_t before we then cast to a long long to printf into a %lld.

There are *no* unsigned integers in Active Directory LDAP, even the RID
allocations and ms-DS-Secondary-KrbTgt-Number are *signed* quantities.
(See the schema, and the syntax definitions in schema_syntax.c).

The failure has been detected by Matthieu Patou on the buildfarm host "tridge"
due to a malformed "groupType" attribute.

The solution is to use the "%d" specifier. Either to use it directly - or better
(when possible) use the call "samdb_msg_add_uint" (which encapsulates it).

This patch changes such problematic situations.
2010-10-16 10:54:46 +02:00
Matthias Dieter Wallnöfer
a72ffb0d01 s4:dsdb/common/util.c - describe the behaviour of the functions "samdb_msg_add_uint", "samdb_msg_add_uint64" and "samdb_msg_set_uint" a bit more
Unsigned int data in AD is a bit problematic to handle. Problem described by
abartlet.
2010-10-16 10:42:21 +02:00
Jeremy Allison
83871d2642 Don't arbitrarily clean all parametric options in add_a_service(),
that is called from many places, not just smb.conf processing. Only
clean parametric options when doing actual smb.conf reading (or
registry equivalent).

Michael Adams, Volker, Metze, please check.

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Oct 16 06:46:19 UTC 2010 on sn-devel-104
2010-10-16 06:46:19 +00:00
Jeremy Allison
bcdf781545 Ensure we have correct parameters to use Windows ACL modules.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Oct 16 03:36:04 UTC 2010 on sn-devel-104
2010-10-16 03:36:04 +00:00
Jelmer Vernooij
50d3baffb2 heimdal_build: Support using system asn1 library.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Oct 16 02:14:32 UTC 2010 on sn-devel-104
2010-10-16 02:14:32 +00:00
Jelmer Vernooij
12fa110219 heimdal_build: Skip some hx509 code when using system hx509. 2010-10-16 01:32:06 +00:00
Jelmer Vernooij
8db6453ae2 heimdal_build: Add comment with stub for finding the system libtommath. 2010-10-16 01:32:06 +00:00
Jelmer Vernooij
b244383e75 heimdal_build: Initial work on supporting an external heimdal library. 2010-10-16 01:32:06 +00:00
Jelmer Vernooij
471e57edf8 heimdal_build: Support using system hx509 library when explicitly
requested.
2010-10-16 01:32:06 +00:00
Jelmer Vernooij
3fe2bfddda heimdal_build: Fix build with system roken. 2010-10-16 01:32:06 +00:00
Jelmer Vernooij
6852cc4a7a heimdal_build: Put version objects in a separate subsystem. 2010-10-16 01:32:06 +00:00
Jelmer Vernooij
2e038a78fd heimdal: Support using system roken. 2010-10-16 01:32:06 +00:00
Jelmer Vernooij
7af5687504 heimdal_build: Use existing functions for finding system libraries. 2010-10-16 01:32:05 +00:00
Jeremy Allison
06fc79f1fd Add acl_xattr:ignore system acls boolean (normally false) to allow
Samba ACL module to ignore mapping to lower POSIX layer. With this
fix Samba 3.6.x now passes RAW-ACLs (with certain smb.conf parameters
set).

Jeremy.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Oct 16 01:26:31 UTC 2010 on sn-devel-104
2010-10-16 01:26:30 +00:00
Jeremy Allison
cf45581cdf Add make_default_filesystem_acl() function to be used in following change to acl_xattr and acl_tdb module. 2010-10-15 17:38:22 -07:00
Jeremy Allison
1904c44ec8 Fix handling of "NULL" DACL. Map to u/g/w - rwx.
Jeremy.
2010-10-15 17:38:22 -07:00
Jeremy Allison
e031f8ae6a Fix "force unknown ACL user" to strip out foreign SIDs from POSIX ACLs if they can't be mapped. 2010-10-15 17:38:22 -07:00
Jeremy Allison
f4a9d25cfc Add debug message to get_nt_acl_internal() to see what we got. 2010-10-15 17:38:21 -07:00
Jeremy Allison
625126dc8d Fix valgrind "uninitialized read" error on "info" when returning !NT_STATUS_OK.
Jeremy.
2010-10-15 17:38:21 -07:00
Jeremy Allison
8cad5e23b6 Fix bug #7734 - When creating files with "inherit ACLs" set to true, we neglect to apply appropriate create masks.
Jeremy.
2010-10-15 17:38:21 -07:00
Jeremy Allison
92adb68637 Fix bug #7733 - Invalid client DOS attributes on create can cause incorrect unix mode_t to be generated.
It turns out a client can send an NTCreateX call for a new file, but specify
FILE_ATTRIBUTE_DIRECTORY in the attribute list. Windows silently strips this,
but we don't - causing the unix_mode() function to go through the "mode bits
for new directory" codepath, instead of the "mode bits for new file" codepath.

Jeremy.
2010-10-15 17:38:21 -07:00
Jelmer Vernooij
68d1b3b505 heimdal Add missing dependencies on wind.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Oct 15 23:20:22 UTC 2010 on sn-devel-104
2010-10-15 23:20:22 +00:00
Jelmer Vernooij
613e03f908 heimdal_build: Allow using system wind.
Please note that to use the system wind library the user explicitly has
to specify --bundled-library=!wind . Without that option we will always
use the included wind library.
2010-10-15 22:38:07 +00:00
Matthias Dieter Wallnöfer
5339bad942 s4:torture/local/dbspeed.c - use LDB result constant
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Oct 15 19:11:32 UTC 2010 on sn-devel-104
2010-10-15 19:11:32 +00:00
Andreas Schneider
a8f26f60ec s3-rpc_server: Normalize rpc_pipe_open_interface pipe name.
Autobuild-User: Andreas Schneider <asn@samba.org>
Autobuild-Date: Fri Oct 15 12:15:45 UTC 2010 on sn-devel-104
2010-10-15 12:15:45 +00:00
Andreas Schneider
f22e6cf3b7 s3-rpc_server: Make auth_serversupplied_info const. 2010-10-15 11:34:03 +00:00
Andreas Schneider
0195f35ce1 s3-winbind: Fixed the build of idmap_rid. 2010-10-15 11:34:03 +00:00
Andrew Tridgell
006111646c s4-test: fixed a typo in test_kinit.sh
too many Ts

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Oct 15 10:14:27 UTC 2010 on sn-devel-104
2010-10-15 10:14:27 +00:00
Andrew Tridgell
d59a342c71 s4-test: fixed test_kinit.sh time command test
passing -W breaks -k yes
2010-10-15 09:32:03 +00:00
Andrew Tridgell
918d864a67 s4-net: exit with a failure when a command is unknown
this ensures we don't pass bad tests in 'make test' if they call
unknown net commands
2010-10-15 09:32:03 +00:00
Andrew Tridgell
add7ddb2e0 script: the --tests option has been replaced by --test-command 2010-10-15 09:32:03 +00:00
Andrew Tridgell
bda626da81 s4-finddcs: better debug messages to help track down DNS problems
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-15 09:32:03 +00:00
Andrew Tridgell
77a16bf504 s4-net: fix the dependence on command line ordering
this fixes python net commands where you use a '-' option before the
command name

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-15 09:32:03 +00:00
Matthias Dieter Wallnöfer
10e1de3e06 s4:samdb_msg_add_int* - use "ldb_msg_add_string" rather than "samdb_msg_add_string"
"ldb_msg_add_string" is safe here since the integer has already been converted
to a string which is "talloc"ed on "mem_ctx".

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Oct 15 09:11:49 UTC 2010 on sn-devel-104
2010-10-15 09:11:49 +00:00