samba.git
16 years agor8636: fixed the ejs ldb test to work with the new ldb.search() syntax, and
Andrew Tridgell [Wed, 20 Jul 2005 06:21:30 +0000 (06:21 +0000)]
r8636: fixed the ejs ldb test to work with the new ldb.search() syntax, and
add it to our test suite so it will be maintained

16 years agor8635: make object inheritance with the builtin objects easy by allowing
Andrew Tridgell [Wed, 20 Jul 2005 06:20:36 +0000 (06:20 +0000)]
r8635: make object inheritance with the builtin objects easy by allowing
callers to optionally supply an existing object to add the properties
to. So you can do:

 var rpc = samr_init();
 lsa_init(rpc);

and you end up with 'rpc' having both the samr and lsa functions and
constants available.

16 years agor8634: we are still getting occasional test failures due to disk space
Andrew Tridgell [Wed, 20 Jul 2005 05:49:49 +0000 (05:49 +0000)]
r8634: we are still getting occasional test failures due to disk space
changing. I suspect it is a signed/unsigned problem with the approx
equal test. Hopefully this will fix it.

16 years agor8633: check for valid input to ejs_userAuth()
Andrew Tridgell [Wed, 20 Jul 2005 05:41:29 +0000 (05:41 +0000)]
r8633: check for valid input to ejs_userAuth()

16 years agor8632: use <pre> around displayed exceptions
Andrew Tridgell [Wed, 20 Jul 2005 05:40:51 +0000 (05:40 +0000)]
r8632: use <pre> around displayed exceptions

16 years agor8631: give an error on incorrect argument count
Andrew Tridgell [Wed, 20 Jul 2005 05:40:24 +0000 (05:40 +0000)]
r8631: give an error on incorrect argument count

16 years agor8630: give a much nicer backtrace on assert() failures in ejs
Andrew Tridgell [Wed, 20 Jul 2005 05:13:01 +0000 (05:13 +0000)]
r8630: give a much nicer backtrace on assert() failures in ejs

I will submit this upstream

16 years agor8629: - moved the getDomainList() call out of smbcalls_auth.c and into libjs/auth.js
Andrew Tridgell [Wed, 20 Jul 2005 04:27:09 +0000 (04:27 +0000)]
r8629: - moved the getDomainList() call out of smbcalls_auth.c and into libjs/auth.js

- tried to make the ejs_userAuth() call work for the sam, not just for
  unix auth. I didn't get this working. Andrew, when you get a chance
  can you see what I'm doing wrong? I suspect its because we aren't
  supplying a challenge, but a challenge doesn't really make sense in a
  'is this username/password' correct call.

16 years agor8628: add retries to the normal paths of nbt name resolution. UDP broadcasts are...
Andrew Tridgell [Wed, 20 Jul 2005 04:21:10 +0000 (04:21 +0000)]
r8628: add retries to the normal paths of nbt name resolution. UDP broadcasts are not 100% reliable :)

16 years agor8627: fixed a big memory leak in the spnego gensec code in session
Andrew Tridgell [Wed, 20 Jul 2005 04:19:45 +0000 (04:19 +0000)]
r8627: fixed a big memory leak in the spnego gensec code in session
setup. Andrew, please check over this.

What happens is this:

 - run the BASE-SECLEAK test
 - with each failed session setup using spnego a gensec ctx is leaked into the smb_conn structure
 - after the client disconnects these are finally cleaned up as they
   are all children of the connection structure
 - the cleanup of the millions of memory objects takes long enough
   that the next operation in test_posix.sh sometimes fails with a timeout

Andrew, can you also look at the talloc_reference() on line 332 of
sesssetup.c ? I suspect it isn't needed (I don't think it does any
actual harm though)

16 years agor8626: fixed a typo
Andrew Tridgell [Wed, 20 Jul 2005 02:15:43 +0000 (02:15 +0000)]
r8626: fixed a typo

16 years agor8625: move the ldb_wrap logic into the ldb code. This logic is meant to
Andrew Tridgell [Wed, 20 Jul 2005 00:59:38 +0000 (00:59 +0000)]
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

16 years agor8624: removed valgrind comment on tdb that no longer applies
Andrew Tridgell [Wed, 20 Jul 2005 00:09:23 +0000 (00:09 +0000)]
r8624: removed valgrind comment on tdb that no longer applies

