Andrew Bartlett [Tue, 29 Aug 2006 22:38:59 +0000 (22:38 +0000)]
r17925: Another class we need.
Andrew Bartlett
Stefan Metzmacher [Tue, 29 Aug 2006 09:51:49 +0000 (09:51 +0000)]
r17907: - add a generic talloc_report_depth_cb() function which takes a callback
to do the actual report.
- make the talloc_report_depth_file() a wrapper of it
- and talloc_report() and talloc_report_full() are wrapper of
talloc_report_depth_file()
metze
Stefan Metzmacher [Tue, 29 Aug 2006 09:46:59 +0000 (09:46 +0000)]
r17905: fix c++ warnings
metze
Stefan Metzmacher [Tue, 29 Aug 2006 09:29:09 +0000 (09:29 +0000)]
r17904: we don't want warnings about unused parameters
volker that one was for you:-)
metze
Simo Sorce [Mon, 28 Aug 2006 23:30:43 +0000 (23:30 +0000)]
r17898: handle objectcategory and isdefunct for classes
Stefan Metzmacher [Mon, 28 Aug 2006 18:21:21 +0000 (18:21 +0000)]
r17895: - talloc_increase_ref_count() can fail
- make talloc_reference() typesafe when gcc >= 3 is used
metze
Simo Sorce [Mon, 28 Aug 2006 18:00:45 +0000 (18:00 +0000)]
r17894: better name for the internal syntax type
Stefan Metzmacher [Mon, 28 Aug 2006 17:50:26 +0000 (17:50 +0000)]
r17893: add a function to disable the null_context
metze
Stefan Metzmacher [Mon, 28 Aug 2006 17:40:31 +0000 (17:40 +0000)]
r17892: fix the last talloc c++ warning
metze
Stefan Metzmacher [Mon, 28 Aug 2006 17:38:49 +0000 (17:38 +0000)]
r17891: remove c++ warnings from talloc
metze
Stefan Metzmacher [Mon, 28 Aug 2006 17:21:34 +0000 (17:21 +0000)]
r17890: add -Wc++-compat option to gcc but don't use it yet
metze
Stefan Metzmacher [Mon, 28 Aug 2006 17:18:41 +0000 (17:18 +0000)]
r17889: allocate a valid element where the pointer can point to,
fix c++ warnings
metze
Stefan Metzmacher [Mon, 28 Aug 2006 17:17:39 +0000 (17:17 +0000)]
r17888: use talloc_*_ptrtype() macros as wrappers arround the talloc_*_size()
functions to get rid of c++ warnings
metze
Stefan Metzmacher [Mon, 28 Aug 2006 17:12:12 +0000 (17:12 +0000)]
r17887: fix c++ warnings
metze
Stefan Metzmacher [Mon, 28 Aug 2006 16:55:51 +0000 (16:55 +0000)]
r17886: add talloc_ptrtype() and talloc_array_ptrtype(),
see the manpage what they do:-)
metze
Stefan Metzmacher [Mon, 28 Aug 2006 15:36:12 +0000 (15:36 +0000)]
r17885: use _TALLOC_TYPEPF() consitently
metze
Volker Lendecke [Mon, 28 Aug 2006 14:38:47 +0000 (14:38 +0000)]
r17884: Shape up the snprintf fix after Metzes comments
Stefan Metzmacher [Mon, 28 Aug 2006 14:06:23 +0000 (14:06 +0000)]
r17883: check if talloc_asprintf() works correct
metze
Stefan Metzmacher [Mon, 28 Aug 2006 12:15:13 +0000 (12:15 +0000)]
r17882: merge change from samba3
metze
Andrew Bartlett [Mon, 28 Aug 2006 05:26:42 +0000 (05:26 +0000)]
r17876: Require one less patch for the LDAP backend to work.
This lets the modules or backend generate the host and domain GUID,
rather than the randguid() function. These can still be specified
from the command line.
Andrew Bartlett
Andrew Bartlett [Mon, 28 Aug 2006 03:28:03 +0000 (03:28 +0000)]
r17871: Add an option to make the system account behave as anonymous on the
network. This helps where we are trying to talk to an LDAP server,
until we share a common SASL authentication scheme.
Andrew Bartlett
Andrew Bartlett [Mon, 28 Aug 2006 03:26:17 +0000 (03:26 +0000)]
r17870: This module (for the moment) handles the modifyTimestamp generation. For that, it needs to hook into the modify operation.
Andrew Bartlett
Simo Sorce [Mon, 28 Aug 2006 02:57:54 +0000 (02:57 +0000)]
r17868: remove duplicated attributes from list
Simo Sorce [Sun, 27 Aug 2006 23:39:09 +0000 (23:39 +0000)]
r17860: Let's commit the work down up to now on the new schema module.
At the moment it is able to validate an object has no conflicting
objectlasses that it meets the criteria to be inserted as child of
the parent and also sorts and create the objectclass hierarchy so
that the objectclass .c module can be obsoleted.
Not activated by default as we have to completely rework the
current provisioning method. (In my tests I could not activate
it before all other ldif except for the one that create users
were loaded, make test seem to be happy anyway if it is activated
after provisioning).
Next steps will be attribute and attribute syntax checking on add operation.
And then the modify operation will follow.
Simo.
Simo Sorce [Sun, 27 Aug 2006 23:32:14 +0000 (23:32 +0000)]
r17859: Fix some return values
Rafal Szczesniak [Sun, 27 Aug 2006 20:41:29 +0000 (20:41 +0000)]
r17858: Add new libnet domain open tests.
rafal
Rafal Szczesniak [Sun, 27 Aug 2006 20:39:50 +0000 (20:39 +0000)]
r17857: A couple of new tests.
rafal
Rafal Szczesniak [Sun, 27 Aug 2006 20:37:23 +0000 (20:37 +0000)]
r17856: The two new functions - libnet_LookupName and libnet_UserInfo.
These two perform name resolving in SAM database and fetching
user account information, respectively. The code is quite rough
yet, but it builds and basic tests work. Now, I'm working on
cleaning it up...
rafal
Volker Lendecke [Sun, 27 Aug 2006 10:46:19 +0000 (10:46 +0000)]
r17849: Next round for RPC-SAMBA3-SHARESEC
Volker Lendecke [Sun, 27 Aug 2006 10:08:18 +0000 (10:08 +0000)]
r17848: Ok, this did not do it. Still got the same problem.
Volker Lendecke [Sat, 26 Aug 2006 22:27:29 +0000 (22:27 +0000)]
r17846: Ok, this is a patch that needs further discussion. On Solaris, snprintf seems
to be broken. The %lu modifies apparently can not cope with the high
bit==1. In dom_sid_string I added some printfs and got:
auth: 21
auth:
2666793276
auth:
679821296
auth:
2310223117
auth: 1206
sid=S-1-5-21-
8446744072081377596-
679821296-
8446744071724807437-1206
The "auth:" values are direct printfs, the sid= is the resulting code from
dom_sid_string.
I could not reproduce it with a simple test program, and #ifdef'ing out
HAVE_SNPRINTF in config.h manually does not help either, probably because the
dynamic linker overwrites the symbol in lib/replace.
Checking it in because it fixes the RPC-SAMBA3-SHARESEC test directly on host
"sunx", I would like to see whether it also fixes IRIX and AIX.
Volker
Volker Lendecke [Sat, 26 Aug 2006 20:28:32 +0000 (20:28 +0000)]
r17844: The AIX compiler thinks { } is a syntax error
Volker Lendecke [Sat, 26 Aug 2006 17:19:58 +0000 (17:19 +0000)]
r17842: After talking to Simo, apply the next attempt to resolve the strnlen
problem. Timegm is the same. Simo says this is just a workaround, but it helps
for now. Feel free to revert.
Volker
Volker Lendecke [Sat, 26 Aug 2006 16:44:10 +0000 (16:44 +0000)]
r17841: Revert 17840, libldb.a defines strnlen. Sorry for the noise
Volker Lendecke [Sat, 26 Aug 2006 16:19:22 +0000 (16:19 +0000)]
r17840: A step towards building on Solaris which appears not to have strnlen.
Volker
Simo Sorce [Sat, 26 Aug 2006 15:38:01 +0000 (15:38 +0000)]
r17839: do not reference possibleInferiors we have not extracted
trim duplicate may attributes
Stefan Metzmacher [Sat, 26 Aug 2006 08:40:51 +0000 (08:40 +0000)]
r17838: revert rev 17754
readd --always-create option to mkproto.pl
metze
Simo Sorce [Fri, 25 Aug 2006 12:59:03 +0000 (12:59 +0000)]
r17830: Set the default_basedn (hey, it comes from the "default" naming contex :-)
once at connection time, after modules have been loaded.
Introduce a function to retrieve the value where needed.
Simo Sorce [Fri, 25 Aug 2006 12:57:12 +0000 (12:57 +0000)]
r17829: Fix the order of the bytes
Andrew Tridgell [Fri, 25 Aug 2006 12:45:19 +0000 (12:45 +0000)]
r17828: set the auto_baseDN opaque even on failure to fetch rootDSE. That
ensures we never try twice
Volker Lendecke [Fri, 25 Aug 2006 10:50:51 +0000 (10:50 +0000)]
r17827: Fix an error message
Volker Lendecke [Fri, 25 Aug 2006 10:43:39 +0000 (10:43 +0000)]
r17826: Add line numbers to the d_printfs
Andrew Tridgell [Fri, 25 Aug 2006 09:32:43 +0000 (09:32 +0000)]
r17825: I broken cracknames in my last patch - fix it up
Andrew Tridgell [Fri, 25 Aug 2006 07:32:18 +0000 (07:32 +0000)]
r17824: add a wrapper for the common partitions_basedn calculation
Andrew Tridgell [Fri, 25 Aug 2006 07:08:06 +0000 (07:08 +0000)]
r17823: get rid of most of the samdb_base_dn() calls, as they are no longer
needed in searches
Andrew Tridgell [Fri, 25 Aug 2006 06:45:47 +0000 (06:45 +0000)]
r17822: the ildap ldb backend doesn't need the auto rootDSE logic any more
Andrew Tridgell [Fri, 25 Aug 2006 06:41:37 +0000 (06:41 +0000)]
r17821: changed ldb_search() and the ldbsearch command line utility to
automatically work out the basedn when basedn==NULL. The basedn is
fetched from the rootDSE defaultNamingContext value (if there is one)
This means we don't have to have the defaultNamingContext logic in
lots of places. It makes a lot of sense to me to have basedn==NULL
mean "use the default, as given by the database"
Note that explicitly specifing a basedn of '' is not the same thing,
and will not trigger this code
The baseDN is cached in a ldb opaque, so we only have to fetch it once
Andrew Tridgell [Fri, 25 Aug 2006 06:38:29 +0000 (06:38 +0000)]
r17820: simplify the code flow a little
Jelmer Vernooij [Thu, 24 Aug 2006 21:32:30 +0000 (21:32 +0000)]
r17811: Add .bzrignore file
Stefan Metzmacher [Thu, 24 Aug 2006 12:13:41 +0000 (12:13 +0000)]
r17794: ifdef out unused macros
metze
Stefan Metzmacher [Thu, 24 Aug 2006 11:33:00 +0000 (11:33 +0000)]
r17793: add -Wmissing-prototypes, -Wmissing-declarations, -Wmissing-field-initializers
gcc options, but don't enable them yet.
we should step by step try to enable them, after removing the flood of warnings
they would generate.
metze
Stefan Metzmacher [Thu, 24 Aug 2006 11:24:06 +0000 (11:24 +0000)]
r17792: io.out.winsserver is a const char *,
and iname->winserver = talloc_steal(iname, io.out.winsserver)
generated a warning, so I changed iname->winsserver to also
be a const char *.
then a talloc_free(iname->winsserver) would generate a warning,
but we can steal it into the tmp_ctx without a warning
and that gets free'ed a few lines later.
metze
Stefan Metzmacher [Thu, 24 Aug 2006 11:13:13 +0000 (11:13 +0000)]
r17791: get rid of another compiler warning
metze
Stefan Metzmacher [Thu, 24 Aug 2006 10:55:17 +0000 (10:55 +0000)]
r17790: replace uses -ldl and should directly depend on it
metze
Stefan Metzmacher [Thu, 24 Aug 2006 10:51:34 +0000 (10:51 +0000)]
r17789: remove compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 10:41:31 +0000 (10:41 +0000)]
r17788: fix compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 10:38:06 +0000 (10:38 +0000)]
r17787: ifdef out unused macros and generate a smb_panic()
when the wrong macro is used on a field.
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:53:21 +0000 (09:53 +0000)]
r17786: remove unused macros, fix compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:51:41 +0000 (09:51 +0000)]
r17785: fix compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:49:58 +0000 (09:49 +0000)]
r17784: fix compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:49:09 +0000 (09:49 +0000)]
r17783: fix compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:48:40 +0000 (09:48 +0000)]
r17782: fix compiler warning
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:47:51 +0000 (09:47 +0000)]
r17781: fix compiler warning
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:47:08 +0000 (09:47 +0000)]
r17780: better fix this one correctly
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:41:45 +0000 (09:41 +0000)]
r17779: this macro is unused
metze
Stefan Metzmacher [Thu, 24 Aug 2006 09:41:10 +0000 (09:41 +0000)]
r17778: fix compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 08:48:15 +0000 (08:48 +0000)]
r17777: these macros are unused...
metze
Stefan Metzmacher [Thu, 24 Aug 2006 08:45:32 +0000 (08:45 +0000)]
r17776: these macros are also defined in libcli/raw/trans2.h
metze
Stefan Metzmacher [Thu, 24 Aug 2006 08:32:57 +0000 (08:32 +0000)]
r17775: use an enum to get rid of compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 08:19:43 +0000 (08:19 +0000)]
r17774: this macro is unused
metze
Stefan Metzmacher [Thu, 24 Aug 2006 08:17:31 +0000 (08:17 +0000)]
r17773: this macros are unsed, with compiler warnings
metze
Stefan Metzmacher [Thu, 24 Aug 2006 07:58:22 +0000 (07:58 +0000)]
r17772: warn about unused macros
(only when defined in the .c file not in headers)
metze
Andrew Tridgell [Thu, 24 Aug 2006 07:20:32 +0000 (07:20 +0000)]
r17771: add a comment explaing the odd cast
Andrew Tridgell [Thu, 24 Aug 2006 06:13:11 +0000 (06:13 +0000)]
r17770: don't force -L/usr/lib, it breaks us4
Andrew Tridgell [Thu, 24 Aug 2006 06:04:12 +0000 (06:04 +0000)]
r17769: only look for dlopen in -ldl if not found in libc. Needed for us4
Andrew Tridgell [Thu, 24 Aug 2006 04:14:34 +0000 (04:14 +0000)]
r17768: This merges in the current version of Brad Henry's windows testing
framework patch. There are some issues with the patch that I will
discuss in a separate email to the list, but given the low (zero?)
impact of the patch as it is, I think its better to integrate it now,
then let Brad send some minor update patches later
Andrew Tridgell [Thu, 24 Aug 2006 01:03:42 +0000 (01:03 +0000)]
r17765: fix handling of old solaris /bin/sh in ldb build/test
Andrew Tridgell [Thu, 24 Aug 2006 00:41:15 +0000 (00:41 +0000)]
r17764: more portable setenv() replacement
Andrew Tridgell [Wed, 23 Aug 2006 23:21:29 +0000 (23:21 +0000)]
r17763: moved setenv to ldb/replace/
Andrew Tridgell [Wed, 23 Aug 2006 23:20:50 +0000 (23:20 +0000)]
r17762: HPUX needs setenv
Stefan Metzmacher [Wed, 23 Aug 2006 14:48:19 +0000 (14:48 +0000)]
r17756: I don't know why but this only works with the standalone
ldb build...I'll test more tomorrow.
metze
Stefan Metzmacher [Wed, 23 Aug 2006 14:13:54 +0000 (14:13 +0000)]
r17755: fix the build...
I hope we can find a more clean approach to import lib/replace/ into ldb.
metze
Stefan Metzmacher [Wed, 23 Aug 2006 13:20:16 +0000 (13:20 +0000)]
r17754: remove the --always-create option from mkproto.pl
and make this behavior the default.
as with make 3.81 and autodependencies this way is much
faster as make can use faster codepathes internally.
(without this make needed more and more startup time after using
autodependencies for a few weeks)
metze
Stefan Metzmacher [Wed, 23 Aug 2006 13:14:03 +0000 (13:14 +0000)]
r17753: fix compiler warnings and make the code simpler
metze
Stefan Metzmacher [Wed, 23 Aug 2006 13:06:31 +0000 (13:06 +0000)]
r17752: using -1 in a uint16_t value causes compiler warnings,
use UINT16_MAX as invalid search handle
metze
Andrew Tridgell [Wed, 23 Aug 2006 11:32:29 +0000 (11:32 +0000)]
r17750: these have moved to ldb/replace/ now
Andrew Tridgell [Wed, 23 Aug 2006 11:31:43 +0000 (11:31 +0000)]
r17749: more HPUX madness
Stefan Metzmacher [Wed, 23 Aug 2006 11:29:08 +0000 (11:29 +0000)]
r17748: make the casts much easier to understand
metze
Stefan Metzmacher [Wed, 23 Aug 2006 11:27:40 +0000 (11:27 +0000)]
r17747: ldb's make test should not try to install something
metze
Andrew Tridgell [Wed, 23 Aug 2006 11:21:44 +0000 (11:21 +0000)]
r17746: the automatic archive creation in make breaks on 3 platforms. Lets try
manual archives and see if they work a bit better ....
Andrew Tridgell [Wed, 23 Aug 2006 10:55:20 +0000 (10:55 +0000)]
r17745: got rid of the final asprintf() in ldb
Stefan Metzmacher [Wed, 23 Aug 2006 10:01:07 +0000 (10:01 +0000)]
r17744: we explicit want to get warnings about declarations after statements:-)
metze
Stefan Metzmacher [Wed, 23 Aug 2006 09:19:19 +0000 (09:19 +0000)]
r17743: fix compiler warnings
metze
Stefan Metzmacher [Wed, 23 Aug 2006 09:00:57 +0000 (09:00 +0000)]
r17742: make the casts explicit and remove compiler warnings
metze
Andrew Tridgell [Wed, 23 Aug 2006 05:19:42 +0000 (05:19 +0000)]
r17741: tru64 uses inttypes.h not stdint.h.
ain't standards wonderful?
Andrew Tridgell [Wed, 23 Aug 2006 05:08:55 +0000 (05:08 +0000)]
r17740: get rid of dependence on asprintf(), using talloc_asprintf() instead
Andrew Tridgell [Wed, 23 Aug 2006 04:55:39 +0000 (04:55 +0000)]
r17739: forgot to add replace/*
Andrew Tridgell [Wed, 23 Aug 2006 04:53:47 +0000 (04:53 +0000)]
r17738: solving the seemingly trivial problem of timegm() being missing on
some systems requires quite a large change in ldb. The core problem is
that ldb doesn't have its own equivalent of lib/replace/, so we have
no sane place to put things like timegm.c
This patch moves part of lib/replace/ from Samba4 into ldb, and the
next patch will remove those parts from Samba4. We will probably need
to similarly move parts of lib/replace/ into lib/talloc/ and lib/tdb/,
so that at each level the libraries have replacements for the
functions they need, but higher level libraries don't need to
re-include replacements if a lower level library already replaces the
function
Andrew Tridgell [Wed, 23 Aug 2006 02:51:40 +0000 (02:51 +0000)]
r17737: fixed a 'declaration in code' error
Andrew Tridgell [Wed, 23 Aug 2006 02:06:07 +0000 (02:06 +0000)]
r17735: a (probably useless) attempt to workaround stupidity in HPs version of
make