Andrew Tridgell
60c5a5f39f
s4-idl: update the DRS_OPTIONS bits based on the latest WSPP docs
2010-01-14 15:37:59 +11:00
Fernando J V da Silva
6f806b7079
s4-drs: Uses dsdb_load_partition_usn() with urgent_uSN in s4 code
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-01-14 15:37:59 +11:00
Fernando J V da Silva
e30d009965
s4-drs: Store uSNUrgent for Urgent Replication
...
When a object or attribute is created/updated/deleted, according
to [MS-ADTS] 3.1.1.5.1.6, it stores the uSNUrgent on @REPLCHANGED
for the partitions that it belongs.
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-01-14 15:37:58 +11:00
Stefan Metzmacher
ac224452b9
s3:pdb_ldap: restore Samba 3.0.x behavior and use the first "uid" value.
...
See bug #6157 for more details.
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 25806f43dd
)
2010-01-14 02:27:34 +01:00
Stefan Metzmacher
915b7552b7
s3:smbldap: add smbldap_talloc_first_attribute()
...
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit c992127f8a
)
2010-01-14 02:26:29 +01:00
Stefan Metzmacher
204e4b26ae
s4:dsdb: use validate_update module
...
metze
2010-01-13 16:06:41 +01:00
Stefan Metzmacher
1f2efef214
s4:dsdb/schema: add dsdb_syntax_OID_validate_ldb()
...
This is a very heavy weight way of checking this syntax,
but it's very complex and using the existing function
should be ok for now. We can optimize it later.
metze
2010-01-13 16:06:41 +01:00
Stefan Metzmacher
f0fed6cadd
s4:dsdb/schema: add dsdb_syntax_DN_STRING_validate_ldb()
...
metze
2010-01-13 16:06:40 +01:00
Stefan Metzmacher
83baa44c67
s4:dsdb/schema: add dsdb_syntax_DN_BINARY_validate_ldb()
...
metze
2010-01-13 16:06:40 +01:00
Stefan Metzmacher
39dda462cd
s4:dsdb/schema: add dsdb_syntax_DN_validate_ldb()
...
metze
2010-01-13 16:06:39 +01:00
Stefan Metzmacher
4fa2bf8184
s4:dsdb/schema: add dsdb_syntax_PRESENTATION_ADDRESS_validate_ldb()
...
metze
2010-01-13 16:06:39 +01:00
Stefan Metzmacher
ba8a930d0e
s4:dsdb/schema: add dsdb_syntax_UNICODE_validate_ldb()
...
metze
2010-01-13 16:06:39 +01:00
Stefan Metzmacher
674e8350b6
s4:dsdb/schema: add dsdb_syntax_DATA_BLOB_validate_ldb()
...
metze
2010-01-13 16:06:38 +01:00
Stefan Metzmacher
e2b9454d36
s4:dsdb/schema: add dsdb_syntax_NTTIME_validate_ldb()
...
metze
2010-01-13 16:06:38 +01:00
Stefan Metzmacher
eb261a9fda
s4:dsdb/schema: add dsdb_syntax_NTTIME_UTC_validate_ldb()
...
metze
2010-01-13 16:06:37 +01:00
Stefan Metzmacher
5f13a16295
s4:dsdb/schema: add dsdb_syntax_INT64_validate_ldb()
...
metze
2010-01-13 16:03:55 +01:00
Stefan Metzmacher
ece3defd15
s4:dsdb/schema: add dsdb_syntax_INT32_validate_ldb()
...
metze
2010-01-13 16:03:54 +01:00
Stefan Metzmacher
a0f2a49b8a
s4:dsdb/schema: add dsdb_syntax_BOOL_validate_ldb()
...
metze
2010-01-13 16:03:54 +01:00
Stefan Metzmacher
bf1f067b0c
s4:dsdb: add validate_update module
...
metze
2010-01-13 16:03:54 +01:00
Stefan Metzmacher
b20707c11a
s4:dsdb/schema: add inftrastructure for dsdb_validate_ldb()
...
metze
2010-01-13 16:03:54 +01:00
Stefan Metzmacher
61589085c4
s4:dsdb/schema: add dsdb_syntax_DN_STRING_* wrappers
...
metze
2010-01-13 16:03:53 +01:00
Stefan Metzmacher
24ecd19b30
s4:dsdb/resolve_oids: also resolve oid in search attribute list
...
metze
2010-01-13 16:03:53 +01:00
Stefan Metzmacher
f715414afa
s4:dsdb/schema_load: add a TODO about schema reloading
...
metze
2010-01-13 16:03:53 +01:00
Stefan Metzmacher
7d41afece7
s4:ldb/tests: do a "schemaUpdateNow" after creating a new attribute in ldap_schema.py
...
It seems that windows doesn't need that.
And we should think about a check for reloading the schema
at the start of each "write" operation.
metze
2010-01-13 16:03:52 +01:00
Stefan Metzmacher
92b87eb474
s4:dsdb/repl: reorder dreplsrv_op_notify* functions
...
This make the whole async dreplsrv_op_notify_send/recv()
readable.
metze
2010-01-13 16:00:20 +01:00
Stefan Metzmacher
e886b6e240
s4:dsdb/repl: change dreplsrv_op_notify_send/recv() to tevent_req
...
metze
2010-01-13 14:52:00 +01:00
Stefan Metzmacher
232197e9ab
s4:dsdb/common: fix major bug in lsa_BinaryString to ldb_val conversation.
...
In lsa_BinaryString length and size are byte counts!
TODO: we may need to do byte order conversion in this functions too...
metze
2010-01-13 14:52:00 +01:00
Stefan Metzmacher
ca9bc96b96
s4:ldb_msg: first try to decode integers as signed and then fallback to unsigned
...
LDAP only knowns about signed integers, so let
ldb_msg_find_attr_as_uint() and ldb_msg_find_attr_as_uint64() cope
with it.
metze
2010-01-13 14:52:00 +01:00
Stefan Metzmacher
5d08309204
s4:dsdb/common: let samdb_msg_add_uint() call samdb_msg_add_int()
...
This is important as LDAP servers always play with int32 values
and we have to encode 0x80000000 as "-2147483648" instead of "2147483648".
metze
2010-01-13 14:51:59 +01:00
Stefan Metzmacher
2d7ad938d0
s4:dsdb/common: let samdb_msg_add_uint64() call samdb_msg_add_int64()
...
This is important as LDAP servers always play with int64 values
and we have to encode 0x8000000000000000LL as "-9223372036854775808"
instead of "9223372036854775808".
metze
2010-01-13 14:51:59 +01:00
Stefan Metzmacher
8d4b913ce2
s4:ldb: be more strict in parsing ldb time strings
...
metze
2010-01-13 14:51:59 +01:00
Kai Blin
7147c8453e
selftest: Print reason when a test fails unexpectedly
2010-01-13 14:51:58 +01:00
Andreas Schneider
129c15c083
s4-ntp_signd: Migrate to tsocket.
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-01-13 14:51:58 +01:00
Nadezhda Ivanova
a4eaa11134
Fixed a problem with incorrect default SD owner/group.
2010-01-13 15:16:38 +02:00
Volker Lendecke
026b23062e
s3: Fix a winbind segfault in "trusted_domains"
...
We have to initialize domain->backend by calling "get_cache" before doing a
query
Thanks to Christian Ambach to find this :-)
2010-01-13 12:22:31 +01:00
Zahari Zahariev
5d1aa4c5b7
Comparison tool for LDAP servers (using Ldb)
...
This tool is integrated with Samba4 Ldb. It provides a useful output
where you can find easy differences in objects or attributes within
naming context (Domain, Configuration or Schema).
Added functionality for two sets of credentials.
2010-01-13 12:06:17 +02:00
Nadezhda Ivanova
9b3871ed29
Merge branch 'master' of git://git.samba.org/samba
2010-01-13 12:02:31 +02:00
SASAJIMA Toshihiro
ca84795205
Fix bug #7034 - vfs_cap causes signal 11 (SIGSEGV)
2010-01-12 21:43:23 -08:00
Jeremy Allison
ed457e07b9
Fix two uses of strncat -> strlcat. Ensure proper use of strncpy when setting socket name.
...
Jeremy.
2010-01-12 21:18:36 -08:00
Jeremy Allison
33ee8b5a4e
Make file access control decisions a lot easier to debug (at level 10).
...
Jeremy.
2010-01-12 21:06:09 -08:00
Jeremy Allison
105f876eb4
Fix bug #7033 - SMBrmdir call always returns true, even on failure to delete a directory.
...
Argh. Missed the second (and essential) part of the fix for the above :-(.
Jeremy
2010-01-12 16:55:31 -08:00
Jeremy Allison
ce8dcbe91b
Fix bug #7033 - SMBrmdir call always returns true, even on failure to delete a directory.
...
There is a codepath missing to propagate back error returns from the rmdir
POSIX call inside close_directory when delete on close is set. This means doing
an rmdir on a Windows command line will always report success, even when the
directory was not deleted. This fix adds that codepath back into Samba.
Jeremy.
2010-01-12 16:50:40 -08:00
Jeremy Allison
47c1d9b39f
Fix bug #6876 - Delete of an object whose parent folder does not have delete rights fails even if the delete right is set on the object.
...
Final fix for the vfs_acl_xattr and vfs_acl_tdb code.
Ensure we can delete a file even if the underlying POSIX
permissions don't allow it, if the Windows permissions do.
Jeremy.
2010-01-12 16:04:44 -08:00
Jeremy Allison
2f30aea332
Remove the global char *LastDir.
...
This is no longer used for anything.
2010-01-12 14:48:23 -08:00
Volker Lendecke
2d4dda0688
s3: Lift the version of the scannedonly VFS module
2010-01-12 22:58:51 +01:00
Olivier Sessink
31e142854b
s3: Add the "scannedonly" vfs virus scanner interface module
2010-01-12 22:57:18 +01:00
Simo Sorce
3d184399a5
Strip trailing spaces
2010-01-12 13:50:24 -05:00
Michael Adam
3b58b2ac39
docs: fix xml tag in the pdbedit manpage
...
Michael
2010-01-12 16:19:57 +01:00
Michael Adam
444ecac2d2
s3:auth: add comment to nulling out stolen sampass
...
Adding this comment makes me think, I could also
have changed make_server_info_sam() talloc_move
instead of talloc_steal, but that would have
changed the signature... Well the comment is a
first step. :-)
Michael
2010-01-12 16:19:56 +01:00
Volker Lendecke
373dcf45cf
s3: Remove a pointless if-statement
2010-01-12 13:55:07 +01:00