16 years agor8623: Fix warnings in ODL-generated code.
Jelmer Vernooij [Tue, 19 Jul 2005 23:53:48 +0000 (23:53 +0000)]
r8623: Fix warnings in ODL-generated code.

16 years agor8622: Support parsing new structs/unions/enums/bitmaps without typedef in
Jelmer Vernooij [Tue, 19 Jul 2005 23:34:02 +0000 (23:34 +0000)]
r8622: Support parsing new structs/unions/enums/bitmaps without typedef in

16 years agor8621: Simplify code. Add support for nested structures back into the header generator.
Jelmer Vernooij [Tue, 19 Jul 2005 23:02:08 +0000 (23:02 +0000)]
r8621: Simplify code. Add support for nested structures back into the header generator.

16 years agor8614: Add COMRESULT/HRESULT scalar type
Jelmer Vernooij [Tue, 19 Jul 2005 19:21:40 +0000 (19:21 +0000)]
r8614: Add COMRESULT/HRESULT scalar type

16 years agor8613: Remove a couple of empty loops.
Jelmer Vernooij [Tue, 19 Jul 2005 19:04:54 +0000 (19:04 +0000)]
r8613: Remove a couple of empty loops.

16 years agor8612: Parse::Pidl::NDR:
Jelmer Vernooij [Tue, 19 Jul 2005 19:00:22 +0000 (19:00 +0000)]
r8612: Parse::Pidl::NDR:
Values that are deferred but don't contain deferred data don't
need NDR_BUFFERS

Parse::Pidl::Samba::NDR::Parser:
Only use manually written array access functions when the array
functions are faster then the autogenerated ones. Makes ndr_basic.c
a bit shorter.

16 years agor8603: we have to use the same db name as the rest of smbd uses so the ldb connect
Andrew Tridgell [Tue, 19 Jul 2005 11:55:35 +0000 (11:55 +0000)]
r8603: we have to use the same db name as the rest of smbd uses so the ldb connect
works when already open

16 years agor8602: allow options in ldb connect calls
Andrew Tridgell [Tue, 19 Jul 2005 11:54:33 +0000 (11:54 +0000)]
r8602: allow options in ldb connect calls

16 years agor8601: fixed null termination in ltdb connect error
Andrew Tridgell [Tue, 19 Jul 2005 11:54:00 +0000 (11:54 +0000)]
r8601: fixed null termination in ltdb connect error

16 years agor8600: fixed null termination on some error messages in ldb
Andrew Tridgell [Tue, 19 Jul 2005 11:53:25 +0000 (11:53 +0000)]
r8600: fixed null termination on some error messages in ldb

16 years agor8599: null terminate the argv list in string C functions
Andrew Tridgell [Tue, 19 Jul 2005 11:52:50 +0000 (11:52 +0000)]
r8599: null terminate the argv list in string C functions

16 years agor8598: move provisioning to /install/ directory from /esptest/
Andrew Tridgell [Tue, 19 Jul 2005 11:06:12 +0000 (11:06 +0000)]
r8598: move provisioning to /install/ directory from /esptest/

16 years agor8594: more placeholder pages for server status
Andrew Tridgell [Tue, 19 Jul 2005 09:44:55 +0000 (09:44 +0000)]
r8594: more placeholder pages for server status

16 years agor8593: register the rpc server with irpc
Andrew Tridgell [Tue, 19 Jul 2005 09:44:11 +0000 (09:44 +0000)]
r8593: register the rpc server with irpc

16 years agor8591: - added a simple 2 level menu structure to swat. Deryck, I know this
Andrew Tridgell [Tue, 19 Jul 2005 09:34:11 +0000 (09:34 +0000)]
r8591: - added a simple 2 level menu structure to swat. Deryck, I know this
  isn't very pretty, and please feel free to do this much more nicely
  :-)

- added a top level menu listing our main servers

- added placeholder pages for the main servers

- added NBT server statistics

16 years agor8590: added server status utility functions for checking on the status of a task...
Andrew Tridgell [Tue, 19 Jul 2005 09:30:53 +0000 (09:30 +0000)]
r8590: added server status utility functions for checking on the status of a task via irpc

- for stream tasks, returns the number of connections

- for non-stream tasks, returns "RUNNING"

For both, return "DISABLED" or "NOT RESPONDING" appropriately

16 years agor8589: - support --version option to smbstatus
Andrew Tridgell [Tue, 19 Jul 2005 09:29:30 +0000 (09:29 +0000)]
r8589: - support --version option to smbstatus

