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

1317 Commits

Author SHA1 Message Date
Andrew Tridgell
87e2396be9 r8679: only call fault setup once (thanks to andrew for pointing this out)
(This used to be commit f8a2b032a7)
2007-10-10 13:29:53 -05:00
Andrew Tridgell
a369f0ecaf r8678: setup for gdb backtrace in 'make test'
(This used to be commit acf8c8fd49)
2007-10-10 13:29:53 -05:00
Andrew Tridgell
a78558321a r8671: use much shorter names for the selftest directory and socket wrapper
code. I'm afraid this is needed by irix 6.4 which silently truncates
names in unix domain sockets in recvfrom() to 16 chars. My apologies
for having to move to such short names :-(
(This used to be commit f9693e313d)
2007-10-10 13:29:52 -05:00
Andrew Bartlett
4396d0d148 r8669: The objectguid module belongs in Samba's ldb module collection, not in
ldb, as it can't build without the NDR and GUID code.

Also make it properly use the NDR encoding for the GUID (I forgot last
time, and used a string), as well as set the dependencies on the
module correctly.

Andrew Bartlett
(This used to be commit 8054abc76e)
2007-10-10 13:29:52 -05:00
Andrew Tridgell
eb08c1fc8f r8668: fixed a segv during upgrade of a very old ldb.
Thanks to volker for finding this one too. Keep them coming!
(This used to be commit 756796ad2e)
2007-10-10 13:29:52 -05:00
Andrew Bartlett
2a0cf520e3 r8667: Further simply the provision script, by removing the 'name' attribute.
This is now calculated on the fly for every add and modify.

Andrew Bartlett
(This used to be commit ed1f2e029c)
2007-10-10 13:29:52 -05:00
Andrew Tridgell
7a8ac75887 r8659: return ldif formatted attributes in the ejs ldb search call, so sids show up as strings
not binary blobs
(This used to be commit d2c29a5a51)
2007-10-10 13:29:50 -05:00
Andrew Tridgell
5e9988708f r8651: fixed a boolean expression bug (submitted upstream)
(This used to be commit bd4c388cd2)
2007-10-10 13:29:50 -05:00
Andrew Bartlett
24d2107324 r8650: Use the timestamps and a new objectguid module rather than placing
boilerplate attributes in every entry in provision.ldif.

The next step will be to use templates.

Andrew Bartlett
(This used to be commit 940ed9827f)
2007-10-10 13:29:50 -05:00
Andrew Tridgell
2f5f01567b r8643: - make lp_configfile() work again
- get rid of redundeny dyn_CONFIGFILE argument to lp_load()

- fixed provisioning to work with completely pristine install,
  creating an initial smb.conf is none is present

- added lp.set() and lp.reload() to loadparm ejs object interface
(This used to be commit c2691ef712)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
3473f6b74b r8631: give an error on incorrect argument count
(This used to be commit ed09e19794)
2007-10-10 13:29:46 -05:00
Andrew Tridgell
6f48b3a5cb r8630: give a much nicer backtrace on assert() failures in ejs
I will submit this upstream
(This used to be commit a2266f6927)
2007-10-10 13:29:46 -05:00
Andrew Tridgell
338c3f8523 r8625: move the ldb_wrap logic into the ldb code. This logic is meant to
avoid the horrors of posix locking, but it was preventing us having an
ldb open twice with different options. Now each ldb open of the same
file shares the same underlying tdb, but uses a different ldb
structure
(This used to be commit 4e090c66df)
2007-10-10 13:29:45 -05:00
Andrew Tridgell
f650ea1012 r8624: removed valgrind comment on tdb that no longer applies
(This used to be commit 8f222c8c7a)
2007-10-10 13:29:45 -05:00
Andrew Tridgell
c1a4f0c769 r8601: fixed null termination in ltdb connect error
(This used to be commit 64b6586b57)
2007-10-10 13:29:43 -05:00
Andrew Tridgell
3c5675af93 r8600: fixed null termination on some error messages in ldb
(This used to be commit 326f0ad6fb)
2007-10-10 13:29:43 -05:00
Andrew Tridgell
cd65f29fc6 r8599: null terminate the argv list in string C functions
(This used to be commit cabf638a31)
2007-10-10 13:29:43 -05:00
Andrew Tridgell
7ee2babcfe r8587: - fixed ref allocation in irpc replies
- make every irpc server support the irpc_uptime() call
(This used to be commit eee9044826)
2007-10-10 13:29:42 -05:00
Simo Sorce
bfb1186269 r8585: add to ldb and ldap comparison functionality
better pares filters
Approx is currently only a stub need to dig more info to
understand what it really means and how it works exactly
(This used to be commit a9e8cd0bad)
2007-10-10 13:29:41 -05:00
Andrew Tridgell
b484221730 r8580: try to fix the build on stratus
(This used to be commit 58d7a1e6a3)
2007-10-10 13:29:40 -05:00
Andrew Tridgell
9a4bc49fee r8579: recognise the name 'localhost' as 127.0.0.1. This solves a problem
with some hosts that are missing localhost from /etc/hosts
(This used to be commit f9866258e0)
2007-10-10 13:29:40 -05:00
Andrew Tridgell
d2d5d71f34 r8567: fixed the build after the com idl changes
Jelmer, can you please check that I got this right?
(This used to be commit bec135446a)
2007-10-10 13:29:39 -05:00
Andrew Tridgell
2d92eca393 r8562: small merge with upstream
(This used to be commit 6c9bf162af)
2007-10-10 13:29:38 -05:00
Andrew Tridgell
7ef904e9e1 r8541: this might take a few tries ...
(This used to be commit cc61a0ba33)
2007-10-10 13:29:37 -05:00
Andrew Tridgell
d1f9224f58 r8540: fixed network interface detection on several hosts
(This used to be commit 777ac8496b)
2007-10-10 13:29:36 -05:00
Simo Sorce
7bcccfc000 r8529: Matching against the wrong union
(This used to be commit 24a65b5ba6)
2007-10-10 13:29:35 -05:00
Andrew Tridgell
e835621799 r8520: fixed a pile of warnings from the build farm gcc -Wall output on
S390. This is an attempt to avoid the panic we're seeing in the
automatic builds.

The main fixes are:

 - assumptions that sizeof(size_t) == sizeof(int), mostly in printf formats

 - use of NULL format statements to perform dn searches.

 - assumption that sizeof() returns an int
(This used to be commit a58ea6b385)
2007-10-10 13:29:34 -05:00
Andrew Tridgell
6e4bcaffa0 r8517: fixed a crash bug in ldb_dn_compare_base()
(This used to be commit 19d789e825)
2007-10-10 13:29:34 -05:00
Simo Sorce
cb2c43f7b0 r8515: ldb_dn_cmp now uses ldb_dn_compare so that the DNs are compared
on a content level not ona form level, his means that the 2 DNs:
a) cn= user, dc=this, dc = is,dc=test
b) cn=user,dc=this,dc=is,dc=test
are now identical even if the string form differ (spaces)
(This used to be commit 76d496c308)
2007-10-10 13:29:33 -05:00
Andrew Tridgell
4df9b5a6e3 r8490: make the ldb tests more portable
(This used to be commit 6b20bcbeeb)
2007-10-10 13:23:09 -05:00
Andrew Tridgell
32b06d5882 r8485: - be friendly to shells other than bash
- don't use /tmp in test paths, as that opens us to symlink attacks
(This used to be commit 9f29cccbc1)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
a0bc4da1a3 r8483: switched our generated ejs rpc code over to the new OO interface. This
means we don't pollute the name space, and also makes for faster
startup times as we only create variables for the pipes that we use,
not all pipes
(This used to be commit 57d7a585e8)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
7b8332369f r8482: gnutls_x509_crt_set_subject_key_id is not available in some versions
of gnutls. Thanks to ab for spotting this.
(This used to be commit 437c4057ae)
2007-10-10 13:23:08 -05:00
Andrew Tridgell
f48a20b249 r8470: looks like popt portability is going to be a bit of a fight :(
(This used to be commit d3872a6e4c)
2007-10-10 13:23:06 -05:00
Andrew Tridgell
1329c2eb1f r8467: using both math.h and float.h breaks popt on freebsd 5.4
(This used to be commit a1acb3300e)
2007-10-10 13:23:06 -05:00
Andrew Tridgell
61b16caed8 r8466: it is not portable to assert() a va_list (it breaks on alpha for example)
(This used to be commit 2a64ee4227)
2007-10-10 13:23:06 -05:00
Andrew Tridgell
5c453f5698 r8465: once we define socklen_t, then tell other include files we have it. This prevents roken
trying to redefine it
(This used to be commit aa9491c0cb)
2007-10-10 13:23:06 -05:00
Andrew Tridgell
978bbb4f4d r8461: fixed integer64 handling on bit endian platforms. The ejs code used
%Ld, which is an invalid format code.

This will probably cause problems on systems that don't have %lld, but
do have a working snprintf otherwise. We will need to expand the
snprintf configure test to make sure we replace snprintf on those
platforms
(This used to be commit ccc87eb8aa)
2007-10-10 13:23:05 -05:00
Andrew Tridgell
c4173f6725 r8458: next target is irix - this gets the socket wrapper code building
(This used to be commit 3d4a2221c3)
2007-10-10 13:23:05 -05:00
Andrew Tridgell
598aafe9b3 r8453: my solaris10 box doesn't have math.h
maybe sun isn't very good at maths?
(This used to be commit ab67c8b2b7)
2007-10-10 13:23:05 -05:00
Andrew Tridgell
fa2b97a20a r8451: samba4 finally builds on solaris 8 sparc with heimdal and ejs
its been a long haul ...
(This used to be commit 3c4291e49a)
2007-10-10 13:23:04 -05:00
Andrew Tridgell
af0574378b r8450: more configure tests for solaris. It now builds some binaries, but
fails in the ejs floating point code.
(This used to be commit 30e1b6140e)
2007-10-10 13:23:04 -05:00
Andrew Tridgell
606beece8e r8448: - added a test target for tdb
- reduced the torture size so it doesn't kill the build farm hosts
(This used to be commit 7a88a9f06c)
2007-10-10 13:23:04 -05:00
Andrew Tridgell
a411d4f4d5 r8447: fixed make install in the farm
(This used to be commit 4a61a5c70e)
2007-10-10 13:23:04 -05:00
Andrew Tridgell
ef300e6686 r8443: added talloc.3 to the tree to try to allow talloc to build on systems without xsltproc
(This used to be commit 0e5b89b1e8)
2007-10-10 13:23:03 -05:00
Andrew Tridgell
c9e5d3b53e r8442: remove tdbtest from our build. If you want it, then do
'make bin/tdbtest' manually in the tdb tree
(This used to be commit 28dd79587d)
2007-10-10 13:23:03 -05:00
Andrew Tridgell
2dabfc1cde r8441: don't build tdbtest by default as there are too many systems that
don't have libgdbm, and the configure test for gdbm is broken
(This used to be commit 5c4c3e9a8d)
2007-10-10 13:23:03 -05:00
Jelmer Vernooij
e151284693 r8437: Win32 doesn't have u_int*_t
(This used to be commit 5b007037df)
2007-10-10 13:23:02 -05:00
Jelmer Vernooij
84db066207 r8434: Win32 portability updates from Steven Edwards <steven_ed4153@yahoo.com>:
- undefine anything in the win32 api or PSDK headers that Samba already defines
 - map BSD error codes to Winsock Error codes
(This used to be commit d2ea619125)
2007-10-10 13:23:02 -05:00
Andrew Tridgell
2ea372afd9 r8420: slowly getting my way through some more heimdal portability fixes
(This used to be commit 59c3de6ca8)
2007-10-10 13:23:01 -05:00
Andrew Tridgell
12ed349f90 r8418: PRINTF_ATTRIBUTE declaration has to come before it is used :-)
(This used to be commit a1ca8352f4)
2007-10-10 13:23:00 -05:00
Andrew Tridgell
72fbfff1a7 r8417: fixed handling of PRINTF_ATTRIBUTE for heimdal portion of build
(This used to be commit 117d2fa31d)
2007-10-10 13:23:00 -05:00
Tim Potter
52bef30fd4 r8414: Some C++ friendlyness fixes - 'not' is apparently a keyword in C++.
(This used to be commit bcfb3a45e4)
2007-10-10 13:23:00 -05:00
Andrew Tridgell
b433d61537 r8409: fixed another error found on netbsd.
some of our torture code does its own timeout processing, which means
there is no event timer in the event context. To fix this gererically
I have added a 30 second timout to all select/epoll calls so the
callers timeout loop is guaranteed to run eventually
(This used to be commit 01e5aa1464)
2007-10-10 13:22:59 -05:00
Andrew Tridgell
d1291dacbd r8408: its quite common in our code to free up a connection when we get an
error, but sometimes a socket option may then happen on the NULL
socket. This has been handled by the individual libraries up to now,
but its cleaner to centralise it here
(This used to be commit d9864e1f9a)
2007-10-10 13:22:59 -05:00
Andrew Tridgell
74727243cd r8405: update var.c from upstream
(This used to be commit 288c178d5f)
2007-10-10 13:22:58 -05:00
Andrew Tridgell
8fc8fa2ad4 r8404: small upstream merges of appweb code
(This used to be commit 205ff9a82b)
2007-10-10 13:22:58 -05:00
Andrew Tridgell
54433c747a r8401: add a readme pointing to the upstream sources
(This used to be commit 2dcae5c98c)
2007-10-10 13:22:58 -05:00
Andrew Tridgell
a102f52db8 r8400: separate out the mpr code, as it is in the upstream appweb sources
(This used to be commit 0e30b6e4cc)
2007-10-10 13:22:57 -05:00
Andrew Tridgell
adbb1612c1 r8399: move the ejs and esp code closer to the directory layout used by the
upstream sources. This makes it much easier to keep it up to date.

