summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-12-17s4:samldb: make use of dom_sid_split_rid()Andrew Bartlett1-4/+3
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-17s4:samldb: improve error stringsAndrew Bartlett1-6/+8
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>
2008-12-17s4:ldb.i: hang the dn on the NULL context as the python destructor will free itAndrew Bartlett1-0/+2
This fixes a bug in the ldb.i python wrapper, that showed up under valgrind. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-12-17s4:ldb: use try to print the extended dn in the ldif outputAndrew Bartlett1-2/+4
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>
2008-12-17s4:dsdb: add support for DSDB_OPENLDAP_DEREFERENCE_CONTROLAndrew Bartlett2-0/+137
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>
2008-12-17s4:libcli/ldap: split out a ldap_decode_attribs_bare() functionAndrew Bartlett1-8/+18
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>
2008-12-17s4:ldb_ildap: try to pass extended DNs to the serverAndrew Bartlett1-5/+5
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>
2008-12-17s4:ldb: add infrastructure for extended dn handlersAndrew Bartlett4-60/+524
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>
2008-12-17Add hint to use passwordAttributes in @KLUDGE_ACL in futureAndrew Bartlett1-1/+2
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>
2008-12-17Make greater use of 'GUID_from_data_blob'Andrew Bartlett1-40/+11
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>
2008-12-17Fix sequence number generation against OpenLDAPAndrew Bartlett1-0/+8
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>
2008-12-17nsswitch: fix compiler warnings in winbind_nss_linux.cStefan Metzmacher1-3/+3
metze
2008-12-16Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij1-24/+684
2008-12-16Don't write out forward declarations for enums, as some compilers don'tJelmer Vernooij6-18/+2
seem to like it.
2008-12-16(Fixed) Final part of fix for bug #5953 - smbclient crashes: cli_list_new ↵Kai Blin1-4/+5
segmentation fault (with NAS-BASIC server).
2008-12-16Merge branch 'master' of ssh://jra@git.samba.org/data/git/sambaJeremy Allison2-29/+29
2008-12-16Revert "Final part of fix for bug #5953 - smbclient crashes: cli_list_new ↵Jeremy Allison1-24/+683
segmentation fault (with NASBASIC server)." Error in commit ! This reverts commit bbd5824140992ea457d4270ee77018ebb367abc9.
2008-12-16Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij1-683/+24
2008-12-16Fix header installation after move of gen_ndr headers.Jelmer Vernooij2-29/+29
2008-12-16Final part of fix for bug #5953 - smbclient crashes: cli_list_new ↵Kai Blin1-683/+24
segmentation fault (with NASBASIC server).
2008-12-17Merge branch 'master' of ssh://git.samba.org/data/git/sambaAndrew Tridgell237-5209/+2545
2008-12-17an experimental patch for fixing ldb bloatAndrew Tridgell3-9/+352
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.
2008-12-16Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij5-15/+22
2008-12-16Use py_* files to check whether generated files are out of date / notJelmer Vernooij1-1/+1
present. ndr_*.c files are in git (required for Samba 3), py_*.c files are not.
2008-12-16Ignore generated files.Jelmer Vernooij1-0/+33
2008-12-16Remove ndrdump - it's available in merged build mode as bin/ndrdump4 and ↵Jelmer Vernooij2-503/+1
uses the exact same object files there.
2008-12-16Remove use of C++ keywords.Jelmer Vernooij2-6/+6
2008-12-16Share object files for gen_ndr.Jelmer Vernooij9-134/+522
2008-12-16commit b520befe6f51644d20434add9864d7a2fa30aa2eSATOH Fumiyasu2-12/+11
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>
2008-12-16Make some fatal errors non-fatal. This means we generate invalid code inJelmer Vernooij2-4/+8
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.
2008-12-16Fix [out] pointers in DCOM-related IDL files.Jelmer Vernooij2-9/+8
2008-12-16s3/s4: Fix "shadows a global declaration" warningTim Prouty1-1/+1
2008-12-16nss_winbind: Solaris 64-bit fix and...SATOH Fumiyasu2-2/+10
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)
2008-12-16Remove pidl SWIG backend; the native Python one works much better, andJelmer Vernooij2-189/+1
that's also the best way to go for any other languages.
2008-12-16Simplify idl-deps.pl script a bit.Jelmer Vernooij1-15/+21
2008-12-16Only create (D)COM output files if there were COM objects in the IDL files.Jelmer Vernooij2-2/+11
2008-12-16Add new script for building IDL files in librpc/idl, generating bothJelmer Vernooij106-125/+274
Samba 3 and Samba 4 output.
2008-12-16s4/provision: Upper case default realm, use only first part of realm as ↵Jelmer Vernooij1-2/+2
default domain name.
2008-12-16Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2-4/+4
2008-12-16Fix path to ndr_notify.c.Jelmer Vernooij1-1/+1
2008-12-16Move shared gen_ndr files to librpc/gen_ndr in the root.Jelmer Vernooij126-54/+54
At the moment these files are used just by Samba 3, but the next step will be using them from Samba 4 as well.
2008-12-16nsswitch: Fix paths for Samba4 blackbox wbinfo testKai Blin2-4/+4
2008-12-16Consider shared IDL files and Samba3-specific IDL files separately, allow ↵Jelmer Vernooij5-8/+9
overriding output directory.
2008-12-16Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij83-4593/+2177
2008-12-16Rename dom_sid.idl -> server_id.idl (since it no longer actually contains ↵Jelmer Vernooij21-70/+69
the dom_sid). No longer include it from security.idl.
2008-12-16docs: "acl compatibility" is a global parameter.Karolin Seeger1-1/+1
This fixes bug #5866. Thanks to TAKAHASHI Motonobu <monyo@samba.gr.jp> for reporting! Karolin
2008-12-16Ignore setup symlink.Jelmer Vernooij1-0/+1
2008-12-16Add an entry for the "check" command to the tdbtool manpage.Holger Hetterich1-0/+8
2008-12-16Added a simple tdb integrity check to tdbtool. The command "check" runs ↵Holger Hetterich1-1/+28
traverse on the currently open tdb, and returns the number of entries if the integrity check is successful.
2008-12-16nsswitch: Move nsswitch files from source4 to top level nsswitch dirKai Blin24-3078/+105