- print samba version at startup

16 years agor8588: register wins server with irpc
Andrew Tridgell [Tue, 19 Jul 2005 09:28:46 +0000 (09:28 +0000)]
r8588: register wins server with irpc

16 years agor8587: - fixed ref allocation in irpc replies
Andrew Tridgell [Tue, 19 Jul 2005 09:28:13 +0000 (09:28 +0000)]
r8587: - fixed ref allocation in irpc replies

- make every irpc server support the irpc_uptime() call

16 years agor8586: register the kdc with irpc so we can tell that it is up
Andrew Tridgell [Tue, 19 Jul 2005 09:27:20 +0000 (09:27 +0000)]
r8586: register the kdc with irpc so we can tell that it is up

16 years agor8585: add to ldb and ldap comparison functionality
Simo Sorce [Tue, 19 Jul 2005 09:09:00 +0000 (09:09 +0000)]
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

16 years agor8584: added --nbt option to smbstatus for nbt server statistics
Andrew Tridgell [Tue, 19 Jul 2005 06:18:48 +0000 (06:18 +0000)]
r8584: added --nbt option to smbstatus for nbt server statistics

16 years agor8583: nicer smbstatus output
Andrew Tridgell [Tue, 19 Jul 2005 06:08:06 +0000 (06:08 +0000)]
r8583: nicer smbstatus output

16 years agor8582: added sys.httptime() call, to display a NTTIME as a http time string
Andrew Tridgell [Tue, 19 Jul 2005 06:07:34 +0000 (06:07 +0000)]
r8582: added sys.httptime() call, to display a NTTIME as a http time string

16 years agor8581: fixed handling of 64 bit integers in rpc calls from ejs
Andrew Tridgell [Tue, 19 Jul 2005 06:07:10 +0000 (06:07 +0000)]
r8581: fixed handling of 64 bit integers in rpc calls from ejs

16 years agor8580: try to fix the build on stratus
Andrew Tridgell [Tue, 19 Jul 2005 05:35:19 +0000 (05:35 +0000)]
r8580: try to fix the build on stratus

16 years agor8579: recognise the name 'localhost' as 127.0.0.1. This solves a problem
Andrew Tridgell [Tue, 19 Jul 2005 05:09:36 +0000 (05:09 +0000)]
r8579: recognise the name 'localhost' as 127.0.0.1. This solves a problem
with some hosts that are missing localhost from /etc/hosts

16 years agor8578: Fix overlapping sections in SWAT.
Deryck Hodge [Tue, 19 Jul 2005 04:40:11 +0000 (04:40 +0000)]
r8578: Fix overlapping sections in SWAT.

deryck

16 years agor8577: added management calls to list current tree connects
Andrew Tridgell [Tue, 19 Jul 2005 04:26:58 +0000 (04:26 +0000)]
r8577: added management calls to list current tree connects

16 years agor8576: install scripts from scripting/bin/
Andrew Tridgell [Tue, 19 Jul 2005 04:02:59 +0000 (04:02 +0000)]
r8576: install scripts from scripting/bin/

16 years agor8575: the beginnings of a smbstatus command
Andrew Tridgell [Tue, 19 Jul 2005 03:59:25 +0000 (03:59 +0000)]
r8575: the beginnings of a smbstatus command

16 years agor8574: added server side irpc calls for listing the current sessions
Andrew Tridgell [Tue, 19 Jul 2005 03:58:44 +0000 (03:58 +0000)]
r8574: added server side irpc calls for listing the current sessions

16 years agor8570: delete all records in the old db when provisioning, rather than using
Andrew Tridgell [Tue, 19 Jul 2005 02:10:08 +0000 (02:10 +0000)]
r8570: delete all records in the old db when provisioning, rather than using
sys.unlink(). This allows smbd to see the new db without restarting.

16 years agor8569: delete is a js reserved word, so use del instead
Andrew Tridgell [Tue, 19 Jul 2005 02:09:05 +0000 (02:09 +0000)]
r8569: delete is a js reserved word, so use del instead

16 years agor8568: change missing templates to warnings, so that provisioning with an existing db
Andrew Tridgell [Tue, 19 Jul 2005 02:08:38 +0000 (02:08 +0000)]
r8568: change missing templates to warnings, so that provisioning with an existing db
doesn't print lots of fatal errors