I will separate out the mpr code into lib/appweb/mpr next
(This used to be commit 52db7a052b)
2007-10-10 13:22:39 -05:00
Andrew Tridgell
e5700ea560 r8397: merged an upstream fix for the expression bug tpot found yesterday
(This used to be commit 93712dd894)
2007-10-10 13:20:14 -05:00
Love Hörnquist Åstrand
61edb97bdf r8394: Make sure the argument to ctype is*(3) macros are unsigned char as
required by ISO C99.
(This used to be commit 56fd21c806)
2007-10-10 13:20:14 -05:00
Simo Sorce
f5598308d5 r8377: forgot an ldif test
(This used to be commit ed804262dc)
2007-10-10 13:20:14 -05:00
Simo Sorce
c9b0e86a43 r8373: New wildcard matching code.
This code applies correct ldap standard wildcard matching code
removes WILDCARD matching from tdb @ATTRIBUTES, that's now handled independently
adds some more tests for wildcard matching
fixes dn comparison code in ldb_match
(This used to be commit 4eb5863042)
2007-10-10 13:20:13 -05:00
Andrew Tridgell
a7c7a9c64c r8364: fixed a valgrind bug spotted by simo
(This used to be commit ef804e8f36)
2007-10-10 13:20:12 -05:00
Andrew Tridgell
f0cbb1787e r8343: removed a debugging message
(This used to be commit c12325e252)
2007-10-10 13:20:09 -05:00
Andrew Tridgell
7c78ec0e14 r8342: allow ldb_ldif_read_string() to continue in the string, so you can
read multiple records
(This used to be commit 4b11c00421)
2007-10-10 13:20:08 -05:00
Andrew Tridgell
9570e24df1 r8341: enable floating point support in ejs
(This used to be commit bdc6b67eb2)
2007-10-10 13:20:08 -05:00
Andrew Tridgell
36bb0ffd4c r8336: enable 64 bit integer support in ejs
(This used to be commit 9dd41e78e1)
2007-10-10 13:20:07 -05:00
Andrew Tridgell
8435fbc4af r8334: fixed a ejs bug that prevented functions variables from being called in local context
(This used to be commit 5ea7ae7081)
2007-10-10 13:20:07 -05:00
Andrew Tridgell
ba1ee57df4 r8333: merged with latest upstream ejs sources
(This used to be commit b0f9ddafe9)
2007-10-10 13:20:07 -05:00
Volker Lendecke
3e0aa2e756 r8321: Fix some uninitalized variable warnings
(This used to be commit 126cb3db4b)
2007-10-10 13:20:06 -05:00
Andrew Tridgell
54ffd4fdbf r8313: moved PRINTF_ATTRIBUTE to replace.h to try to get irix building with heimdal
(This used to be commit 7d4e309f02)
2007-10-10 13:20:05 -05:00
Jelmer Vernooij
747cae7151 r8294: Add PLAN file for samba3->samba4 upgrade (Google Summer of Code) project.
(This used to be commit 7ebf81adce)
2007-10-10 13:19:32 -05:00
Andrew Tridgell
056096c30b r8284: - fixed some uninitialised variables in the irpc code
- added code to send multiple irpc calls in parallel, to all servers
  that have registered the given name, with output going in
  io.results[i]. This allows you to make rpc calls to multiple servers
  at once, which is needed for clients like smbstatus
