1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
Commit Graph

17769 Commits

Author SHA1 Message Date
Simo Sorce
af049ae83c s4:cosmetic: Remove trailing tabs and spaces 2008-12-19 09:58:28 -05:00
Matthias Dieter Wallnöfer
dde0964d72 Small cosmetic LDB patch regarding return values.
It changes some "return 0" in "return LDB_SUCCESS"
2008-12-19 09:54:20 -05:00
Sreepathi Pai
43f232fcc9 Fix errors in MS-AD_Schema_Attributes_v20080618.txt
- Remove spurious line breaks
 - Add missing attributeId from docs
 - Remove incorrect multiple values of systemFlags
 - Fix duplicate attributeId
 - Fix schemaIdGuid syntax

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2008-12-19 10:56:09 +11:00
Stefan (metze) Metzmacher
a937a68826 Here's the prefixMap from w2k8.
We need to move 1.3.6.1.4.1.7165.4.1 and 1.3.6.1.4.1.7165.4.2 to the
end...(if we still need them, which we should avoid)

metze

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2008-12-19 10:55:56 +11:00
Tim Prouty
d031472227 s4: Fix include path to work with tevent 2008-12-18 15:03:37 -08:00
Andrew Bartlett
f52fc2f90e Move aggregate schema stub to it's own file
This should make it easier to import just the schema entries from the
WSPP docs.

Andrew Bartlett
2008-12-19 09:51:42 +11:00
Andrew Bartlett
ff98d7f9ce Fix failures setting a random password
The test in extract_pw_from_buffer was incorrect: It tested if the
first byte of the new password was 0 (a 1/256 chance for the random
passwords), not if the password was allocated.

Andrew Bartlett
2008-12-19 08:18:57 +11:00
Jelmer Vernooij
21702bfcde Cope with slight changes in tdb API. 2008-12-18 20:43:05 +00:00
Jelmer Vernooij
7f148a2cf8 Fix Python event tests after rename to tevent. 2008-12-18 16:51:59 +00:00
Jelmer Vernooij
01c22153a9 Fix samba3sam test after removal of dom_sid IDL file. 2008-12-18 16:50:54 +00:00
Jelmer Vernooij
61a2d5c878 Use plain Python C API for registry module, rather than SWIG. 2008-12-18 16:49:33 +00:00
Jelmer Vernooij
49d522fe38 Add convenience macro for raising exceptions for NTSTATUS / WERROR. 2008-12-18 15:32:58 +00:00
Jelmer Vernooij
d14c860465 Merge branch 'master' of ssh://git.samba.org/data/git/samba into pyregistry 2008-12-18 14:54:57 +00:00
Stefan Metzmacher
fc31f2c526 s4:lib/socket: socket_connect_send() and socket_connect_ev() should only wrok with addresses
metze
2008-12-18 13:32:51 +01:00
Stefan Metzmacher
4c2a113dd0 s4:librpc/rpc: remove we should not redo the name resolving for secondary tcp connections
metze
2008-12-18 13:32:51 +01:00
Stefan Metzmacher
4f5b8b68d5 s4:libcli/wrepl: we don't need to resolve names
metze
2008-12-18 13:32:50 +01:00
Stefan Metzmacher
a60159c873 s4:libcli/replace: add some RESOLVE_NAME_FLAG* flags
metze
2008-12-18 13:32:50 +01:00
Stefan Metzmacher
9f8dfb0a52 s4:selftest: we pass raw.delete.delete21
metze
2008-12-18 13:32:50 +01:00
Stefan Metzmacher
71b3582fe4 s4:ntvfs_generic: pass RAW-OPEN again
This is the samba4 version of commit
9391dad85d

metze
2008-12-18 13:32:49 +01:00
Stefan Metzmacher
0df3036730 RAW-CHKPATH: not every server behaves like samba3...
metze
2008-12-18 13:31:41 +01:00
Stefan Metzmacher
79351f75fe BASE-LOCK: fix LOCK5
We need to close all 3 file handle to make the unlink work.

metze
2008-12-18 13:31:41 +01:00
Andrew Bartlett
7a5b6a2ea1 Handle different failure modes when we wipe the db in provision
We didn't handle the mode where we can't load the main sam.ldb due to
the modules being 'wrong', and when we did remove the file, we didn't
wipe the partitions.
2008-12-18 17:17:56 +11:00
Andrew Bartlett
1a399db01c Parse options (and open the database) before starting transactions 2008-12-18 14:36:20 +11:00
Andrew Bartlett
a9cf61dbdd Print error strings when transactions fail in ldb tools 2008-12-18 14:36:20 +11:00
Andrew Bartlett
8deded43ba Rename ldb index pointer wrapper function
This also asserts that it is used only for index records.