16 years agor8567: fixed the build after the com idl changes
Andrew Tridgell [Tue, 19 Jul 2005 01:33:38 +0000 (01:33 +0000)]
r8567: fixed the build after the com idl changes

Jelmer, can you please check that I got this right?

16 years agor8566: Couple of code cleanups
Jelmer Vernooij [Tue, 19 Jul 2005 01:17:48 +0000 (01:17 +0000)]
r8566: Couple of code cleanups

16 years agor8565: put the docs menu on the right
Andrew Tridgell [Tue, 19 Jul 2005 01:06:56 +0000 (01:06 +0000)]
r8565: put the docs menu on the right

16 years agor8562: small merge with upstream
Andrew Tridgell [Tue, 19 Jul 2005 00:40:52 +0000 (00:40 +0000)]
r8562: small merge with upstream

16 years agor8561: as with the other ejs subsystems, make nss into a object
Andrew Tridgell [Tue, 19 Jul 2005 00:16:43 +0000 (00:16 +0000)]
r8561: as with the other ejs subsystems, make nss into a object

16 years agor8560: added a newuser page in swat
Andrew Tridgell [Tue, 19 Jul 2005 00:08:00 +0000 (00:08 +0000)]
r8560: added a newuser page in swat

16 years agor8559: Couple of (D)COM updates:
Jelmer Vernooij [Mon, 18 Jul 2005 23:58:59 +0000 (23:58 +0000)]
r8559: Couple of (D)COM updates:
 - Fixes annoying array-of-pointers bug in pidl.
 - No longer "inherit" alignment thru subcontexts
 - Use "Image Object" as example DCOM object, rather then the "My Computer" object, which is built-in and can't be accessed remotely as far as I can see

16 years agor8558: move newuser logic into the provision.js lib
Andrew Tridgell [Mon, 18 Jul 2005 23:58:18 +0000 (23:58 +0000)]
r8558: move newuser logic into the provision.js lib

16 years agor8557: expose ldb_errstring() in ldb ejs code
Andrew Tridgell [Mon, 18 Jul 2005 23:57:37 +0000 (23:57 +0000)]
r8557: expose ldb_errstring() in ldb ejs code

16 years agor8541: this might take a few tries ...
Andrew Tridgell [Mon, 18 Jul 2005 10:01:58 +0000 (10:01 +0000)]
r8541: this might take a few tries ...

16 years agor8540: fixed network interface detection on several hosts
Andrew Tridgell [Mon, 18 Jul 2005 09:46:52 +0000 (09:46 +0000)]
r8540: fixed network interface detection on several hosts

16 years agor8539: $LOGNAME is a common varient of $USER on some systems
Andrew Tridgell [Mon, 18 Jul 2005 08:30:32 +0000 (08:30 +0000)]
r8539: $LOGNAME is a common varient of $USER on some systems

16 years agor8537: cope better with the small file handle limit on some systems in the build...
Andrew Tridgell [Mon, 18 Jul 2005 06:26:03 +0000 (06:26 +0000)]
r8537: cope better with the small file handle limit on some systems in the build farm

16 years agor8536: - use smbd pid file to kill at end of selftest
Andrew Tridgell [Mon, 18 Jul 2005 05:15:22 +0000 (05:15 +0000)]
r8536: - use smbd pid file to kill at end of selftest

- remove use of 'jobs -p' as it is not portable

16 years agor8535: no longer rely on seekdir working after a closedir. Instead, keep
Andrew Tridgell [Mon, 18 Jul 2005 03:35:52 +0000 (03:35 +0000)]
r8535: no longer rely on seekdir working after a closedir. Instead, keep
directories open, but close search states based on an inactivity
timer, with a default of a 5 minute timeout

16 years agor8533: improve --help output
Andrew Tridgell [Mon, 18 Jul 2005 00:08:46 +0000 (00:08 +0000)]
r8533: improve --help output

16 years agor8532: this miight fix cross compilation for reactos
Andrew Tridgell [Mon, 18 Jul 2005 00:06:12 +0000 (00:06 +0000)]
r8532: this miight fix cross compilation for reactos

16 years agor8530: Now our ldap server is able to fullfill present and substring searches
Simo Sorce [Sun, 17 Jul 2005 14:16:41 +0000 (14:16 +0000)]
r8530: Now our ldap server is able to fullfill present and substring searches

16 years agor8529: Matching against the wrong union
Simo Sorce [Sun, 17 Jul 2005 14:15:45 +0000 (14:15 +0000)]
r8529: Matching against the wrong union