(This used to be commit 061e20e509)
2007-10-10 13:19:31 -05:00
Andrew Tridgell
d084d6d241 r8279: make sure we hold a lock when manipulating the irpc names db
(This used to be commit 9c408d5d7c)
2007-10-10 13:19:30 -05:00
Andrew Tridgell
144b88b3a0 r8277: filled in the code for finding irpc server ids by name, storing the
names in a tdb
(This used to be commit b603a52f27)
2007-10-10 13:19:30 -05:00
Andrew Tridgell
76ecf81428 r8273: fixed some memory leaks in smbscript. This required converting
file_load() to use talloc, which impacted quite a few bits of code,
including our smb.conf processing.

took the opportunity to remove the gloabls in params.c while doing this
(This used to be commit b220756cb4)
2007-10-10 13:19:29 -05:00
Andrew Tridgell
c6881d1e65 r8272: added the hooks for adding a name to a messaging context, so we will
be able to send a message to the "ldap_server" task without having to
know its task ID.
(This used to be commit 8f69867867)
2007-10-10 13:19:29 -05:00
Andrew Tridgell
514731b0ee r8253: fixed two crash bugs in ejs. I will send these fixes off to the appweb guys soon.
(This used to be commit 3fe83b48c3)
2007-10-10 13:19:26 -05:00
Andrew Bartlett
3191ed9ae9 r8245: Add const.
Andrew Bartlett
(This used to be commit 8c079ce163)
2007-10-10 13:19:24 -05:00
Andrew Tridgell
aa37e5483b r8240: support comparing pointers in ejs. This allows for
if (io.output.samr == NULL) {
	print("no result\n");
  }
(This used to be commit 89db5c68a5)
2007-10-10 13:19:24 -05:00
Stefan Metzmacher
d9129a77bd r8228: fix compiler warnings
metze
(This used to be commit 93c1d18021)
2007-10-10 13:19:22 -05:00
Stefan Metzmacher
5a176571d8 r8224: - add objectGUID ldif_handler
- fix some compiler warnings

metze
(This used to be commit e6c39241bf)
2007-10-10 13:19:21 -05:00
Tim Potter
372f3fae88 r8171: According to Samba 3 and Ethereal, the winreg_OpenUnkown stuff is
actually a uint16 * without the [string] attribute, a la the the
system_name argument to samr_Connect().

Initialising the pointer to NULL is sufficient and we still pass the
RPC-WINREG test against win2k3.
(This used to be commit 407d962dac)
2007-10-10 13:19:16 -05:00
Stefan Metzmacher
8f9e87d858 r8146: fix compiler warning
metze
(This used to be commit 5fcaa21d67)
2007-10-10 13:19:12 -05:00
Andrew Tridgell
ab65303fe8 r8127: fixed code in function error
(This used to be commit 46632e2048)
2007-10-10 13:19:12 -05:00
Andrew Tridgell
b9e8935188 r8126: - moved to 16 byte alignment for talloc. This is in response to a bug
report from robert collins.

- updated talloc guide to reflect the fact that over the last few
  months talloc overhead compared to malloc has dropped, probably due
  to a bunch of small changes. It now costs about 4% more than malloc
  on my box
(This used to be commit 689a9ccf91)
2007-10-10 13:19:12 -05:00
Simo Sorce
3fe6ca1c18 r8084: do not leak memory on errors
(This used to be commit 2e328e6c2f)
2007-10-10 13:19:07 -05:00
Simo Sorce
e6b353e764 r8083: check attribute type is valid (only ascii alphanum chars and '-' char)
fail if not
(This used to be commit b1a61cd5d0)
2007-10-10 13:19:06 -05:00
Simo Sorce
1c5105065a r8082: large rewite of ldb_dn.c
- we do not support multpiple attribute components anymore, makes code a lot easier
  they will be readded later if we found out they are really used, so far my tests
  show w2k3 do not handle them as well

- fix escaping issues, move component value to be in an ldb_val structure
  still need to handle binary values case

- make cononicalize functions leak less memory by giving a specific memory context

- fix tests scripts so that test-ldap can start
- make test not delete databases on completion so that I can inspect them
(This used to be commit 624a73148d)
2007-10-10 13:19:06 -05:00
Andrew Tridgell
75883a2237 r8071: reduce the size of the default ldb tests. We run on some pretty low powered machines
in the farm, and don't want to chew too much cpu needlessly.
(This used to be commit c03753faa4)
2007-10-10 13:19:05 -05:00
Andrew Tridgell
8139838acf r8067: added a method for disabling the password prompt in programs that want
cmdline credentials, but don't want a prompt if none are supplied
(This used to be commit d7d7f7292b)
2007-10-10 13:19:04 -05:00
Stefan Metzmacher
5d55ee570b r8044: give a better error code
metze
(This used to be commit fdbf822f1c)
2007-10-10 13:19:02 -05:00
Andrew Tridgell
f450b0a02a r8043: increase shell compatibility of ldb tests
(This used to be commit 60863b6faf)
2007-10-10 13:19:02 -05:00
Stefan Metzmacher
4a8c3a9e62 r8042: give better error message
metze
(This used to be commit 70118e9529)
2007-10-10 13:19:02 -05:00
Andrew Tridgell
978335ae94 r8041: remove a mis-spelled debug message :-)
(This used to be commit 912fa269d2)
2007-10-10 13:19:01 -05:00
Andrew Tridgell
036a7dd9f8 r8039: allow ldb test suite to be run outside of the ldb directory
(This used to be commit f3e3b2ccd9)
2007-10-10 13:19:01 -05:00
Andrew Tridgell
bd7812be31 r8038: - fixed indexing on binary values that need base64 encoding and canonicalisation
- added support for recognising the S- form of objectsid in search
  expressions. I thought this could be done with just a comparison
  modified comparison function, but it turns out it also needs a
  canonicalisation function so that indexing can work
(This used to be commit 7d2bee2c56)
2007-10-10 13:19:01 -05:00
Andrew Tridgell
a06d66a3a6 r8037: a fairly major update to the internals of ldb. Changes are:
- moved the knowledge of attribute types out of ldb_tdb and into the
   generic ldb code. This allows the ldb_match() message match logic
   to be generic, so it can be used by other backend

 - added the generic ability to load attribute handlers, for
   canonicalisation, compare, ldif read and ldif write. In the future
   this will be used by the schema module to allow us to correctly
   obey the attributetype schema elements

 - added attribute handlers for some of the core ldap attribute types,
   Integer, DirectoryString, DN, ObjectClass etc

 - added automatic registration of attribute handlers for well-known
   attribute names 'cn', 'dc', 'dn', 'ou' and 'objectClass'

 - converted the objectSid special handlers for Samba to the new system

 - added more correct handling of indexing in tdb backend based on the
   attribute canonicalisation function

 - added generic support for subclasses, moving it out of the tdb
   backend. This will be used in future by the schema module

 - fixed several bugs in the dn_explode code. It still needs more
   work, but doesn't corrupt ldb dbs any more.
