1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

63827 Commits

Author SHA1 Message Date
Matthias Dieter Wallnöfer
131be8da0f s4:instancetype LDB module - "instanceType" is single-valued - MS-ADTS 3.1.1.5.2.2 2010-06-19 19:37:47 +02:00
Matthias Dieter Wallnöfer
3055ead4cf s4:torture/ldap/basic.c - add more error code/messages tests
And now we do match at least the LDAP error code (the WERROR one does still
differ from Windows - we will see how to change that).
2010-06-19 17:53:24 +02:00
Matthias Dieter Wallnöfer
7cbe3035d9 s4:ldap_backend.c - more customisations to match Windows Server error behaviour on renames 2010-06-19 17:53:23 +02:00
Matthias Dieter Wallnöfer
e315aceda3 ldb:ldb_dn.c - don't support "ldb_dn_add_child" on a "" parent DN
It's meaningless and could end in DNs as "cn=child,".
2010-06-19 17:53:23 +02:00
Matthias Dieter Wallnöfer
bce8017ca9 s4:python/samba/__init__.py - now specify the "relax" control for the delete operation before the provision 2010-06-19 17:53:22 +02:00
Matthias Dieter Wallnöfer
c0538a006d ldb:api.py - add a small test for the enhanced "py_ldb_delete" syntax 2010-06-19 17:53:21 +02:00
Matthias Dieter Wallnöfer
ca34ffaaac ldb:python bindings - some small cleanup & improvements in "py_ldb_add"
Also to make it similar to "py_ldb_delete".
2010-06-19 17:53:21 +02:00
Matthias Dieter Wallnöfer
2aeea4bb4d ldb:python bindings - let also "py_ldb_delete" support controls 2010-06-19 17:53:20 +02:00
Matthias Dieter Wallnöfer
d16697df49 s4:objectclass LDB module - disable delete operations when "SYSTEM_FLAG_DISALLOW_DELETE" is specified 2010-06-19 17:53:19 +02:00
Matthias Dieter Wallnöfer
46bcf883bf s4:rootdse LDB module - strip trailing whitespaces 2010-06-19 17:53:18 +02:00
Matthias Dieter Wallnöfer
7f46a91e77 s4:rootdse LDB module - protect add and delete operations on the rootdse entry 2010-06-19 17:53:18 +02:00
Matthias Dieter Wallnöfer
72e14ea8bd s4:rootdse LDB module - Return "UNWILLING_TO_PERFORM" when no attribute fits on a change 2010-06-19 17:53:17 +02:00
Matthias Dieter Wallnöfer
2af67a3602 s4:rootdse LDB module - refactor error messages
Fix indentations, use "set_errstring" when no "asprintf" functionality required.
2010-06-19 17:53:16 +02:00
Matthias Dieter Wallnöfer
a4381239ba s4:objectclass LDB module - use the old DN when displaying error messages 2010-06-19 17:53:16 +02:00
Matthias Dieter Wallnöfer
ee2bb4474f s4:objectclass LDB module - add a better message when the parent DN is invalid 2010-06-19 17:53:15 +02:00
Matthias Dieter Wallnöfer
04890bb750 s4:objectclass LDB module - add an error message when someone tries to add entries without objectclasses 2010-06-19 17:53:15 +02:00
Matthias Dieter Wallnöfer
9da8b06112 s4:objectclass LDB module - handle the case when there is a retry to add the root basedn
This isn't quitted with a normal "NO_SUCH_OBJECT" (parent not found) but with a
very special referral: one with the DN itself and the hostname is the last
component value of the DN.
2010-06-19 17:53:14 +02:00
Jelmer Vernooij
24930aa716 wafsamba: Use octal modes directly rather than constants. 2010-06-19 16:00:04 +02:00
Jelmer Vernooij
b099631f42 heimdal/waf: Initial work on making it possible to use the system
heimdal again.