16 years agor8527: found an uninitialised variable in 'make valgrindtest'
Andrew Tridgell [Sun, 17 Jul 2005 12:57:14 +0000 (12:57 +0000)]
r8527: found an uninitialised variable in 'make valgrindtest'

16 years agor8525: added two more test targets:
Andrew Tridgell [Sun, 17 Jul 2005 12:23:40 +0000 (12:23 +0000)]
r8525: added two more test targets:

 - 'make quicktest' for running only quick tests. Finishes in 20
   seconds or so.

 - 'make valgrindtest' runs smbd under valgrind in a xterm window and
   runs the quick tests. Also disables tls as that slows down valgrind
   too much to be usable

16 years agor8523: match a zero message id in ldap replies to the last request sent. Thanks to...
Andrew Tridgell [Sun, 17 Jul 2005 10:52:31 +0000 (10:52 +0000)]
r8523: match a zero message id in ldap replies to the last request sent. Thanks to simo
for noticing that this is needed to catch the server sending a "can't decode request"
error reply

16 years agor8522: fixed another couple of size_t warnings
Andrew Tridgell [Sun, 17 Jul 2005 10:38:59 +0000 (10:38 +0000)]
r8522: fixed another couple of size_t warnings

16 years agor8520: fixed a pile of warnings from the build farm gcc -Wall output on
Andrew Tridgell [Sun, 17 Jul 2005 09:20:52 +0000 (09:20 +0000)]
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

16 years agor8519: better method of ensuring null termination
Andrew Tridgell [Sun, 17 Jul 2005 09:13:05 +0000 (09:13 +0000)]
r8519: better method of ensuring null termination

16 years agor8518: ensure all constructed NDR packets are null terminated. This is needed
Andrew Tridgell [Sun, 17 Jul 2005 09:08:19 +0000 (09:08 +0000)]
r8518: ensure all constructed NDR packets are null terminated. This is needed
by the new ldb code dealing with binary records, but is also a good
defensive strategy in general

16 years agor8517: fixed a crash bug in ldb_dn_compare_base()
Andrew Tridgell [Sun, 17 Jul 2005 09:06:58 +0000 (09:06 +0000)]
r8517: fixed a crash bug in ldb_dn_compare_base()

16 years agor8516: let us use all parameters of ldbsearch in ldb.search
Simo Sorce [Sat, 16 Jul 2005 18:17:08 +0000 (18:17 +0000)]
r8516: let us use all parameters of ldbsearch in ldb.search

16 years agor8515: ldb_dn_cmp now uses ldb_dn_compare so that the DNs are compared
Simo Sorce [Sat, 16 Jul 2005 18:16:32 +0000 (18:16 +0000)]
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)

16 years agor8514: add docs
Simo Sorce [Sat, 16 Jul 2005 16:12:14 +0000 (16:12 +0000)]
r8514: add docs

16 years agor8511: This 'can't happen', but GCC gives warnings because it thinks it can.
Andrew Bartlett [Sat, 16 Jul 2005 01:02:17 +0000 (01:02 +0000)]
r8511: This 'can't happen', but GCC gives warnings because it thinks it can.

Andrew Bartlett

16 years agor8505: - 'seal' and 'sign,seal' is the same
Stefan Metzmacher [Fri, 15 Jul 2005 15:17:35 +0000 (15:17 +0000)]
r8505: - 'seal' and 'sign,seal' is the same

- sign and seal are tested seperate below

metze

16 years agor8504: Temporary fix to #content width/height just to
Deryck Hodge [Fri, 15 Jul 2005 14:57:12 +0000 (14:57 +0000)]
r8504: Temporary fix to #content width/height just to
pretty up things while I work.

deryck

16 years agor8503: remove useless line
Stefan Metzmacher [Fri, 15 Jul 2005 14:36:02 +0000 (14:36 +0000)]
r8503: remove useless line

metze