(This used to be commit 944c5844ab)
2007-10-10 13:19:01 -05:00
Andrew Tridgell
324de0b36d r8035: added indexing tests. current ldb fails the integer indexing, will be fixed shortly
(This used to be commit a9c3244503)
2007-10-10 13:19:00 -05:00
Andrew Tridgell
64307e6351 r8033: - add easier valgrind testing
- add tests for the @SUBCLASSES ltdb special
(This used to be commit ad6e62fdcf)
2007-10-10 13:19:00 -05:00
Andrew Tridgell
9cfe2d83f1 r8032: added loop detection into talloc. Robert Collins found a way to make a
memory loop with talloc_unlink(), so now we detect it and handle it
(This used to be commit 563058e78b)
2007-10-10 13:19:00 -05:00
Andrew Tridgell
baa873b8a1 r8011: arrgh, commit the right version this time
(This used to be commit 5efea40ea6)
2007-10-10 13:18:58 -05:00
Andrew Tridgell
34c57c5629 r8010: added testing of wildcard attributes
(This used to be commit 25d3872a6e)
2007-10-10 13:18:58 -05:00
Andrew Tridgell
bed487f6a3 r8009: expanded the ldb test suite. It worried me that some changes I have
pending, which I know break lots of features, still passed our test
suite! Now they don't.
(This used to be commit 5801167c8d)
2007-10-10 13:18:58 -05:00
Andrew Tridgell
c645eba60b r8005: escape '"' characters in ldap expressions. Makes scripting easier.
(This used to be commit 2de986455c)
2007-10-10 13:18:58 -05:00
Andrew Tridgell
c58c7c4164 r8002: favor addresses on our local interfaces in NBT name resolution if
possible. This is needed because w2k3 will return bogus IPs in its
name resolution replies when it has an unplugged network interface.
(This used to be commit 2fafc23052)
2007-10-10 13:18:57 -05:00
Andrew Bartlett
f62a70fe54 r7988: Store the KVNO for the machine account, and set it up in the provision.
Andrew Bartlett
(This used to be commit 90e94a4630)
2007-10-10 13:18:56 -05:00
Andrew Bartlett
3433a464c2 r7967: We don't have the ms_krb5 stuff any more.
Andrew Bartlett
(This used to be commit 56a5ccd7d9)
2007-10-10 13:18:54 -05:00
Jelmer Vernooij
65cc3f5d5c r7958: More debian packaging updates; packages build now with
a few minor issues.

Move ldb manpages one level higher - there is no longer a need to have
subdirectories.
(This used to be commit e8e3524b23)
2007-10-10 13:18:54 -05:00
Jelmer Vernooij
fa8d539e0f r7943: Add 'make manpages', fix 'make installman' and 'make uninstallman'.
Not part of the "all" make target yet, as it requires xsltproc
(This used to be commit fd3f463643)
2007-10-10 13:18:53 -05:00
Simo Sorce
e1e95277c0 r7937: main file was missing
(This used to be commit 3898cdb0dc)
2007-10-10 13:18:53 -05:00
Simo Sorce
1702f52498 r7936: new ldb_dn_explode and ldb_dn_casefold functions and co
(This used to be commit 7ccf21ab4e)
2007-10-10 13:18:52 -05:00
Andrew Tridgell
6a7119fc83 r7926: poptGetNextOpt() returns int, not char
this was breaking ldbadd on some platforms
(This used to be commit dd0ac3f68d)
2007-10-10 13:18:51 -05:00
Andrew Tridgell
eb11eeb5db r7913: prevent recursion in the socket wrapper code
(This used to be commit c1a0c2042d)
2007-10-10 13:18:49 -05:00
Andrew Tridgell
8c53aba485 r7912: make private_path() recognise a non-relative filename, so we can have
sam database = sam.ldb

and it will know to put it in the private dir, but if you use

  sam database = ldap://server

it knows to use it as-is
(This used to be commit c5bccbc366)
2007-10-10 13:18:48 -05:00
Andrew Tridgell
fbb0ecd418 r7910: fixed typo in _SAMBA_BUILD_ macro
(This used to be commit d2e9e95ea2)
2007-10-10 13:18:48 -05:00
Andrew Tridgell
2ea96684bc r7909: don't consider not finding a list of network interfaces from the kernel a fatal error,
the individual services that need at least one known interface check for it anyway

this should fix provisioning on macosx
(This used to be commit 5ad0dc97d0)
2007-10-10 13:18:48 -05:00
Derrell Lipman
1603fd9466 r7897: work in progress
(This used to be commit 8e1431efcf)
2007-10-10 13:18:47 -05:00
Andrew Tridgell
49736de46a r7873: hopefully fixed build of ldb_explode_dn() on AIX
I'd really rather see this code completely replaced, but I'll leave
that to simo (he has volunteered) :-)
(This used to be commit cc2e08d68e)
2007-10-10 13:18:46 -05:00
Andrew Tridgell
b818ff3ede r7868: canonicalise the message before using ldb_add() in the ldbadd utility.
(This used to be commit 56f4af5f21)
2007-10-10 13:18:45 -05:00
Jelmer Vernooij
d5888fbb60 r7866: Remove some unused autoconf macro calls.
Some of these should probably be re-added again later when
we need them. They should then be added to the appropriate config.m4 file
in the source tree rather then in rewrite.m4.
(This used to be commit 4eca613470)
2007-10-10 13:18:45 -05:00
Andrew Tridgell
bdee131f30 r7860: switch our ldb storage format to use a NDR encoded objectSid. This is
quite a large change as we had lots of code that assumed that
objectSid was a string in S- format.

metze and simo tried to convince me to use NDR format months ago, but
I didn't listen, so its fair that I have the pain of fixing all the
code now :-)

This builds on the ldb_register_samba_handlers() and ldif handlers
code I did earlier this week. There are still three parts of this
conversion I have not finished:

 - the ltdb index records need to use the string form of the objectSid
   (to keep the DNs sane). Until that it done I have disabled indexing on
   objectSid, which is a big performance hit, but allows us to pass
   all our tests while I rejig the indexing system to use a externally
   supplied conversion function

 - I haven't yet put in place the code that allows client to use the
   "S-xxx-yyy" form for objectSid in ldap search expressions. w2k3
   supports this, presumably by looking for the "S-" prefix to
   determine what type of objectSid form is being used by the client. I
   have been working on ways to handle this, but am not happy with
   them yet so they aren't part of this patch

 - I need to change pidl to generate push functions that take a
   "const void *" instead of a "void*" for the data pointer. That will
   fix the couple of new warnings this code generates.

Luckily it many places the conversion to NDR formatted records
actually simplified the code, as it means we no longer need as many
calls to dom_sid_parse_talloc(). In some places it got more complex,
but not many.
(This used to be commit d40bc2fa8d)
2007-10-10 13:18:44 -05:00
Simo Sorce
ce2e35309e r7851: We are case preserving let the DN be returned the same the user put it into.
sss
(This used to be commit 5b41e32024)
2007-10-10 13:18:42 -05:00
Jelmer Vernooij
66a52992ff r7850: Support mkdir() with just one parameter. Patch from
Steven Edwards <steven_ed4153@yahoo.com>.

I've moved the Win32-specific tests to win32.m4 so it does not
make any of the POSIX configure stuff more complicated.
(This used to be commit bf85fdd015)
2007-10-10 13:18:42 -05:00
Derrell Lipman
f1a853664c r7844: eliminate superfluous attribute tables
(This used to be commit 863beef35b)
2007-10-10 13:18:42 -05:00
Andrew Tridgell
9f51b5716d r7834: added comment about the "((" search test
(This used to be commit 42c42f6611)
2007-10-10 13:18:41 -05:00
Andrew Tridgell
0eb6bc1257 r7833: changed ldbsearch and ldbedit to have command line syntax closer to
ldapsearch. They look for an '=' in the first argument to see if it is
a search expression, and if not then it does an 'all records' search
(This used to be commit 91cc009fed)
2007-10-10 13:18:41 -05:00
Andrew Tridgell
3b9eabc2f3 r7832: missed one
(This used to be commit 20c84f5c52)
2007-10-10 13:18:41 -05:00
Andrew Tridgell
c97e6081e6 r7831: use cn=TEST as base of test DNs so we don't interfere with potentially real records
(This used to be commit 2a426f654d)
2007-10-10 13:18:41 -05:00
Derrell Lipman
fdc0450db2 r7828: Although there is still plenty to do, ldb_sqlite3 now passes the set of tests
in tests/test-sqlite3.sh (tests/test-generic.sh).

There are lots of optimizations still TBD, and some things are REALLY slow
right now (e.g. each add() operation takes 1/3 - 1/2 second) but it's ready for
interested parties to poke it and prod it and see how (un)reasonable it is.
Play away.

Still to be implemented or improved:
 - tdb specials (@MODULES, @SUBCLASSES, etc.)
 - all DNs are case-folded in their entirty right now (since doing otherwise
   would require @ATTRIBUTES to be implemented)
 - speed improvements and optimizations.  I am quite confident that the
   excessively slow add() operation can be much improved, and other areas
   can be somewhat improved.
