ira/wip.git
15 years agos4:libcli/resolve: optionally return the name that belongs to the returned address
Stefan Metzmacher [Sat, 13 Dec 2008 19:50:36 +0000 (20:50 +0100)]
s4:libcli/resolve: optionally return the name that belongs to the returned address

E.g. this helps for DNS CNAME and SRV results.

metze

15 years agos4:libcli/resolve: pass down flags to the resolver backends
Stefan Metzmacher [Sat, 13 Dec 2008 10:03:52 +0000 (11:03 +0100)]
s4:libcli/resolve: pass down flags to the resolver backends

metze

15 years agos4:libcli/resolve: remove all backend specific sync functions
Stefan Metzmacher [Sat, 13 Dec 2008 09:57:44 +0000 (10:57 +0100)]
s4:libcli/resolve: remove all backend specific sync functions

metze

15 years agos4:libcli/resolve: let the "host" module use the dns_ex.c code
Stefan Metzmacher [Fri, 12 Dec 2008 18:40:47 +0000 (19:40 +0100)]
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

15 years agos4:libcli/resolve: add getaddrinfo()/dns_looup() resolving
Stefan Metzmacher [Fri, 12 Dec 2008 14:15:21 +0000 (15:15 +0100)]
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

15 years agos4:libcli/resolve: don't use __RESOLVE_H__ it might be used by system headers too
Stefan Metzmacher [Sat, 13 Dec 2008 10:24:10 +0000 (11:24 +0100)]
s4:libcli/resolve: don't use __RESOLVE_H__ it might be used by system headers too

metze

15 years agos4:lib/socket: we need to lookup the #20 netbios name when we connect to a remote...
Stefan Metzmacher [Fri, 12 Dec 2008 13:36:15 +0000 (14:36 +0100)]
s4:lib/socket: we need to lookup the #20 netbios name when we connect to a remote server

metze

15 years agos4:lib/socket: remove unused code
Stefan Metzmacher [Fri, 12 Dec 2008 13:35:42 +0000 (14:35 +0100)]
s4:lib/socket: remove unused code

metze

15 years agos4:headermap: dom_sid.h was renamed to server_id.h
Stefan Metzmacher [Wed, 17 Dec 2008 12:48:29 +0000 (13:48 +0100)]
s4:headermap: dom_sid.h was renamed to server_id.h

metze

15 years agoFix a valgrind error
Volker Lendecke [Wed, 17 Dec 2008 17:14:09 +0000 (18:14 +0100)]
Fix a valgrind error

Reported by naga_kishore_kommuri@yahoo.com

Derrel, please check!

Thanks,

Volker
(cherry picked from commit 3356b95f72e26ede4ab16a12c334be90b8b1a639)

15 years agoTweak with pam defines of older Linux versions
Lars Müller [Wed, 17 Dec 2008 14:39:35 +0000 (15:39 +0100)]
Tweak with pam defines of older Linux versions

PAM_AUTHTOK_RECOVERY_ERR is not defined by older Linux versions (SUSE
Linux Enterprise 9 and RedHat Enterprise 4).

Patch suggested by Philipp Thomas <pth at suse dot de>.

15 years agodocs: Fix typo in man idmap_hash.
Karolin Seeger [Wed, 17 Dec 2008 15:28:59 +0000 (16:28 +0100)]
docs: Fix typo in man idmap_hash.

Karolin

15 years agos3/smb.h: Remove unused LDAP_SSL_ON.
Karolin Seeger [Wed, 17 Dec 2008 15:26:43 +0000 (16:26 +0100)]
s3/smb.h: Remove unused LDAP_SSL_ON.

LDAP_SSL_ON is not defined at all.
Ldaps can be used by specifying an ldaps URL using the "passdb backend"
parameter.

Karolin

15 years agodocs: Update section "ldap ssl" in man smb.conf.
Karolin Seeger [Wed, 17 Dec 2008 15:18:38 +0000 (16:18 +0100)]
docs: Update section "ldap ssl" in man smb.conf.

Remove non-existent value "on".
Change default value to "no".
Add hint about ldaps.

Karolin

15 years agos3/loadparm.c: Change default value for "ldap ssl".
Karolin Seeger [Wed, 17 Dec 2008 14:53:51 +0000 (15:53 +0100)]
s3/loadparm.c: Change default value for "ldap ssl".