16 years agor8500: greatly reduce the number of build warnings on x86-64 (every NDR macro
Andrew Tridgell [Fri, 15 Jul 2005 13:25:56 +0000 (13:25 +0000)]
r8500: greatly reduce the number of build warnings on x86-64 (every NDR macro
in the generated code from pidl generated a warning)

16 years agor8499: clearer function name
Simo Sorce [Fri, 15 Jul 2005 13:19:16 +0000 (13:19 +0000)]
r8499: clearer function name

16 years agor8498: more test suite speedups. It's down to 5 minutes on my box now
Andrew Tridgell [Fri, 15 Jul 2005 13:12:24 +0000 (13:12 +0000)]
r8498: more test suite speedups. It's down to 5 minutes on my box now

16 years agor8497: prevent a fd leak in RAW-SEARCH test
Andrew Tridgell [Fri, 15 Jul 2005 12:58:09 +0000 (12:58 +0000)]
r8497: prevent a fd leak in RAW-SEARCH test

16 years agor8496: speed up the test_echo.sh test a lot, while still providing good coverage
Andrew Tridgell [Fri, 15 Jul 2005 12:54:55 +0000 (12:54 +0000)]
r8496: speed up the test_echo.sh test a lot, while still providing good coverage

16 years agor8495: allow for up 10% change in allocated disk space during QFSINFO tests
Andrew Tridgell [Fri, 15 Jul 2005 12:25:08 +0000 (12:25 +0000)]
r8495: allow for up 10% change in allocated disk space during QFSINFO tests

16 years agor8494: fixed a bug in RAW-SFILEINFO that caused inconsistent results on different...
Andrew Tridgell [Fri, 15 Jul 2005 12:16:39 +0000 (12:16 +0000)]
r8494: fixed a bug in RAW-SFILEINFO that caused inconsistent results on different platforms

16 years agor8491: lower the offset limit that filesystems need to support to pass RAW-WRITE...
Andrew Tridgell [Fri, 15 Jul 2005 11:32:08 +0000 (11:32 +0000)]
r8491: lower the offset limit that filesystems need to support to pass RAW-WRITE to 2^33

16 years agor8490: make the ldb tests more portable
Andrew Tridgell [Fri, 15 Jul 2005 11:27:32 +0000 (11:27 +0000)]
r8490: make the ldb tests more portable

16 years agor8489: neaten up the object handling
Andrew Tridgell [Fri, 15 Jul 2005 11:23:17 +0000 (11:23 +0000)]
r8489: neaten up the object handling

16 years agor8488: after discussions with simo, moved to a full OO interface, so you don't need...
Andrew Tridgell [Fri, 15 Jul 2005 11:10:38 +0000 (11:10 +0000)]
r8488: after discussions with simo, moved to a full OO interface, so you don't need to keep
a 'db' variable around. The ldb object knows what it is connected to.

Added a simple ldb testsuite in testprogs/ldb.js

16 years agor8487: kfixed a typo
Andrew Tridgell [Fri, 15 Jul 2005 09:25:57 +0000 (09:25 +0000)]
r8487: kfixed a typo

16 years agor8486: switched to a separate connection operation in ldb interface
Andrew Tridgell [Fri, 15 Jul 2005 09:23:23 +0000 (09:23 +0000)]
r8486: switched to a separate connection operation in ldb interface
(a suggestion from simo)

16 years agor8485: - be friendly to shells other than bash
Andrew Tridgell [Fri, 15 Jul 2005 08:10:34 +0000 (08:10 +0000)]
r8485: - be friendly to shells other than bash

- don't use /tmp in test paths, as that opens us to symlink attacks

16 years agor8484: switched the sys_*() calls to the OO interface
Andrew Tridgell [Fri, 15 Jul 2005 07:45:40 +0000 (07:45 +0000)]
r8484: switched the sys_*() calls to the OO interface

tim, do you want to do the cli_*() calls now?

16 years agor8483: switched our generated ejs rpc code over to the new OO interface. This
Andrew Tridgell [Fri, 15 Jul 2005 07:18:23 +0000 (07:18 +0000)]
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

16 years agor8482: gnutls_x509_crt_set_subject_key_id is not available in some versions
Andrew Tridgell [Fri, 15 Jul 2005 07:00:12 +0000 (07:00 +0000)]
r8482: gnutls_x509_crt_set_subject_key_id is not available in some versions
of gnutls. Thanks to ab for spotting this.

16 years agor8481: switched ldb ejs called over to an OO interface, so you do:
Andrew Tridgell [Fri, 15 Jul 2005 05:40:34 +0000 (05:40 +0000)]
r8481: switched ldb ejs called over to an OO interface, so you do:

var ldb = ldb_init();

res = ldb.search(dbfile, "(objectClass=user)");

you can also do:

ldbSearch = ldb.search;
res = ldbSearch(dbfile, "(objectClass=user)");

if you want the old interface (ie. you can use this to import
functions into the global or local namespace).