(This used to be commit 1dd8650055)
2007-10-10 13:18:41 -05:00
Andrew Bartlett
8a68f96f8c r7827: Add in-memory keytab to Samba4, using the new MEMORY_WILDCARD keytab
support in Heimdal.

This removes the 'ext_keytab' step from my Samba4/WinXP client howto.

In doing this work, I realised that the replay cache in Heimdal is
currently a no-op, so I have removed the calls to it, and therefore
the mutex calls from passdb/secrets.c.

This patch also includes a replacement 'magic' mechanism detection,
that does not issue extra error messages from deep inside the GSSAPI
code.

Andrew Bartlett
(This used to be commit c19d5706f4)
2007-10-10 13:18:41 -05:00
Andrew Tridgell
062e0f8325 r7808: fixed the build of ldb after the binary file support in ldif was added
(This used to be commit 0a8c722c80)
2007-10-10 13:18:38 -05:00
Simo Sorce
7f46f89257 r7806: add test for binary files as attribute values
(This used to be commit 2b2675055e)
2007-10-10 13:18:38 -05:00
Simo Sorce
064d71c9d4 r7805: add support to read binary files into attributes data like ldap tools does
(This used to be commit 38a1439626)
2007-10-10 13:18:37 -05:00
Andrew Tridgell
5be159f304 r7804: added the samba specific ldif handlers into the tree, but don't enable
them just yet. I have tested them, and they work fine, but enabling
them will break code in rpc_server/ and samdb, so we need to fix that
first
(This used to be commit 07d459406b)
2007-10-10 13:18:37 -05:00
Andrew Tridgell
eb0a13025a r7803: added support in ldb for callers to setup ldif read/write functions,
so that ldbedit, ldbsearch etc can display nice human readable ldif,
while storing the data as binary blobs. This will be used for storing
NDR encoded objectSid and similar attributes, while making the command
line interface sane
(This used to be commit 37e283089a)
2007-10-10 13:18:37 -05:00
Andrew Tridgell
b7be627e35 r7784: give an error in ldb_tdb for invalid modify flags. The "whenChanged"
bug was being silently ignored with the tdb backend because of this
bug. A case where the ldap backend was right, and the tdb backend was
wrong!
(This used to be commit ddb26db763)
2007-10-10 13:18:36 -05:00
Andrew Tridgell
a124028b66 r7781: finding the parent of a talloc ptr is trickier than it looks due to the two-way
tree nature of the data structure. I think I've finally got it right

also added talloc_show_parents() for debugging
(This used to be commit 5760ed20ee)
2007-10-10 13:18:36 -05:00
Andrew Tridgell
bb8d0c76b4 r7780: fixed a bug in talloc_find_parent_byname()
(This used to be commit ee3fe42fb1)
2007-10-10 13:18:35 -05:00
Andrew Tridgell
e3eec57b06 r7779: use the parent event context in ldb_wrap_connect(). See the comment in
the previous commit for the method.
(This used to be commit b0ad505510)
2007-10-10 13:18:35 -05:00
Andrew Tridgell
545203d915 r7778: added talloc_find_parent_bytype() and talloc_find_parent_byname()
These provide a way to find a parent of a ptr that is of a given
type. I will be using this to find the event context in smbd, relying
on the fact that everything is a child of the top level event
context. I did look at the alternatives, and found that passing the
event context to just about every call in smbd was getting way too
complex (we need to get it to anything that can do a ldb operation, as
that can invoke ldap).

So this method avoids a global, and seems to work nicely
(This used to be commit bdb55c7a10)
2007-10-10 13:18:35 -05:00
Andrew Tridgell
bd7a474b19 r7776: add a method for getting arbitrary opaque data into a ldb context, for use by backends.
Currently only EventContext is used in this way.
(This used to be commit 9fa21b2458)
2007-10-10 13:18:35 -05:00
Andrew Tridgell
30b68a0af2 r7773: fixed the tls code for the non-GNUTLS case
(This used to be commit bc6bc84ef4)
2007-10-10 13:18:34 -05:00
Andrew Tridgell
64bf731865 r7769: added client support in the tls library api
(This used to be commit 71ee6a1df5)
2007-10-10 13:18:33 -05:00
Andrew Tridgell
c4e7c6e2da r7767: fixed ldb dependencies
(This used to be commit 97e4ba84fb)
2007-10-10 13:18:33 -05:00
Andrew Tridgell
1601b8e9f9 r7759: allow ldb_errstring() to be used when not connected
(This used to be commit 818ae965af)
2007-10-10 13:18:32 -05:00
Andrew Tridgell
683f3bc96e r7754: fixed the local port of accepted sockets in socket_wrapper. This fixes
the problem with the ldap tests in 'make test'
(This used to be commit 56fe27623c)
2007-10-10 13:18:31 -05:00
Andrew Tridgell
7a17da2186 r7751: only enable tls on the ldaps port in ldap server, and reject non-tls
connections on that port
(This used to be commit 30da6a1cc4)
2007-10-10 13:18:31 -05:00
Andrew Tridgell
6720bd94b8 r7750: handle STATUS_MORE_ENTRIES on send in tls
(This used to be commit 135c3367ff)
2007-10-10 13:18:31 -05:00
Andrew Tridgell
7267cb3312 r7749: some bug fixes from testing with socket:testnonblock
- fixed some infinite loops in asn1.c

- ensure asn1 callers know if an error is end of buffer or bad data

- handle npending 0 in ldap server
(This used to be commit f22c3b84c8)
2007-10-10 13:18:30 -05:00
Andrew Tridgell
c7496c6cdb r7747: - simplified the ldap server buffer handling
- got rid of the special cases for sasl buffers

- added a tls_socket_pending() call to determine how much data is waiting on a tls connection

- removed the attempt at async handling of ldap calls. The buffers/sockets are all async, but the calls themselves
  are sync.
(This used to be commit 73cb4aad22)
2007-10-10 13:18:30 -05:00
Andrew Tridgell
28fd9ea80b r7745: better handling of recv errors in tls library
(This used to be commit 42d8a1a222)
2007-10-10 13:18:30 -05:00
Andrew Tridgell
e485e80b51 r7743: be consistent in how stdin is supported for ldbadd and ldbmodify
(This used to be commit 3d60b3a8ee)
2007-10-10 13:18:29 -05:00
Andrew Tridgell
225d5a334f r7742: abstracted out the tls code from the web server, so that our other servers
can easily become tls enabled. This will be used to add support for ldaps
(This used to be commit 950500f603)
2007-10-10 13:18:29 -05:00
Andrew Tridgell
aa6b2dcb9b r7741: fixed the verbose option in ldbedit
(This used to be commit a440133140)
2007-10-10 13:18:29 -05:00
Andrew Tridgell
56cc328000 r7740: get rid of our duplicate base64 routines
(This used to be commit cf17f90a83)
2007-10-10 13:18:29 -05:00
Andrew Tridgell
814d5a5011 r7739: fixed an off by one bug in the base64 decoder for ldb ldif
(This used to be commit fe2b77af23)
2007-10-10 13:18:28 -05:00
Andrew Tridgell
0dde0612b4 r7728: handle 64 bit integers in INTEGER match
(This used to be commit 57132344b4)
2007-10-10 13:18:27 -05:00
Andrew Tridgell
bf75ae4155 r7726: - removed some unused variables
- handle ldb_errstring() calls on failed connect
(This used to be commit 8698a20fcc)
2007-10-10 13:18:27 -05:00
Andrew Tridgell
97318cdb45 r7719: make the ildap ldb backend use the defaultNamingContext if the basedn
is not specified, so:

  ldbsearch ldap://hostname '(objectclass=user)'

works without knowing the domain name
(This used to be commit f6c2c51907)
2007-10-10 13:18:26 -05:00
Andrew Tridgell
f40e69da26 r7714: enable samba credentials handling in ldb tools. So you can now do a
encrypted ldbedit against w2k3
(This used to be commit 6277c3923e)
2007-10-10 13:18:25 -05:00
Andrew Tridgell
f8b60c8b1a r7712: ldb/common/util.c is gone
(This used to be commit aec0544962)
2007-10-10 13:18:25 -05:00
Andrew Tridgell
74037cbe92 r7711: update callers of ldb_connect() for new syntax
(This used to be commit f852661463)
2007-10-10 13:18:24 -05:00
Andrew Tridgell
f52b42c75f r7710: new command line handling code for ldb
(This used to be commit 5e8db1c9b3)
2007-10-10 13:18:24 -05:00
Andrew Tridgell
ed3d8091ce r7709: - convert ldb to use popt, so that it can interact with the samba
cmdline credentials code (which will be done soon)

