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
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
Matthieu Patou
666e0c3cce
s4 param: change messaging directory name from messaging to msg
...
This saves 6 chars and as in some installation users tends to install
samba in directory with very long name they have a problem with the
sockets.
It will also ease the pain on buildfarms as we tend to have very long
environnement name (ie. vampire_dc) in path that are already quite long
leading also to errors on unix socket manipulation.
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Fri Oct 15 08:15:56 UTC 2010 on sn-devel-104
2010-10-15 08:15:56 +00:00
Matthieu Patou
34f12d541b
s4 dsdb: fix sign problem on PPC and x86
...
In LDAP we used signed intege and groups have the highest bit set (ie.
0x80000002). So it will result with values that are > 2^31 when these
value are used on some plateforms (x86 and PPC 64bits in this case) it
causes problem with strtol.
2010-10-15 11:34:24 +04:00
Matthias Dieter Wallnöfer
f794563267
s4:lib/registry/util.c - cosmetic - fix indentation, trailing whitespaces
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Oct 15 07:27:07 UTC 2010 on sn-devel-104
2010-10-15 07:27:07 +00:00
Matthias Dieter Wallnöfer
7be36a0bd9
s4:lib/registry/util.c - strtoll call - better say explicitly that data is in hex format
...
Template is commit deebc934edb9a0a70e7615b1161d7a60fcb1d78f from Wilco.
2010-10-15 08:45:15 +02:00
Matthias Dieter Wallnöfer
80550746ff
s4:ntptr/ntptr_simple_ldb.c - use LDB result constants
2010-10-15 08:45:15 +02:00
Matthias Dieter Wallnöfer
c362ce36b3
s4:libnet_samsync_ldb.c - use LDB result constants
2010-10-15 08:45:15 +02:00
Matthias Dieter Wallnöfer
ace4378de1
s4:lsa RPC server - use LDB result constant
2010-10-15 08:45:14 +02:00
Matthias Dieter Wallnöfer
b647b2d5b3
s4:samldb LDB module - cosmetic - use "ldb" variable rather than "ldb_module_get_ctx"
2010-10-15 08:45:14 +02:00
Matthias Dieter Wallnöfer
9310da1e2b
s4:samdb_create_foreign_security_principal - proof error code of "samdb_msg_add_string"
2010-10-15 08:45:14 +02:00
Matthias Dieter Wallnöfer
9e69b22e70
s4:dsdb/common/util.c - samdb_msg_add_* calls - proof for more OOM conditions
2010-10-15 08:45:14 +02:00
Matthias Dieter Wallnöfer
06ec5d0177
s4:dsdb/common/util.c - samdb_msg_add_string - the attribute name doesn't need to be duplicated
...
This is done internally by the LDB library - look at "ldb_msg_add_empty".
2010-10-15 08:45:01 +02:00
Matthias Dieter Wallnöfer
9bc57e19e6
s4:dsdb - remove "samdb_msg_add_value"
...
This can be substituted by "ldb_msg_add_value".
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Oct 15 00:21:53 UTC 2010 on sn-devel-104
2010-10-15 00:21:53 +00:00
Matthias Dieter Wallnöfer
a0e9814c0d
s4:dsdb - remove "samdb_result_uint", "samdb_result_int64", "samdb_result_uint64" and "samdb_result_string"
...
We have ldb_msg_find_attr_as_* calls which do exactly the same. Therefore this
reduces only code redundancies.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-10-15 08:36:01 +11:00
Matthias Dieter Wallnöfer
9a3810fbb2
s4:samldb LDB module - attempt to fix integer handling on big-endian platforms
...
And beside this it's also nicer to use standard LDB functions for type
conversions.
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Oct 14 08:26:53 UTC 2010 on sn-devel-104
2010-10-14 08:26:53 +00:00
Andrew Tridgell
3921d6f4d3
s4-waf: automatically remove stale C and header files
...
this prevents stale .c and .h files in bin/ from causing build
problems
Thanks to Thomas Nagy for the example implementation!
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Oct 14 07:44:13 UTC 2010 on sn-devel-104
2010-10-14 07:44:13 +00:00
Andrew Tridgell
f1f5a23400
s4-heimdal: fixed some trailing commas in heimdal build
2010-10-14 16:23:45 +11:00
Andrew Bartlett
f7ffc12e2d
libcli/security Use static SIDs rather than parsing from strings
...
This should make the security_token_is_*() calls a little faster.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-10-14 02:35:05 +00:00
Andrew Bartlett
a879a4610d
libcli/auth Merge source4/libcli/security and util_sid.c into the common code
...
This should ensure we only have one copy of these core functions
in the tree.
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-10-14 02:35:05 +00:00
Andrew Bartlett
353d9bc3e4
s4-acl Merge sec_access_check() with se_access_check() from source3/
...
Andrew Bartlett
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-10-14 02:35:05 +00:00
Andrew Tridgell
c41bb6e846
s4: show samba version in bin/samba -b
...
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Oct 14 02:24:47 UTC 2010 on sn-devel-104
2010-10-14 02:24:47 +00:00
Matthias Dieter Wallnöfer
8c21a45e5c
s4:samldb LDB module - cosmetic fixups
...
- Update the module description
- Fix indentation
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Oct 13 20:55:18 UTC 2010 on sn-devel-104
2010-10-13 20:55:18 +00:00
Jelmer Vernooij
e13b934355
heimdal: Add soname for com_err.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Oct 13 20:00:40 UTC 2010 on sn-devel-104
2010-10-13 20:00:40 +00:00
Jelmer Vernooij
f0124542bc
heimdal: Add sonames.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Oct 13 18:15:04 UTC 2010 on sn-devel-104
2010-10-13 18:15:04 +00:00
Jelmer Vernooij
01d14b4c57
samdb: Set soname.
2010-10-13 17:32:20 +00:00
Matthias Dieter Wallnöfer
bf657db3c4
s4:sam.py - tests for "userAccountControl" attribute
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Oct 13 17:31:29 UTC 2010 on sn-devel-104
2010-10-13 17:31:29 +00:00
Matthias Dieter Wallnöfer
3411e71c76
s4:samldb LDB module - deny creation of temporary duplicate accounts
2010-10-13 18:46:13 +02:00
Matthias Dieter Wallnöfer
ed68189c5f
s4:samldb LDB module - proof the account type also on LDB modify operations
2010-10-13 18:37:20 +02:00
Jelmer Vernooij
18ea6c5dce
ldb: Only build LIBLDB_MAIN when building ldb itself.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Oct 13 15:41:29 UTC 2010 on sn-devel-104
2010-10-13 15:41:29 +00:00
Matthias Dieter Wallnöfer
36c1ed215d
s4:sam.py - add a test for the group type changing behaviour
...
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Wed Oct 13 14:17:31 UTC 2010 on sn-devel-104
2010-10-13 14:17:31 +00:00
Matthias Dieter Wallnöfer
826496ce55
s4:samldb LDB module - support the group type changing properly
...
This is exactly that what Windows allows. It was proven by a blackbox test.
And we also need to deny add operations of builtin groups.
2010-10-13 13:35:21 +00:00
Matthias Dieter Wallnöfer
09ce56d957
s4:ldap.py - test the "isCriticalSystemObject" behaviour
2010-10-13 13:35:21 +00:00
Matthias Dieter Wallnöfer
5cb99aa81a
s4:setup/provision_self_join.ldif - let the samldb LDB module fill in "isCriticalSystemObject"
...
It recognizes it now automatically.
2010-10-13 13:35:21 +00:00
Matthias Dieter Wallnöfer
9bcb656bba
s4:samldb LDB module - deny also the direct modification of "isCriticalSystemObject" on modify operations
2010-10-13 13:35:21 +00:00
Matthias Dieter Wallnöfer
4638bd11b5
s4:objectclass LDB module - deny the creation of "isCriticalSystemObject" entries
...
They're only allowed to be created with the RELAX control specified.
2010-10-13 13:35:21 +00:00
Matthias Dieter Wallnöfer
8806008024
s4:samldb LDB module - first implementation of the samldb primary group trigger
...
This was done according to MS-SAMR 3.1.1.8.2
But do use it only for add operations at the moment.
2010-10-13 13:35:21 +00:00
Matthias Dieter Wallnöfer
635996e97c
s4:samldb LDB module - use the new "objectclass_trigger" for add operations
...
Additionally clean up "samldb_fill_object" which is now much easier to
comprehend.
2010-10-13 13:35:21 +00:00
Matthias Dieter Wallnöfer
2b6cbf2eb0
s4:samldb LDB module - first implementation of the samldb objectclass trigger
...
This was done according to MS-SAMR 3.1.1.8.1
I need to perform some RELAX checks since otherwise the provision wouldn't work
anymore.
2010-10-13 13:35:21 +00:00
Matthias Dieter Wallnöfer
9bdea1b384
ldb:ldb_match.c - fix a counter type
2010-10-13 13:35:21 +00:00
Jelmer Vernooij
ffb71f8ee3
dsdb/schema_data: Build as shared object.
2010-10-13 14:10:38 +02:00
Jelmer Vernooij
4313f0fbb5
dsdb/schema_load: Build as shared object.
2010-10-13 14:10:34 +02:00
Jelmer Vernooij
e07ca6f8e1
samdb: Build as library.
2010-10-13 14:10:27 +02:00
Andrew Tridgell
d5e599204c
ldb: raise minor version number for new ldb_msg_match_error() function
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Oct 13 11:42:18 UTC 2010 on sn-devel-104
2010-10-13 11:42:17 +00:00
Andrew Tridgell
269143fa00
s4-ldb: take advantage of ldb_match_msg_error() in more places
...
this gives better error checking
2010-10-13 11:00:04 +00:00
Andrew Tridgell
549c044b9f
s4-schema: don't name variables after standard libc functions
2010-10-13 11:00:04 +00:00
Andrew Tridgell
180304516d
s4-ldb: use operator_fn syntax function in ldb_match code
...
this also fixes error handling in case of bad syntax, memory error
etc, which was previously conidered as a mismatch, but should return
an error
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-13 11:00:04 +00:00
Andrew Tridgell
d267c8b478
s4-ldb: implement an operator_fn for the ldb-samba syntaxes
...
this allows us to properly handle the LDB_OP_PRESENT operator on
deleted linked attributes
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-13 11:00:04 +00:00