Andrew Bartlett
2008-12-18 14:36:20 +11:00
Jeremy Allison
55620b4e3c Samba3 smbd now passes test BATCH23 (with the fix for bug #5979), only BATCH22 left to fix.
Jeremy.
2008-12-17 17:30:18 -08:00
Günther Deschner
93c61a814a s4: smbtorture, fix the build of netlogon test after idl change.
Guenther
2008-12-17 23:52:15 +01:00
Günther Deschner
188695f07f s4: fix smbtorture build after idl change.
Guenther
2008-12-17 23:23:56 +01:00
Stefan Metzmacher
116fbd6b5a s4:libcli/resolve: specify the port for the resulting socket_addresses
metze
2008-12-17 20:28:40 +01:00
Stefan Metzmacher
7d0e78a52c s4:libcli/resolve: optionally return the name that belongs to the returned address
E.g. this helps for DNS CNAME and SRV results.

metze
2008-12-17 20:26:38 +01:00
Stefan Metzmacher
937fdb8a7e s4:libcli/resolve: pass down flags to the resolver backends
metze
2008-12-17 20:25:52 +01:00
Stefan Metzmacher
c8565c0e7a s4:libcli/resolve: remove all backend specific sync functions
metze
2008-12-17 19:12:27 +01:00
Stefan Metzmacher
f6b3c70b97 s4:libcli/resolve: let the "host" module use the dns_ex.c code
That means we now return all ip addresses instead of just the first one.

metze
2008-12-17 19:12:26 +01:00
Stefan Metzmacher
9492f0f00f s4:libcli/resolve: add getaddrinfo()/dns_looup() resolving
This "dns_ex" module provides flexible lookup methods
for dns lookups.

The getaddrinfo() part looks at /etc/hosts and dns.
As it handles CNAME replies badly we fallback
to use dns_lookup(name, "A").

The dns_lookup() makes DNS SRV lookups possible.

This module is not a real resolve module, it's just
a generic helper as the nbtlist.c code is.

The next step will be that the "host" module will
use the dns_ex.c code.

metze
2008-12-17 19:12:26 +01:00
Stefan Metzmacher
8df2140c18 s4:libcli/resolve: don't use __RESOLVE_H__ it might be used by system headers too
metze
2008-12-17 19:12:25 +01:00
Stefan Metzmacher
372f700f47 s4:lib/socket: we need to lookup the #20 netbios name when we connect to a remote server
metze
2008-12-17 19:12:24 +01:00
Stefan Metzmacher
03acd29128 s4:lib/socket: remove unused code
metze
2008-12-17 19:12:24 +01:00
Stefan Metzmacher
fa23a63b4d s4:headermap: dom_sid.h was renamed to server_id.h
metze
2008-12-17 18:55:45 +01:00
Stefan Metzmacher
6878295636 s4:headermap: we need the pathes for gen_ndr headers with and without ../
This should fix the OpenChange build

metze
2008-12-17 13:31:29 +01:00
Stefan Metzmacher
46eda79090 s4:lib/tevent: add lib/events/ compat and let things compile
metze
2008-12-17 13:31:29 +01:00
Stefan Metzmacher
504f8816e3 s4:lib/events: move to toplevel directory as lib/tevent/
This commit will not compile on its own.

metze
2008-12-17 13:31:28 +01:00
Stefan Metzmacher
081f8883ba s4: fix LIBEVENTS dependencies and use more forward declarations
We should only include events.h where we really need it
and prefer forward declarations of 'struct event_context'

metze
2008-12-17 11:04:45 +01:00
Andrew Bartlett
eb3714acfa s4:ldb: add some python tests for extended dns
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-17 12:29:29 +11:00
Andrew Bartlett
12a7eeeaf4 s4:dsdb: remove normalise module
The extended_dn_out module provides the functionality now.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-17 12:29:29 +11:00
Andrew Bartlett
ebe1e923c8 s4:provision: use extended_dn_out_ldb or extended_dn_out_dereference depending on the backend
This just changes the existing stratagy of loading different modules
for the OpenLDAP backend to also include extended_dn_out_*

When we provision the OpenLDAP backend, we make sure to include the
'deref' overlay (which must be made available by the OpenLDAP build)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-17 12:29:28 +11:00
Andrew Bartlett
1f28541a24 s4:dsdb: split extended_dn into extended_dn_in, extended_dn_out and extended_dn_store.
By splitting the module, the extended_dn_in and extended_dn_store
moudles can use extended_dn_out to actually get the extended DN.  This
avoids code duplication.

The extended_dn_out module also contains a client implementation of
the OpenLDAP dereference control (draft-masarati-ldap-deref-00).

This also introduces a new control
'DSDB_CONTROL_DN_STORAGE_FORMAT_OID' to ask the extended_dn_out module
to return whatever the 'storage format' is.  This allows us to work
with both OpenLDAP (which performs a dereference at run time) and LDB
(which stores the GUID and SID on disk).

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-17 12:29:28 +11:00
Andrew Bartlett
911cf5d625 s4:dsdb: Make the linked_attributes module set an extended dn
This means that linked attributes will always have the same case form
as the actaul entry, as we search for that entry.  We then also use
the GUID and SID found on that entry to fill in the extended DN on disk.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-17 12:29:28 +11:00
Andrew Bartlett
d68ad8218f s4:rootdse: fix the logic to indentify a rootdse search
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-17 12:29:28 +11:00
Andrew Bartlett
596fe759e1 s4:ldb: make it possible to return per entry controls
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-17 12:29:27 +11:00
Andrew Bartlett
74f304ec30 s4:setup: fix cut-n-paste error Builtin-Domain => Samba4-Local-Domain
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-17 12:29:27 +11:00