- added a ldb_init() call, and changed ldb_connect() to take a ldb
  context. This allows for much better error handling in
  ldb_connect(), and also made the popt conversion easier

- fixed up all the existing backends with the new syntax

- improved error handling in *_connect()

- fixed a crash bug in the new case_fold_required() code

- ensured that ltdb_rename() and all ltdb_search() paths get the read lock

- added a ldb_oom() macro to make it easier to report out of memory
  situations in ldb code
(This used to be commit f648fdf187)
2007-10-10 13:18:24 -05:00
Andrew Bartlett
5b19286df0 r7690: Move the NT hash generation into the credentials system, rather than
in all the callers.  This also allows us to be more flexible in the
type of password we store.

Andrew Bartlett
(This used to be commit 00b8588c68)
2007-10-10 13:18:23 -05:00
Andrew Tridgell
1f052665f3 r7669: removed ldap from our configure tests
This takes our link dependencies from this:

tridge@blu:~/samba/samba4/source$ ldd bin/ldbsearch
        libdl.so.2 => /lib/tls/libdl.so.2 (0xb7fc9000)
        libldap_r.so.2 => /usr/lib/libldap_r.so.2 (0xb7f92000)
        liblber.so.2 => /usr/local/lib/liblber.so.2 (0xb7f85000)
        libpam.so.0 => /lib/libpam.so.0 (0xb7f7d000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7e48000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fea000)
        libresolv.so.2 => /lib/tls/libresolv.so.2 (0xb7e36000)
        libcrypt.so.1 => /lib/tls/libcrypt.so.1 (0xb7e09000)
        libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb7df3000)
        libgnutls.so.11 => /usr/lib/libgnutls.so.11 (0xb7d8c000)
        libpthread.so.0 => /lib/tls/libpthread.so.0 (0xb7d7d000)
        libtasn1.so.2 => /usr/lib/libtasn1.so.2 (0xb7d6d000)
        libgcrypt.so.11 => /usr/lib/libgcrypt.so.11 (0xb7d20000)
        libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0xb7d1c000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb7d09000)
        libnsl.so.1 => /lib/tls/libnsl.so.1 (0xb7cf5000)

to this:

tridge@blu:~/samba/samba4/source$ ldd bin/ldbsearch
        libdl.so.2 => /lib/tls/libdl.so.2 (0xb7fc9000)
        libpam.so.0 => /lib/libpam.so.0 (0xb7fc0000)
        libc.so.6 => /lib/tls/libc.so.6 (0xb7e8b000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0xb7fea000)

this finally gets rid of the implicit dependency on pthreads! Yay!
(This used to be commit 844d2a2083)
2007-10-10 13:18:20 -05:00
Andrew Tridgell
44a04d74cd r7668: - setup HAVE_ILDAP to enable the ildap backend in ldb
- fixed a bug in socket_connect_ev()
(This used to be commit 3f77b879a0)
2007-10-10 13:18:20 -05:00
Andrew Tridgell
03b0f279ed r7667: added a ldb ildap backend, using our internal ldap client library. Next step is to
remove the check for the ldap libraries in configure
(This used to be commit 74841dbb2a)
2007-10-10 13:18:19 -05:00
Andrew Tridgell
52400f0f7d r7666: fixed a memory leak in the ldap ldb backend
(This used to be commit ac3f33c615)
2007-10-10 13:18:19 -05:00
Andrew Tridgell
11bc3f3589 r7660: improved error handling in socket_connect_ev() (it matters when name
resolution fails)
(This used to be commit 4013c2ddea)
2007-10-10 13:18:18 -05:00
Jeremy Allison
fcb339c087 r7641: Fix based on work from "Shlomi Yaakobovich" <Shlomi@exanet.com> to catch
loops in corrupted tdb files.
Jeremy.
(This used to be commit f9f3037d68)
2007-10-10 13:18:16 -05:00
Simo Sorce
f4183d9be2 r7635: change the license of this file to lgpl like the rest of ldb
(This used to be commit 8735188b46)
2007-10-10 13:18:16 -05:00
Andrew Tridgell
af237084ec r7633: this patch started as an attempt to make the dcerpc code use a given
event_context for the socket_connect() call, so that when things that
use dcerpc are running alongside anything else it doesn't block the
whole process during a connect.

Then of course I needed to change any code that created a dcerpc
connection (such as the auth code) to also take an event context, and
anything that called that and so on .... thus the size of the patch.

There were 3 places where I punted:

  - abartlet wanted me to add a gensec_set_event_context() call
    instead of adding it to the gensec init calls. Andrew, my
    apologies for not doing this. I didn't do it as adding a new
    parameter allowed me to catch all the callers with the
    compiler. Now that its done, we could go back and use
    gensec_set_event_context()

  - the ejs code calls auth initialisation, which means it should pass
    in the event context from the web server. I punted on that. Needs fixing.

  - I used a NULL event context in dcom_get_pipe(). This is equivalent
    to what we did already, but should be fixed to use a callers event
    context. Jelmer, can you think of a clean way to do that?

I also cleaned up a couple of things:

 - libnet_context_destroy() makes no sense. I removed it.

 - removed some unused vars in various places
(This used to be commit 3a3025485b)
2007-10-10 13:18:15 -05:00
Tim Potter
289845ff77 r7627: Fix warning in unused (?) function.
(This used to be commit a4d0598863)
2007-10-10 13:18:14 -05:00
Andrew Tridgell
bab977dad7 r7626: a new ldap client library. Main features are:
- hooked into events system, so requests can be truly async and won't
   interfere with other processing happening at the same time

 - uses NTSTATUS codes for errors (previously errors were mostly
   ignored). In a similar fashion to the DOS error handling, I have
   reserved a range of the NTSTATUS code 32 bit space for LDAP error
   codes, so a function can return a LDAP error code in a NTSTATUS

 - much cleaner packet handling
(This used to be commit 2e3c660b2f)
2007-10-10 13:18:14 -05:00
Simo Sorce
4864c329c4 r7615: fix the build and simplify gendb_search_dn
(This used to be commit b38bb63175)
2007-10-10 13:18:14 -05:00
Simo Sorce
9378cca1ae r7608: bug fix after yesterday's change
(This used to be commit 0218fc678e)
2007-10-10 13:18:14 -05:00
Derrell Lipman
93e03bd272 r7602: fix some compiler warnings
(This used to be commit ce9966e091)
2007-10-10 13:18:13 -05:00
Derrell Lipman
f021dffb69 r7601: ldb_sqlite3 work in progress
(This used to be commit 0a64948152)
2007-10-10 13:18:13 -05:00
Andrew Tridgell
6be47e9bc2 r7597: removed the bogus get_myfullname() and get_mydomname() calls, and put
them in the ntlmssp code, which is the only place they are
used. Andrew, please remove them completely once you have some more
reliable way to get this info

they are bogus as gethostname() may give us a short hostname (and does
on lot of systems), so the calls often give totally the wrong result
anyway
(This used to be commit 35ec292f86)
2007-10-10 13:18:12 -05:00
Andrew Tridgell
3e92471d4c r7596: next step in ldap cleanup. I'm aiming to get rid of the cut&pasted
ldif parsing code in libcli/ldap/ldap_ldif.c, and instead use the ldb
ldif code. To do that I have changed the ldap code to use 'struct
ldb_message_element' instead of 'struct ldap_attribute'. They are
essentially the same structure anyway, so by making them really the
same it will be much easier to use the ldb code in libcli/ldap/

I have also made 'struct ldb_val' the same as a DATA_BLOB, which will
simplify data handling in quite a few places (I haven't yet removed
all the code that maps between these two, that will come later)
(This used to be commit 87fc307339)
2007-10-10 13:18:12 -05:00
Derrell Lipman
c2747479e0 r7586: ldb_sqlite3 making progress. add and search have indicated a willingness to operate properly on initial testing
(This used to be commit 86ca8639e0)
2007-10-10 13:18:11 -05:00
Simo Sorce
9189833a87 r7582: Better way to have a fast path searching for a specific DN.
Old way was ugly and had a bug, you couldn't add an attribute named
dn or distinguishedName and search for it, tdb would change that search in a dn search.
This makes it also possible to search by dn against an ldap server as the old method was
not supported by ldap syntaxes.