LDAP_SSL_ON is not defined at all. That's why the actual default value
was "" for a long time. Set a more sensible default value without chnging the
default behaviour.

-----8<------------------snip--------------8<--------------
user@host:/data/git/samba/v3-0-test/source> git grep LDAP_SSL_ON | cat
include/smb.h:enum ldap_ssl_types {LDAP_SSL_ON, LDAP_SSL_OFF,
LDAP_SSL_START_TLS};
param/loadparm.c:       Globals.ldap_ssl = LDAP_SSL_ON;
----->8------------------snap-------------->8--------------

It's the same in 3.2 and 3.3 series.

Karolin

15 years agodocs: Fix some formatting issues in the "ldap ssl" section of man smb.conf.
Karolin Seeger [Wed, 17 Dec 2008 14:42:12 +0000 (15:42 +0100)]
docs: Fix some formatting issues in the "ldap ssl" section of man smb.conf.

Karolin

15 years agos4:headermap: we need the pathes for gen_ndr headers with and without ../
Stefan Metzmacher [Wed, 17 Dec 2008 12:30:05 +0000 (13:30 +0100)]
s4:headermap: we need the pathes for gen_ndr headers with and without ../

This should fix the OpenChange build

metze

15 years agolib/util: make it possible to use debug.h with using xfile.h
Stefan Metzmacher [Wed, 17 Dec 2008 10:34:41 +0000 (11:34 +0100)]
lib/util: make it possible to use debug.h with using xfile.h

metze

15 years agos4:lib/tevent: add lib/events/ compat and let things compile
Stefan Metzmacher [Tue, 16 Dec 2008 18:57:09 +0000 (19:57 +0100)]
s4:lib/tevent: add lib/events/ compat and let things compile

metze

15 years agos4:lib/events: move to toplevel directory as lib/tevent/
Stefan Metzmacher [Tue, 16 Dec 2008 15:10:22 +0000 (16:10 +0100)]
s4:lib/events: move to toplevel directory as lib/tevent/

This commit will not compile on its own.

metze

15 years agonet lua
Volker Lendecke [Sun, 14 Sep 2008 13:44:57 +0000 (15:44 +0200)]
net lua

This adds a lua command line interpreter with some sample code how to build
your own data types based on our internal data types.

Not meant as the final word, but as a playground for experiments for people.
Might be removed later when we find this turns out to be too awkward.

15 years agoCompile liblua
Volker Lendecke [Sun, 14 Sep 2008 13:30:57 +0000 (15:30 +0200)]
Compile liblua

15 years agoAdd the Lua distibution from http://www.lua.org/ftp/lua-5.1.4.tar.gz
Volker Lendecke [Fri, 19 Sep 2008 06:01:23 +0000 (08:01 +0200)]
Add the Lua distibution from lua.org/ftp/lua-5.1.4.tar.gz

Available under the MIT license.

Adding it to see how the build farm likes it. They claim to be 100% pure
ANSI C and compile everywhere. Lets see. If it breaks badly, we can remove
it again.

15 years agos4: fix LIBEVENTS dependencies and use more forward declarations
Stefan Metzmacher [Tue, 16 Dec 2008 23:06:34 +0000 (00:06 +0100)]
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

15 years agodocs: Fix TOC of generated HTML docs.
Karolin Seeger [Wed, 17 Dec 2008 08:17:26 +0000 (09:17 +0100)]
docs: Fix TOC of generated HTML docs.

This fixes bug #5968.
Thanks to Christian Perrier <bubulle@debian.org> for reporting!

Karolin

15 years agos3/s4: Fix DCOM idl bug
Tim Prouty [Wed, 17 Dec 2008 06:46:33 +0000 (22:46 -0800)]
s3/s4: Fix DCOM idl bug

A build warning uncovered a bug where a pointer was being passed in
instead of the dereferenced value of the pointer.