Still missing are the detection of the right Heimdal version and
linking (unresolved symbols at the moment).
2010-06-19 15:32:27 +02:00
Jelmer Vernooij
b03637cb9e dsdb: Fix includes when building against system ldb. 2010-06-19 14:46:22 +02:00
Jelmer Vernooij
f370bd47b0 wafsamba: Allow manually specifying cflags/ldflags for system libraries. 2010-06-19 14:45:35 +02:00
Jelmer Vernooij
7646eb6a0f wafsamba: Use convenience function to find out if bundling is necessary. 2010-06-19 14:02:18 +02:00
Jelmer Vernooij
ccaf0c6038 dsdb: Use Samba includes so _PUBLIC_ is defined. 2010-06-19 13:55:41 +02:00
Jelmer Vernooij
a8aaf3d4be wafsamba: Factor out functions to determine if a bundled library should not or
must be used.
2010-06-19 13:47:11 +02:00
Jelmer Vernooij
238e89f7b0 dsdb: Make module ops struct for each module public. 2010-06-19 13:46:39 +02:00
Jelmer Vernooij
f36a9afc2f s4-python: Use sys.prefix rather than guessing prefix from current
file path.
2010-06-19 13:41:48 +02:00
Jelmer Vernooij
bd1786f7f1 wafsamba: Fix typo: noextenion -> noextension. 2010-06-19 12:10:29 +02:00
Jelmer Vernooij
bf8045037d waf: Add missing dependency (so header paths are inherited) on talloc to internal python lib. 2010-06-19 02:26:13 +02:00
Jelmer Vernooij
5143353108 samba4: Build libreplace as builtin library by default so it doesn't end
up in $prefix/lib.
2010-06-18 23:51:40 +02:00
Jelmer Vernooij
f2527d217c replace: Avoid hiding symbols when libreplace is builtin, as this
appears to cause unresolved symbols at the moment.
2010-06-18 23:51:40 +02:00
Jelmer Vernooij
380ee5f081 ldb: Remove dependency on self. 2010-06-18 23:51:40 +02:00
Jelmer Vernooij
e0fe941218 wafsamba: Use BUILTIN_LIBRARY() rather than relying on side-effects. 2010-06-18 23:51:40 +02:00
Jelmer Vernooij
da0fb0affb ldbsamba: Build as subsystem to prevent infinite recursion issues. 2010-06-18 23:51:40 +02:00
Jelmer Vernooij
4c22434b3b s4: Don't build a $prefix/lib/libpython.so, as such a library often already exists :-) 2010-06-18 23:51:40 +02:00
Jelmer Vernooij
b391b7d072 s4-waf: Don't include pytalloc when embedding python. 2010-06-18 23:51:40 +02:00
Jelmer Vernooij
ebd0bca555 s4: Build more python convenience files as subsystems rather than as python modules. 2010-06-18 23:51:40 +02:00
Jelmer Vernooij
8e8496208b ldb: Don't build pyldb_util as python module but rather as subsystem, so as to not delute /usr/lib. 2010-06-18 23:51:40 +02:00
Jelmer Vernooij
f74dceda8c ldb-samba: Don't build pyldbsamba as python module but rather as subsystem, so as to not delute /usr/lib. 2010-06-18 23:51:40 +02:00
Jelmer Vernooij
9382507909 web_server: Don't build wsgi support as python module but rather as
subsystem so we don't install it into /usr/lib.
2010-06-18 23:51:40 +02:00
Matthias Dieter Wallnöfer
837a975c2b s4:cldap_server/rootdse.c - simplify the code a bit
Remove "NULL"-content variables and use "NULL"s directly as arguments. Add some
linewraps where needed.
2010-06-18 19:21:34 +02:00
Matthias Dieter Wallnöfer
9969cfc36c s4:cldap_server.c - here the counter variable should be "signed" 2010-06-18 18:57:38 +02:00
Jeremy Allison
2e8c563961 Second part of fix converting prs_XX struct and functions to talloc. Remove unneeded prs_mem_free calls.
Jeremy.

Signed-off-by: Simo Sorce <idra@samba.org>
2010-06-18 07:42:05 -04:00
Jeremy Allison
f4e7d9d38e Convert the prs_XXX struct and functions to use talloc instead of malloc. Passes valgrind and make tests for client and server. Second version of this patch after splitting up at Simo's request. Patch to follow will delete extraneous prs_mem_free() calls.
Jeremy.

Signed-off-by: Simo Sorce <idra@samba.org>
2010-06-18 07:41:47 -04:00
Matthieu Patou
3fa38046cb unittest: Change the name of the base ldb test so that it can be easily called separatly 2010-06-18 10:04:28 +02:00
Matthias Dieter Wallnöfer
c9ef9da12f s4:ldap_backend.c - fix crash bugs when we got in error situations with "res" still set to "NULL" 2010-06-18 10:03:19 +02:00
Matthias Dieter Wallnöfer
e7fef1ac84 s4:ldap_backend.c - fix a small error (use "ModifyResponse" rather than "AddResponse") 2010-06-18 10:03:19 +02:00
Matthias Dieter Wallnöfer
955e1835ef s4:objectclass LDB module - move "mem_ctx" initialisation lower
Saves us some "talloc_free"s on error cases
2010-06-18 10:03:09 +02:00
Matthias Dieter Wallnöfer
56e4822566 s4:dcesrv_netr_DsRAddressToSitenamesExW - fix the detection of the address family in a better way
Obviously the last attempt wasn't enough. Now we do really only read the first
byte in the address buffer which on little endian transmission does always
contain the address family (MS-NRPC 2.2.1.2.4.1).
This should now be working platform-independently.
2010-06-18 10:03:08 +02:00
Matthias Dieter Wallnöfer
01e9d090f1 s4:torture/rpc/netlogon.c - make sure that the address family is set in little endian in the "AddressToSitenames" tests 2010-06-18 10:03:07 +02:00
Matthias Dieter Wallnöfer
917f6015a6 s4:torture/rpc/netlogon.c - activate "AddressToSitenames" tests which do run against s4 2010-06-18 10:03:07 +02:00