sss
(This used to be commit a614466dec)
2007-10-10 13:18:11 -05:00
Andrew Tridgell
051b93bec3 r7572: fixed filter in test suite
(This used to be commit 73d2e5df0c)
2007-10-10 13:18:11 -05:00
Andrew Tridgell
42863aebb1 r7571: fixed the generation of the filter string for extended filters
(This used to be commit 348a86e643)
2007-10-10 13:18:10 -05:00
Andrew Tridgell
1491f9b615 r7564: added a test showing the search expression that w2k is actually giving
us that triggered this work
(This used to be commit 853b8cd72d)
2007-10-10 13:18:09 -05:00
Derrell Lipman
81b4183e1c r7562: work in progress
(This used to be commit d8a9ce7853)
2007-10-10 13:18:09 -05:00
Derrell Lipman
785b452a04 r7561: moved OID constants into ldb.h and used manifest constants in ldb_match.c
(This used to be commit 42cbb155c2)
2007-10-10 13:18:08 -05:00
Andrew Tridgell
5ec2c79dc5 r7560: added tests for extended bitop search functions
(This used to be commit 7b58b3a9c5)
2007-10-10 13:18:08 -05:00
Andrew Tridgell
3f09462719 r7559: support 64 bit matching in bitops
(This used to be commit 0c44a67001)
2007-10-10 13:18:08 -05:00
Andrew Tridgell
4fec6356ea r7558: added support in ldb for extended ldap search requests. These are
using to perform such things as bitop tests on integers.

So far I have only added support for the 1.2.840.113556.1.4.803 and
1.2.840.113556.1.4.804 rules, which are for bitwise and/or
(This used to be commit 5f773b065f)
2007-10-10 13:18:08 -05:00
Derrell Lipman
4a139f8171 r7556: fixed typo in documentation
(This used to be commit 77fc2036a0)
2007-10-10 13:18:08 -05:00
Andrew Tridgell
734ff692f3 r7533: don't show compile flags for each file
(This used to be commit 6a9ab148a9)
2007-10-10 13:18:07 -05:00
Andrew Bartlett
00e2b7c1b4 r7530: Simply calling convention of lp_load().
This always loads all the services, as we now don't have an easy way
to split out smbd.

Andrew Bartlett
(This used to be commit 990e061939)
2007-10-10 13:18:07 -05:00
Andrew Tridgell
4b0e5bd753 r7527: - added a ldb_search_bytree() interface, which takes a ldb_parse_tree
instead of a search expression. This allows our ldap server to pass
  its ASN.1 parsed search expressions straight to ldb, instead of going
  via strings.

- updated all the ldb modules code to handle the new interface

- got rid of the separate ldb_parse.h now that the ldb_parse
  structures are exposed externally

- moved to C99 structure initialisation in ldb

- switched ldap server to using ldb_search_bytree()
(This used to be commit 96620ab2ee)
2007-10-10 13:18:06 -05:00
Andrew Tridgell
d71e1a7a7f r7526: make test should depend on the bins
(This used to be commit 646953df4c)
2007-10-10 13:18:06 -05:00
Andrew Bartlett
2b4791ae73 r7525: Unify lp_load(), load_interfaces and logging setup into popt().
There is now a new --debug-stderr option to enable debug to STDERR.

popt isn't perfect, but the callbacks are used in all the main Samba
binaries, and should be used in the rest.  This avoids duplicated
code, and ensures every binary is setup correctly.

This also ensures the setup happens early enough to have -s function,
and have a correct impact on the credentials code.  (Fixing a bug that
frustrated tridge earlier today).

The only 'subtle' aspect of all this is that I'm pretty sure that the
SAMBA_COMMON popt code must be above the CREDENTIALS code, in the
popt tables.

Andrew Bartlett
(This used to be commit 50f3c2b3a2)
2007-10-10 13:18:06 -05:00
Andrew Tridgell
e5c70a5887 r7522: added a ldb_filter_from_tree() function that takes a ldb_parse_tree
and forms a ldab search filter expression. Next step is to make our
ldap server code go from ASN.1 to a ldb_parse_tree, instead of trying
to construct string filters, then add a ldb_search_tree() call to
allow for searches using parse trees.

all of this is being done as I am hitting bitwise '&' ldap search
expressions from w2k, and want to handle them cleanly.
(This used to be commit 04356c1b1e)
2007-10-10 13:18:05 -05:00
Andrew Tridgell
490a5a5d59 r7518: don't use an uninitialised ldb debug function when failing to load modules in the ldap
backend
(This used to be commit 52e4a5b3b0)
2007-10-10 13:18:03 -05:00
Andrew Tridgell
d94805ea55 r7517: handle zero length equality tests
(This used to be commit 18c96f2b3e)
2007-10-10 13:18:03 -05:00
Andrew Tridgell
e1fa7352ca r7516: make sure binary decoding gives us something we can run string functions on
(This used to be commit 9913ab2550)
2007-10-10 13:18:03 -05:00
Andrew Tridgell
9cb3b2d49b r7515: merge in the binary encode/decode enhancements from the libcli/ldap/
code into the ldb parse code
(This used to be commit 12647e3722)
2007-10-10 13:18:02 -05:00
Andrew Tridgell
87acba39f9 r7514: make the ldb_parse code not depend on a ldb_context, so we can now potentially use
it in our ldap client code, instead of replicating all the code
(This used to be commit 5b3575d930)
2007-10-10 13:18:02 -05:00
Derrell Lipman
2e1851e1ac r7498: ldb_sqlite3 work in progress
(This used to be commit 797263330b)
2007-10-10 13:18:00 -05:00
Stefan Metzmacher
4233f18a31 r7486: fix for the build farm to display the panic messages and backtrace inside the per test frame
metze
(This used to be commit 5cf27b4af3)
2007-10-10 13:17:58 -05:00
Tim Potter
182dd02ebe r7481: Add a mprVarIsPtr macro.
(This used to be commit 633b24345f)
2007-10-10 13:17:57 -05:00
Derrell Lipman
0264c1792d r7480: ldb_sqlite3 work in progress
(This used to be commit 510e7994da)
2007-10-10 13:17:57 -05:00
Andrew Tridgell
b1b134084f r7476: ensure dgram sockets are created non-blocking. As they usually skip
the connect() stage, we were missing this
(This used to be commit f5102b886c)
2007-10-10 13:17:57 -05:00
Andrew Tridgell
d543e4a265 r7460: fixed several problems with the socket wrapper code and unbound sockets
This should fix the LOCAL-SOCKET test in the build farm
(This used to be commit 417e967afb)
2007-10-10 13:17:55 -05:00
Tim Potter
a925848704 r7456: Add a simple type that represents a pointer. The ejs people may ask us
to change this later but that will be pretty easy.

We can use this type to pass around pointers to handles in C.  Talloc
allows us to do type checking too.
(This used to be commit b95c0bc9b0)
2007-10-10 13:17:54 -05:00
Derrell Lipman
5351ae59a0 r7449: add ctype.h header to dn expand function
(This used to be commit 0e3b872560)
2007-10-10 13:17:54 -05:00
Derrell Lipman
09bdc1b938 r7446: add distclean target to generated ldb makefile
(This used to be commit 9a78161b0f)
2007-10-10 13:17:54 -05:00
Derrell Lipman
b501bf17ab r7443: reorg functions for readability
(This used to be commit 7543acfa9f)
2007-10-10 13:17:54 -05:00
Volker Lendecke
84ee48e3e9 r7441: Get rid of // comments. Tridge, if this breaks anything, please revert it. More tomorrow
Volker
(This used to be commit 02efa4427d)
2007-10-10 13:17:54 -05:00
Derrell Lipman
ee3f4b12d2 r7438: work in progress
(This used to be commit 2fc5343f06)
2007-10-10 13:17:53 -05:00
Derrell Lipman
c63c28f5bd r7437: Make Simo happy.
I still think this URI syntax for a 'protocol' which has no network component
is stupid; it should just be

  sqlite:local_file
or
  sqlite:/full/path/to/file