15 years agos4:testprogs: improve extended dn testing of the ldb blackbox tests
Andrew Bartlett [Tue, 16 Dec 2008 08:12:06 +0000 (09:12 +0100)]
s4:testprogs: improve extended dn testing of the ldb blackbox tests

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:ldb: add some python tests for extended dns
Andrew Bartlett [Tue, 16 Dec 2008 08:11:11 +0000 (09:11 +0100)]
s4:ldb: add some python tests for extended dns

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:dsdb: remove normalise module
Andrew Bartlett [Tue, 16 Dec 2008 08:23:07 +0000 (09:23 +0100)]
s4:dsdb: remove normalise module

The extended_dn_out module provides the functionality now.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:provision: use extended_dn_out_ldb or extended_dn_out_dereference depending on...
Andrew Bartlett [Tue, 16 Dec 2008 08:18:21 +0000 (09:18 +0100)]
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>
15 years agos4:dsdb: split extended_dn into extended_dn_in, extended_dn_out and extended_dn_store.
Andrew Bartlett [Tue, 16 Dec 2008 08:21:55 +0000 (09:21 +0100)]
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>
15 years agos4:dsdb: Make the linked_attributes module set an extended dn
Andrew Bartlett [Thu, 20 Nov 2008 09:06:16 +0000 (20:06 +1100)]
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>
15 years agos4:rootdse: fix the logic to indentify a rootdse search
Andrew Bartlett [Tue, 16 Dec 2008 08:01:35 +0000 (09:01 +0100)]
s4:rootdse: fix the logic to indentify a rootdse search

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:ldb: make it possible to return per entry controls
Andrew Bartlett [Tue, 16 Dec 2008 07:59:05 +0000 (08:59 +0100)]
s4:ldb: make it possible to return per entry controls

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:selftest: lower debug level for slapd
Andrew Bartlett [Tue, 16 Dec 2008 07:51:41 +0000 (08:51 +0100)]
s4:selftest: lower debug level for slapd

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:setup: fix cut-n-paste error Builtin-Domain => Samba4-Local-Domain
Andrew Bartlett [Tue, 16 Dec 2008 07:48:44 +0000 (08:48 +0100)]
s4:setup: fix cut-n-paste error Builtin-Domain => Samba4-Local-Domain

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:setup: don't set objectCategory: CN=Domain-DNS,${SCHEMADN}
Andrew Bartlett [Tue, 16 Dec 2008 07:48:01 +0000 (08:48 +0100)]
s4:setup: don't set objectCategory: CN=Domain-DNS,${SCHEMADN}

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:torture: add ldb tests
Andrew Bartlett [Tue, 16 Dec 2008 07:45:43 +0000 (08:45 +0100)]
s4:torture: add ldb tests

These tests are for both the new extended DN functionality (and were
vital in finding bugs during implementation) and for the normal DN
parsing and comparison routines.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:ldap_server: return the extended dn to the LDAP client if available
Andrew Bartlett [Tue, 16 Dec 2008 07:44:11 +0000 (08:44 +0100)]
s4:ldap_server: return the extended dn to the LDAP client if available

This uses an early peek at the extended_dn_control (in the request) to see what output
format to use.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:ldb-samba: register samba specific extended dn handlers
Andrew Bartlett [Tue, 16 Dec 2008 07:43:12 +0000 (08:43 +0100)]
s4:ldb-samba: register samba specific extended dn handlers

This provides the two extended DN handlers for the GUID and SID types,
and makes the parsing more strict (where possible, it uses
ndr_pull_struct_blob_all(), to cause an error if trailing data is
found).

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:samldb: make use of dom_sid_split_rid()
Andrew Bartlett [Tue, 16 Dec 2008 07:41:22 +0000 (08:41 +0100)]
s4:samldb: make use of dom_sid_split_rid()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:samldb: improve error strings
Andrew Bartlett [Tue, 16 Dec 2008 07:40:49 +0000 (08:40 +0100)]
s4:samldb: improve error strings

When things go wrong with LDB, this routine seems to be particularly
sensitive to it.  This extra debugging should help the next poor soul who
breaks LDB.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:ldb.i: hang the dn on the NULL context as the python destructor will free it
Andrew Bartlett [Tue, 16 Dec 2008 07:34:48 +0000 (08:34 +0100)]
s4:ldb.i: hang the dn on the NULL context as the python destructor will free it

This fixes a bug in the ldb.i python wrapper, that showed up under valgrind.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:ldb: use try to print the extended dn in the ldif output
Andrew Bartlett [Tue, 16 Dec 2008 07:33:32 +0000 (08:33 +0100)]
s4:ldb: use try to print the extended dn in the ldif output