but there is enough precedent to warrant the behavior that Simo wants that it
is not worth arguing.
(This used to be commit 61dcb462f3)
2007-10-10 13:17:53 -05:00
Volker Lendecke
c96492a9dc r7436: As far as I see it, these are the last two "real" ones for Samba4 on AIX to
build. The remaining patch (not now) is to convert the javascript stuff not to
use // style comments.

Volker
(This used to be commit 29f7e430ac)
2007-10-10 13:17:53 -05:00
Derrell Lipman
a6717fae68 r7418: work in progress
(This used to be commit 2a13e7655b)
2007-10-10 13:17:51 -05:00
Derrell Lipman
322f0df3f1 r7410: minor cleanup
(This used to be commit 4c8bffc3f0)
2007-10-10 13:17:51 -05:00
Derrell Lipman
7fc1c3553c r7408: added DN explode function, based on simo's ldap_parse_dn() function. simo, when you get a chance, please change your license so this can be linked with ldb.
(This used to be commit 588a1d1451)
2007-10-10 13:17:50 -05:00
Jelmer Vernooij
c6a3ee8bab r7373: Disable reg_gconf by default, allow building it with --enable-reg-gconf
(This used to be commit 6596f619c0)
2007-10-10 13:17:47 -05:00
Andrew Tridgell
bce8cda061 r7352: the internal heimdal build change. This changes quite a few things:
- if you want kerberos now, you need to unpack a lorikeet heimdal
   tree in source/heimdal/. If source/heimdal/ does not exist at
   configure time then all kerberos features are disabled. You cannot
   use an external kerberos library for now. That may change later.

 - moved lib/replace/ config stuff to lib/replace/ and create a
   lib/replace/replace.h. That allows the heimdal build to use our
   portability layer, and prevenets duplicate definitions of functions
   like strlcat()

 - if you do enable heimdal, then you will need to do 'make
   HEIMDAL_EXTERNAL' before you build Samba. That should be fixed once
   I explain the problem to jelmer (the problem is the inability to
   set a depend without also dragging in the object list of the
   dependency. We need this for building the heimdal asn1 compiler and
   et compiler.

 - disabled all of the m4 checks for external kerberos libraries. I
   left them in place in auth/kerberos/, but disabled it in
   configure.in

some of the heimdal_build/ code is still very rough, for example I
don't correctly detect the correct awk, flex, bison replacements for
heimdal_build/build_external.sh. I expect to fix that stuff up over
the next few days.
(This used to be commit d4648249b2)
2007-10-10 13:17:45 -05:00
Derrell Lipman
f08fafc492 r7349: work in progress
(This used to be commit 0e4d9729d9)
2007-10-10 13:17:45 -05:00
Simo Sorce
ca7baa3c9f r7343: handle url like ldb_tdb does
(This used to be commit d36fde5c0c)
2007-10-10 13:17:45 -05:00
Simo Sorce
198241adc2 r7338: let it be possible to run sqlite3 tests when it is compiled in
make it also so that we do not run test for modules we do not compile in
(This used to be commit c226c1c7a3)
2007-10-10 13:17:44 -05:00
Stefan Metzmacher
5141a1e50c r7336: make --with-sqlite3=auto possible
metze
(This used to be commit cd59ff50ed)
2007-10-10 13:17:44 -05:00
Simo Sorce
903a7fb990 r7334: I do not feel oblidged to use sqlite3 when I configure ldap support :-)
(fix typo)
(This used to be commit d6dae85881)
2007-10-10 13:17:43 -05:00
Derrell Lipman
b8e8e5ed4e r7332: added note to self for required modification
(This used to be commit 8fa340c1d4)
2007-10-10 13:17:43 -05:00
Andrew Tridgell
0093e1b62c r7320: added support for a private pointer in irpc registered handlers
(This used to be commit eec521dffd)
2007-10-10 13:17:41 -05:00
Derrell Lipman
34ffdb12fc r7316: work in progress
(This used to be commit 84a2b4049f)
2007-10-10 13:17:41 -05:00
Andrew Tridgell
37fdb858b0 r7298: ensure messages are sent in order even when under extreme load. This
fixes a IO_TIMEOUT problem in the messaging benchmarks
(This used to be commit c8b220b65d)
2007-10-10 13:17:38 -05:00
Andrew Tridgell
b4a95b949e r7296: avoid two stat() calls per message. This increases the raw message
rate from 20k/sec to 55k/sec. The irpc rate goes from 16k/sec to
34k/sec.

I should have run strace -T on this a long time ago.
(This used to be commit b9281668bb)
2007-10-10 13:17:38 -05:00
Andrew Tridgell
d934cb71d0 r7295: added an irpc benchmark. It gets about 16k messages/sec on my laptop,
compared to about 20k messages/sec for the raw messaging layer. I
think that is quite acceptable given the extra functionality.
(This used to be commit a05d38d1d9)
2007-10-10 13:17:38 -05:00
Andrew Tridgell
bf1ffa283c r7294: implemented the irpc messaging system. This is the core of the
management system I proposed on samba-technical a couple of days
ago. Essentially it is a very lightweight way for any code in Samba to
make IDL based rpc calls to anywhere else in the code, without the
client or server having to go to the trouble of setting up a full rpc
service.

It can be used with any of our existing IDL, but I expect it will
mostly be used for a new set of Samba specific management calls.

The LOCAL-IRPC torture test demonstrates how it can be used by calling
the echo_AddOne() call over this transport.
(This used to be commit 3d589a0995)
2007-10-10 13:17:37 -05:00
Andrew Bartlett
0384065235 r7293: Turn sqlite3 support off by default, use --with-sqlite3 to re-enable.
Andrew Bartlett
(This used to be commit 4225792154)
2007-10-10 13:17:37 -05:00
Andrew Bartlett
c88d65a862 r7292: Fix up the build system support for derrell's sqlite3 ldb backend.
It is on by default, so I've also fixed a build issue in it.  I'll
show how to make it off be default in the next commit.

Andrew Bartlett
(This used to be commit 5a1ef88810)
2007-10-10 13:17:37 -05:00
Derrell Lipman
06cc74a66c r7287: work in progress. no more time to work on this right now. save latest changes.
(This used to be commit 94cbef9211)
2007-10-10 13:17:36 -05:00
Derrell Lipman
1b454c430f r7286: add prototype for public connect function in ldb_sqlite3
(This used to be commit 10d438af06)
2007-10-10 13:17:36 -05:00
Derrell Lipman
f725863f75 r7283: add sqlite3.m4
(This used to be commit 10a828a442)
2007-10-10 13:17:36 -05:00
Derrell Lipman
217a8cfe66 r7282: ldb_sqlite3 work in progress.
(This used to be commit d934c42b00)
2007-10-10 13:17:36 -05:00
Derrell Lipman
150f127aa3 r7281: removing document
(This used to be commit 6867d56796)
2007-10-10 13:17:36 -05:00
Derrell Lipman
ec9bdca186 r7280: taking advantage of previous research. this is documentation on which latest schema is based
(This used to be commit 603faa9cab)
2007-10-10 13:17:35 -05:00
Derrell Lipman
a1ba224107 r7276: - moved static tdb function ltdb_dn_fold() into common/ so that it can be
called from multiple backends.  (ldb_sqlite3 needs it too.)  Added parameter
  for a callback function that determines whether an attribute needs case
  folding.
- begin to prepare for sqlite3 in build process
- work-in-progress updates, on ldb_sqlite3
(This used to be commit a80bced0b9)
2007-10-10 13:17:35 -05:00
Andrew Tridgell
89bcaa79c9 r7265: fixed d_printf() so it works again.
Jelmer, can you give me a hint as to why you changed this? It
completely broke smbclient, and the change now makes d_printf() almost
equivalent to printf() as you removed the language translation
code. See your commit 7166.

Did you intend to reenable language handling by some other method? Or
do you just mean to remove it completely?
(This used to be commit 2e293ab06f)
2007-10-10 13:17:33 -05:00
Derrell Lipman
6ade5fc245 r7260: save current schema before I blow it away to try something different
(This used to be commit 676a982493)
2007-10-10 13:17:33 -05:00
Jelmer Vernooij
77c3d463c8 r7248: Remove enum that is causing trouble on AIX
(This used to be commit 512536c916)
2007-10-10 13:17:31 -05:00
Simo Sorce
e331dcbc32 r7239: add a little test
(This used to be commit 9293de1c35)
2007-10-10 13:17:30 -05:00