This allows searches with the extended DN control to still print the
extended DN in ldif output (it would otherwise be parsed and hidden in
the structure).

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:dsdb: add support for DSDB_OPENLDAP_DEREFERENCE_CONTROL
Andrew Bartlett [Tue, 16 Dec 2008 07:28:55 +0000 (08:28 +0100)]
s4:dsdb: add support for DSDB_OPENLDAP_DEREFERENCE_CONTROL

Encode and decode the OpenLDAP dereference control (draft-masarati-ldap-deref-00)

At this time, the ldb_controls infrustructure does not handle request
and reply controls having different formats, so this is purely the
client implementation (ie, there is no decode of the client->server
packet, and no encode of the server->client packet).

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:libcli/ldap: split out a ldap_decode_attribs_bare() function
Andrew Bartlett [Tue, 16 Dec 2008 07:27:51 +0000 (08:27 +0100)]
s4:libcli/ldap: split out a ldap_decode_attribs_bare() function

The OpenLDAP dereference control (draft-masarati-ldap-deref-00) uses
an attribute list, as found in the search reply, but without one
enclosing ASN1_SEQUENCE(0)

This allows the dereference control parsing code to use this as a
helper function.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:ldb_ildap: try to pass extended DNs to the server
Andrew Bartlett [Tue, 16 Dec 2008 07:25:44 +0000 (08:25 +0100)]
s4:ldb_ildap: try to pass extended DNs to the server

Whenever we pass a DN to the LDAP server, we now use
ldb_dn_get_extended_linearized().  This allows us to send the extended
DN if set, and therefore allows searches of the form
'<GUID=aaa45ea0-94cd-45e9-8753-abe455d9a8f1>'.

We actually use the '0' format (GUID=aaa45ea094cd45e98753abe455d9a8f1)
because it is more widely supported (by Win2k in particular).

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agos4:ldb: add infrastructure for extended dn handlers
Andrew Bartlett [Tue, 16 Dec 2008 07:19:07 +0000 (08:19 +0100)]
s4:ldb: add infrastructure for extended dn handlers

This introduces a new set of pluggable syntax, for use on the
extended DN, and uses them when parsing the DN.

If the DN appears to be in the extended form, we no longer return the
full DN 'as is', but only return the normal part from
ldb_dn_get_linearized().

When validating/parsing the DN we validate not only the format of the
DN, but also the contents of the GUID or SID (to ensure they are
plausable).

We also have functions to set and get the extended components on the DN.

For now, extended_dn_get_linearized() returns a newly constructed and
allocated string each time.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agoAdd hint to use passwordAttributes in @KLUDGE_ACL in future
Andrew Bartlett [Mon, 8 Dec 2008 11:22:21 +0000 (22:22 +1100)]
Add hint to use passwordAttributes in @KLUDGE_ACL in future

This module is not used at the moment, but if we do use it again, we
should try to avoid duplicate lists.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agoMake greater use of 'GUID_from_data_blob'
Andrew Bartlett [Wed, 3 Dec 2008 23:38:07 +0000 (10:38 +1100)]
Make greater use of 'GUID_from_data_blob'

This avoids accidentily running off the end of a string, and uses a
single 'guess which type of GUID I have' algorithm.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agoFix sequence number generation against OpenLDAP
Andrew Bartlett [Wed, 10 Dec 2008 06:23:44 +0000 (17:23 +1100)]
Fix sequence number generation against OpenLDAP

It seems that in 2deeb99fff1a90c79ba1927e1a069362e250a63c adding the
partition control to this request was missed out.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
15 years agonsswitch: fix compiler warnings in winbind_nss_linux.c
Stefan Metzmacher [Tue, 16 Dec 2008 23:30:21 +0000 (00:30 +0100)]
nsswitch: fix compiler warnings in winbind_nss_linux.c

metze

15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Tue, 16 Dec 2008 21:59:18 +0000 (22:59 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

15 years agoDon't write out forward declarations for enums, as some compilers don't
Jelmer Vernooij [Tue, 16 Dec 2008 21:58:10 +0000 (22:58 +0100)]
Don't write out forward declarations for enums, as some compilers don't
seem to like it.

15 years ago(Fixed) Final part of fix for bug #5953 - smbclient crashes: cli_list_new segmentatio...
Kai Blin [Tue, 16 Dec 2008 21:40:38 +0000 (13:40 -0800)]
(Fixed) Final part of fix for bug #5953 - smbclient crashes: cli_list_new segmentation fault (with NAS-BASIC server).

15 years agoMerge branch 'master' of ssh://jra@git.samba.org/data/git/samba
Jeremy Allison [Tue, 16 Dec 2008 21:35:44 +0000 (13:35 -0800)]
Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba

15 years agoRevert "Final part of fix for bug #5953 - smbclient crashes: cli_list_new segmentatio...
Jeremy Allison [Tue, 16 Dec 2008 21:31:52 +0000 (13:31 -0800)]
Revert "Final part of fix for bug #5953 - smbclient crashes: cli_list_new segmentation fault (with NASBASIC server)."
Error in commit !

This reverts commit bbd5824140992ea457d4270ee77018ebb367abc9.

15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Tue, 16 Dec 2008 21:22:15 +0000 (22:22 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

15 years agoFix header installation after move of gen_ndr headers.
Jelmer Vernooij [Tue, 16 Dec 2008 21:20:21 +0000 (22:20 +0100)]
Fix header installation after move of gen_ndr headers.

15 years agoFinal part of fix for bug #5953 - smbclient crashes: cli_list_new segmentation fault...
Kai Blin [Tue, 16 Dec 2008 21:19:15 +0000 (13:19 -0800)]
Final part of fix for bug #5953 - smbclient crashes: cli_list_new segmentation fault (with NASBASIC server).

15 years agoStart converting registry python module to plain C rather than SWIG.
Jelmer Vernooij [Tue, 16 Dec 2008 20:51:01 +0000 (21:51 +0100)]
Start converting registry python module to plain C rather than SWIG.

15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Andrew Tridgell [Tue, 16 Dec 2008 20:17:54 +0000 (07:17 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

15 years agoan experimental patch for fixing ldb bloat
Andrew Tridgell [Tue, 16 Dec 2008 07:45:28 +0000 (18:45 +1100)]
an experimental patch for fixing ldb bloat

ldb indexing can cause huge files, and huge memory usage. This
experiment allows us to keep indexes in memory during a transaction,
then to write the indexes to disk when the transaction completes. The
result is that the db is much smaller (we have seen improvements of
about 100x in file size) and memory usage during large transactions is
also greatly reduced

Note that this patch uses the unusual strategy of putting pointers
into a ldb (and thus into a tdb). This works because the pointers are
only there during a transaction, so the pointers are not exposed to
any other users of the database. The pointers allow us to avoid some
really bad allocation problems with tdb record allocation during the
re-indexing.

15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Tue, 16 Dec 2008 18:51:35 +0000 (19:51 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

15 years agoUse py_* files to check whether generated files are out of date / not
Jelmer Vernooij [Tue, 16 Dec 2008 18:46:43 +0000 (19:46 +0100)]
Use py_* files to check whether generated files are out of date / not
present.

ndr_*.c files are in git (required for Samba 3), py_*.c files are not.

15 years agoIgnore generated files.
Jelmer Vernooij [Tue, 16 Dec 2008 18:43:52 +0000 (19:43 +0100)]
Ignore generated files.

15 years agoRemove ndrdump - it's available in merged build mode as bin/ndrdump4 and uses the...
Jelmer Vernooij [Tue, 16 Dec 2008 18:08:36 +0000 (19:08 +0100)]
Remove ndrdump - it's available in merged build mode as bin/ndrdump4 and uses the exact same object files there.

15 years agoRemove use of C++ keywords.
Jelmer Vernooij [Tue, 16 Dec 2008 18:07:02 +0000 (19:07 +0100)]
Remove use of C++ keywords.

15 years agoShare object files for gen_ndr.
Jelmer Vernooij [Tue, 16 Dec 2008 17:56:21 +0000 (18:56 +0100)]
Share object files for gen_ndr.

15 years agocommit b520befe6f51644d20434add9864d7a2fa30aa2e
SATOH Fumiyasu [Tue, 16 Dec 2008 15:54:30 +0000 (00:54 +0900)]
commit b520befe6f51644d20434add9864d7a2fa30aa2e
Author: SATOH Fumiyasu <fumiyas@osstech.co.jp>
Date:   Wed Dec 17 00:42:25 2008 +0900

    libsmbclient: Fix SIGBUS on non-x86 CPUs

    We must align the struct smbc_dirent in the struct
    SMBC_internal_data because the struct smbc_dirent
    has numeric values that require alignment.

Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
15 years agoMake some fatal errors non-fatal. This means we generate invalid code in
Jelmer Vernooij [Tue, 16 Dec 2008 17:02:14 +0000 (18:02 +0100)]
Make some fatal errors non-fatal. This means we generate invalid code in
some cases, but we do print errors. We don't use all generated code yet at the
moment, so this isn't much of a problem.

15 years agoFix [out] pointers in DCOM-related IDL files.
Jelmer Vernooij [Tue, 16 Dec 2008 16:42:23 +0000 (17:42 +0100)]
Fix [out] pointers in DCOM-related IDL files.

15 years agos3/s4: Fix "shadows a global declaration" warning
Tim Prouty [Tue, 16 Dec 2008 16:33:58 +0000 (08:33 -0800)]
s3/s4: Fix "shadows a global declaration" warning

15 years agonss_winbind: Solaris 64-bit fix and...
SATOH Fumiyasu [Tue, 16 Dec 2008 15:59:07 +0000 (16:59 +0100)]
nss_winbind: Solaris 64-bit fix and...

PATCH 1:
Fix gmem->numgids and gmem->maxgids breakage on Solaris 64-bit
because sizeof(int) != sizeof(long int).

PATCH 2:
This patch fixes a compile-time warning
"warning: implicit function declaration: _nss_winbind_initgroups_dyn".
(cherry picked from commit cb036772d09227f870c2fec3ecd8c3f53787dfbc)

15 years agoRemove pidl SWIG backend; the native Python one works much better, and
Jelmer Vernooij [Tue, 16 Dec 2008 15:48:48 +0000 (16:48 +0100)]
Remove pidl SWIG backend; the native Python one works much better, and
that's also the best way to go for any other languages.

15 years agoSimplify idl-deps.pl script a bit.
Jelmer Vernooij [Tue, 16 Dec 2008 15:46:13 +0000 (16:46 +0100)]
Simplify idl-deps.pl script a bit.

15 years agoOnly create (D)COM output files if there were COM objects in the IDL files.
Jelmer Vernooij [Tue, 16 Dec 2008 15:37:54 +0000 (16:37 +0100)]
Only create (D)COM output files if there were COM objects in the IDL files.

15 years agoAdd new script for building IDL files in librpc/idl, generating both
Jelmer Vernooij [Tue, 16 Dec 2008 15:32:18 +0000 (16:32 +0100)]
Add new script for building IDL files in librpc/idl, generating both
Samba 3 and Samba 4 output.

15 years agos4/provision: Upper case default realm, use only first part of realm as default domai...
Jelmer Vernooij [Tue, 16 Dec 2008 15:17:30 +0000 (16:17 +0100)]
s4/provision: Upper case default realm, use only first part of realm as default domain name.

15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Tue, 16 Dec 2008 15:14:16 +0000 (16:14 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

15 years agoFix path to ndr_notify.c.
Jelmer Vernooij [Tue, 16 Dec 2008 15:02:05 +0000 (16:02 +0100)]
Fix path to ndr_notify.c.

15 years agoMove shared gen_ndr files to librpc/gen_ndr in the root.
Jelmer Vernooij [Tue, 16 Dec 2008 14:59:06 +0000 (15:59 +0100)]
Move shared gen_ndr files to librpc/gen_ndr in the root.

At the moment these files are used just by Samba 3, but the next step
will be using them from Samba 4 as well.

15 years agonsswitch: Fix paths for Samba4 blackbox wbinfo test
Kai Blin [Tue, 16 Dec 2008 14:45:12 +0000 (15:45 +0100)]
nsswitch: Fix paths for Samba4 blackbox wbinfo test

15 years agoConsider shared IDL files and Samba3-specific IDL files separately, allow overriding...
Jelmer Vernooij [Tue, 16 Dec 2008 14:42:47 +0000 (15:42 +0100)]
Consider shared IDL files and Samba3-specific IDL files separately, allow overriding output directory.

15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba
Jelmer Vernooij [Tue, 16 Dec 2008 14:36:53 +0000 (15:36 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba

15 years agoRename dom_sid.idl -> server_id.idl (since it no longer actually contains the dom_sid...
Jelmer Vernooij [Tue, 16 Dec 2008 14:36:18 +0000 (15:36 +0100)]
Rename dom_sid.idl -> server_id.idl (since it no longer actually contains the dom_sid). No longer include it from security.idl.

15 years agodocs: "acl compatibility" is a global parameter.
Karolin Seeger [Tue, 16 Dec 2008 14:10:29 +0000 (15:10 +0100)]
docs: "acl compatibility" is a global parameter.

This fixes bug #5866.
Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting!

Karolin

15 years agoIgnore setup symlink.
Jelmer Vernooij [Tue, 16 Dec 2008 13:39:54 +0000 (14:39 +0100)]
Ignore setup symlink.

15 years agoAdd an entry for the "check" command to the tdbtool manpage.
Holger Hetterich [Thu, 20 Nov 2008 09:32:14 +0000 (10:32 +0100)]
Add an entry for the "check" command to the tdbtool manpage.

15 years agoAdded a simple tdb integrity check to tdbtool. The command "check" runs traverse...
Holger Hetterich [Sat, 1 Nov 2008 23:12:32 +0000 (00:12 +0100)]
Added a simple tdb integrity check to tdbtool. The command "check" runs traverse on the currently open tdb, and returns the number of entries if the integrity check is successful.

15 years agonsswitch: Move nsswitch files from source4 to top level nsswitch dir
Kai Blin [Tue, 16 Dec 2008 09:06:04 +0000 (10:06 +0100)]
nsswitch: Move nsswitch files from source4 to top level nsswitch dir

15 years agonsswitch: Move source3 files to top level dir.
Kai Blin [Tue, 16 Dec 2008 08:30:16 +0000 (09:30 +0100)]
nsswitch: Move source3 files to top level dir.

Don't move source4 files yet to not confuse git's rename tracking too much.

15 years agodocs: Remove comment about default backend.
Karolin Seeger [Tue, 16 Dec 2008 10:18:45 +0000 (11:18 +0100)]
docs: Remove comment about default backend.

Karolin

15 years agodocs: Fix typo in the idmap_ad manpage.
Karolin Seeger [Tue, 16 Dec 2008 08:04:32 +0000 (09:04 +0100)]
docs: Fix typo in the idmap_ad manpage.

Karolin

15 years agos3:net_status: use dbwrap to open sessionid.tdb
Stefan Metzmacher [Mon, 15 Dec 2008 15:47:38 +0000 (16:47 +0100)]
s3:net_status: use dbwrap to open sessionid.tdb

metze

15 years agos3: Use DEBUGADD instead of DEBUG to avoid printing the header
Dan Sledz [Tue, 16 Dec 2008 01:12:49 +0000 (17:12 -0800)]
s3: Use DEBUGADD instead of DEBUG to avoid printing the header

15 years agos3: Fix "differing signedness" build warnings
Tim Prouty [Tue, 16 Dec 2008 07:13:26 +0000 (23:13 -0800)]
s3: Fix "differing signedness" build warnings

15 years agos3: Fix a few build warnings
Tim Prouty [Tue, 16 Dec 2008 06:34:07 +0000 (22:34 -0800)]
s3: Fix a few build warnings

15 years agoMerge branch 'master' of ssh://git.samba.org/data/git/samba into abartlet-devel
Andrew Bartlett [Tue, 16 Dec 2008 05:23:10 +0000 (16:23 +1100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into abartlet-devel

15 years agorepack the ldb after re-indexing
Andrew Tridgell [Tue, 16 Dec 2008 03:41:21 +0000 (14:41 +1100)]
repack the ldb after re-indexing

re-indexing in ldb is triggered on any modification to the @ATTRIBUTES
or @INDEXLIST records. This happens to produce a worst-case
fragmentation of the database, as all @INDEX records are deleted then
re-created. By repacking after re-indexing we ensure that the database
ends up without extreme fragmentation.