sfrench/samba-autobuild/.git
16 years agor8749: for completeness, add rewinddir() and dirfd()
Andrew Tridgell [Mon, 25 Jul 2005 04:34:14 +0000 (04:34 +0000)]
r8749: for completeness, add rewinddir() and dirfd()

16 years agor8748: fixed build. Andrew, please check.
Andrew Tridgell [Mon, 25 Jul 2005 04:15:57 +0000 (04:15 +0000)]
r8748: fixed build. Andrew, please check.

16 years agor8747: remove unused code
Andrew Tridgell [Mon, 25 Jul 2005 04:03:22 +0000 (04:03 +0000)]
r8747: remove unused code

16 years agor8746: replace opendir/readdir/telldir/seekdir/closedir on systems where they
Andrew Tridgell [Mon, 25 Jul 2005 04:03:01 +0000 (04:03 +0000)]
r8746: replace opendir/readdir/telldir/seekdir/closedir on systems where they
are broken (apparently all BSD systems). This breakage leads to unlink
on files in an open directory causing a later seekdir to miss
files. The bug happens due to a block boundary bug in the BSD libc
implementation of these calls.

This replacement code also fixes a severe memory usage problem with
telldir that can cause closedir() to take an arbitrary amount of time.

I have reported the bug in readdir to Greg Lehey (a FreeBSD maintainer)

16 years agor8745: make ldap.js cleanup after itself
Andrew Tridgell [Mon, 25 Jul 2005 02:26:38 +0000 (02:26 +0000)]
r8745: make ldap.js cleanup after itself

16 years agor8744: Split 'net samdump' out into a separate file
Andrew Bartlett [Mon, 25 Jul 2005 02:23:41 +0000 (02:23 +0000)]
r8744: Split 'net samdump' out into a separate file

Work on the talloc memory tree, as I think talloc_reference and other
things were biting me.

Crush unions in the name of code reform. ;-)

Andrew Bartlett

16 years agor8743: automatically find the basedn in ldap.js
Andrew Tridgell [Mon, 25 Jul 2005 02:23:27 +0000 (02:23 +0000)]
r8743: automatically find the basedn in ldap.js

16 years agor8742: fixed handling of zero length names in mprObject()
Andrew Tridgell [Mon, 25 Jul 2005 02:23:04 +0000 (02:23 +0000)]
r8742: fixed handling of zero length names in mprObject()

16 years agor8741: Kill warnings about enums not fully enumerated, as we will never use
Andrew Bartlett [Mon, 25 Jul 2005 01:19:16 +0000 (01:19 +0000)]
r8741: Kill warnings about enums not fully enumerated, as we will never use
all the branches.

Andrew Bartlett

16 years agor8740: Extend the rdn_name module to handle adding the rdn as an attribute. ie:
Andrew Bartlett [Mon, 25 Jul 2005 01:17:09 +0000 (01:17 +0000)]
r8740: Extend the rdn_name module to handle adding the rdn as an attribute.  ie:

dn: cn=foo,ou=bar
objectClass: person

implies

dn: cn=foo,ou=bar
objectClass: person
cn: foo
(as well as a pile more default attributes)

We also correct the case in the attirbute to match that in the DN
(win2k3 behaviour) and I have a testsuite (in ejs) to prove it.

This module also found a bug in our provision.ldif, so and reduces
code complexity in the samdb module.

Andrew Bartlett

16 years agor8738: Test (using ejs!) the basic operation of the ldb modules.
Andrew Bartlett [Sun, 24 Jul 2005 22:18:01 +0000 (22:18 +0000)]
r8738: Test (using ejs!) the basic operation of the ldb modules.

ejs seems to test this stuff very nicely!

Andrew Bartlett

16 years agor8736: this fixes the ldb speed (raises BENCH-WINS from 15 ops/sec to over 4000)
Andrew Tridgell [Sun, 24 Jul 2005 12:38:42 +0000 (12:38 +0000)]
r8736: this fixes the ldb speed (raises BENCH-WINS from 15 ops/sec to over 4000)

simo, we need to be careful to cope with this sort of direct dn query efficiently

16 years agor8735: added NBT and WINS testing to 'make test' so we will know if it breaks again
Andrew Tridgell [Sun, 24 Jul 2005 12:24:34 +0000 (12:24 +0000)]
r8735: added NBT and WINS testing to 'make test' so we will know if it breaks again

16 years agor8734: fixed the wins server for the new ldb DN restrictions.
Andrew Tridgell [Sun, 24 Jul 2005 12:18:11 +0000 (12:18 +0000)]
r8734: fixed the wins server for the new ldb DN restrictions.

This gets it working, but I'm rather worried about the speed. We used
to get more than 5000 ops/sec, but now we are down to around 15
ops/sec. I suspect a bug in ldb.

16 years agor8729: make the RAW-SEARCH test more robust to servers with hash based directory...
Andrew Tridgell [Sun, 24 Jul 2005 01:01:00 +0000 (01:01 +0000)]
r8729: make the RAW-SEARCH test more robust to servers with hash based directory ordering

16 years agor8726: increase default session timeout to 15 minutes to be less painful for developers
Andrew Tridgell [Sat, 23 Jul 2005 11:11:37 +0000 (11:11 +0000)]
r8726: increase default session timeout to 15 minutes to be less painful for developers

16 years agor8725: redirect to the base install page not the provisioning page on first
Andrew Tridgell [Sat, 23 Jul 2005 11:05:32 +0000 (11:05 +0000)]
r8725: redirect to the base install page not the provisioning page on first
use

16 years agor8724: some boilerplate installation text
Andrew Tridgell [Sat, 23 Jul 2005 11:03:24 +0000 (11:03 +0000)]
r8724: some boilerplate installation text

16 years agor8723: fix esptest menu
Andrew Tridgell [Sat, 23 Jul 2005 10:59:05 +0000 (10:59 +0000)]
r8723: fix esptest menu

16 years agor8722: make the menu handling considerably saner and easier to follow. The whole
Andrew Tridgell [Sat, 23 Jul 2005 10:58:09 +0000 (10:58 +0000)]
r8722: make the menu handling considerably saner and easier to follow. The whole
menu hierarchy is now in /menu.js

16 years agor8721: Further work on libnet_rpc_usermod function. Now it can change
Rafal Szczesniak [Sat, 23 Jul 2005 10:27:45 +0000 (10:27 +0000)]
r8721: Further work on libnet_rpc_usermod function. Now it can change
both account name and full name.

rafal

16 years agor8720: split form object out to separate include file, and make it a real
Andrew Tridgell [Sat, 23 Jul 2005 09:05:34 +0000 (09:05 +0000)]
r8720: split form object out to separate include file, and make it a real
object, with a display() method

16 years agor8718: try to improve the 2 level menu a bit.
Andrew Tridgell [Sat, 23 Jul 2005 08:54:09 +0000 (08:54 +0000)]
r8718: try to improve the 2 level menu a bit.

Deryck, if you get a chance, could you see how to make this a little
"left and up" arrow instead of "Main Menu" ?

16 years agor8717: Add monitor message emiting in userdel and usermod calls.
Rafal Szczesniak [Fri, 22 Jul 2005 17:45:42 +0000 (17:45 +0000)]
r8717: Add monitor message emiting in userdel and usermod calls.

rafal

16 years agor8715: - revert the %PRIi64 stuff. Tim, we explicitly check for %llu support
Andrew Tridgell [Fri, 22 Jul 2005 11:32:01 +0000 (11:32 +0000)]
r8715: - revert the %PRIi64 stuff. Tim, we explicitly check for %llu support
  in configure, and replace snprintf if the system doesn't support
  it. Our replacement code does not handle the "%PRIi64" stuff, so
  using it would break us on lots of platforms

- fixed constant array initialisers to work on HPUX.

16 years agor8714: Oops - get it right this time!
Tim Potter [Fri, 22 Jul 2005 11:19:55 +0000 (11:19 +0000)]
r8714: Oops - get it right this time!

16 years agor8713: Experiment to try and fix warnings on 64-bit machines without breaking
Tim Potter [Fri, 22 Jul 2005 11:16:32 +0000 (11:16 +0000)]
r8713: Experiment to try and fix warnings on 64-bit machines without breaking
32-bit ones.  Yes, this weird looking macros are part of C99.

16 years agor8712: cleanup old search test code to use talloc
Andrew Tridgell [Fri, 22 Jul 2005 10:58:49 +0000 (10:58 +0000)]
r8712: cleanup old search test code to use talloc

16 years agor8711: add m4 for finding return type for signal handlers
Andrew Tridgell [Fri, 22 Jul 2005 10:48:22 +0000 (10:48 +0000)]
r8711: add m4 for finding return type for signal handlers

this patch brought to you by the continuing saga of HPUX portability

16 years agor8710: another attempt at fixing HPUX
Andrew Tridgell [Fri, 22 Jul 2005 10:01:26 +0000 (10:01 +0000)]
r8710: another attempt at fixing HPUX

16 years agor8709: fixed the assumption in RAW-SEARCH that directories are returned in sorted...
Andrew Tridgell [Fri, 22 Jul 2005 09:49:32 +0000 (09:49 +0000)]
r8709: fixed the assumption in RAW-SEARCH that directories are returned in sorted order

16 years agor8708: fixed an assert that abartlet found
Andrew Tridgell [Fri, 22 Jul 2005 07:21:59 +0000 (07:21 +0000)]
r8708: fixed an assert that abartlet found

16 years agor8707: this typedef isn't used, and breaks the build on HPUX, so I've removed it
Andrew Tridgell [Fri, 22 Jul 2005 06:52:46 +0000 (06:52 +0000)]
r8707: this typedef isn't used, and breaks the build on HPUX, so I've removed it

16 years agor8706: My previous patch oversimplied the previous change to session setup -
Andrew Bartlett [Fri, 22 Jul 2005 05:04:45 +0000 (05:04 +0000)]
r8706: My previous patch oversimplied the previous change to session setup -
we didn't cope with the 'anonymous NTLM under SPNEGO' login.

Andrew Bartlett

16 years agor8703: cope with null string in interpret_addr()
Andrew Tridgell [Fri, 22 Jul 2005 04:32:59 +0000 (04:32 +0000)]
r8703: cope with null string in interpret_addr()

16 years agor8702: fixed ntlm_auth build. Andrew, can you check I got this right?
Andrew Tridgell [Fri, 22 Jul 2005 04:30:11 +0000 (04:30 +0000)]
r8702: fixed ntlm_auth build. Andrew, can you check I got this right?

16 years agor8701: Fix up auth_developer for recent changes.
Andrew Bartlett [Fri, 22 Jul 2005 04:18:16 +0000 (04:18 +0000)]
r8701: Fix up auth_developer for recent changes.

Andrew Bartlett

16 years agor8700: Propmted by tridge's need to do plaintext auth in ejs, rework the
Andrew Bartlett [Fri, 22 Jul 2005 04:10:07 +0000 (04:10 +0000)]
r8700: Propmted by tridge's need to do plaintext auth in ejs, rework the
user_info strcture in auth/

This moves it to a pattern much like that found in ntvfs, with
functions to migrate between PAIN, HASH and RESPONSE passwords.

Instead of make_user_info*() functions, we simply fill in the control
block in the callers, per recent dicussions on the lists.  This
removed a lot of data copies as well as error paths, as we can grab
much of it with talloc.

Andrew Bartlett

16 years agor8699: removed invalid comment
Andrew Bartlett [Fri, 22 Jul 2005 04:06:28 +0000 (04:06 +0000)]
r8699: removed invalid comment

16 years agor8698: attempt to cope with lack of strtoull() on HPUX
Andrew Tridgell [Fri, 22 Jul 2005 03:46:57 +0000 (03:46 +0000)]
r8698: attempt to cope with lack of strtoull() on HPUX

16 years agor8696: fixed ejs to more strictly follow the va_list rules. Might fix that
Andrew Tridgell [Fri, 22 Jul 2005 01:56:51 +0000 (01:56 +0000)]
r8696: fixed ejs to more strictly follow the va_list rules. Might fix that
pesky panic on x86_64

16 years agor8693: Test code for usermod routine.
Rafal Szczesniak [Thu, 21 Jul 2005 22:33:47 +0000 (22:33 +0000)]
r8693: Test code for usermod routine.

rafal

16 years agor8692: Starting parts of code to provide user modify functionality.
Rafal Szczesniak [Thu, 21 Jul 2005 22:32:04 +0000 (22:32 +0000)]
r8692: Starting parts of code to provide user modify functionality.
It's more like a placeholder now, than a working code. Just don't
want to hang it around my laptop only.

rafal

16 years agor8690: Code cleanups, improvements necessary for dependencies (not added yet)
Jelmer Vernooij [Thu, 21 Jul 2005 21:27:39 +0000 (21:27 +0000)]
r8690: Code cleanups, improvements necessary for dependencies (not added yet)

16 years agor8685: an alpha in the build farm is dying with a floating point
Andrew Tridgell [Thu, 21 Jul 2005 14:04:13 +0000 (14:04 +0000)]
r8685: an alpha in the build farm is dying with a floating point
exception. Catch these in out fault handler, so we get a backtrace

16 years agor8684: this should fix the panic on x86_64, and possibly alpha
Andrew Tridgell [Thu, 21 Jul 2005 14:00:51 +0000 (14:00 +0000)]
r8684: this should fix the panic on x86_64, and possibly alpha

16 years agor8681: if SOCKET_WRAPPER_DIR starts with ./ then strip it internally. This saves...
Andrew Tridgell [Thu, 21 Jul 2005 13:45:07 +0000 (13:45 +0000)]
r8681: if SOCKET_WRAPPER_DIR starts with ./ then strip it internally. This saves us 2 more chars
in the name, which is enough to get IRIX 6.4 working

16 years agor8680: try harder to find the binary for gdb in the backtrace
Andrew Tridgell [Thu, 21 Jul 2005 12:35:00 +0000 (12:35 +0000)]
r8680: try harder to find the binary for gdb in the backtrace

16 years agor8679: only call fault setup once (thanks to andrew for pointing this out)
Andrew Tridgell [Thu, 21 Jul 2005 12:20:18 +0000 (12:20 +0000)]
r8679: only call fault setup once (thanks to andrew for pointing this out)

16 years agor8678: setup for gdb backtrace in 'make test'
Andrew Tridgell [Thu, 21 Jul 2005 12:11:52 +0000 (12:11 +0000)]
r8678: setup for gdb backtrace in 'make test'

16 years agor8677: The first part of the domain name may not be equal to the netbios domain name.
Andrew Bartlett [Thu, 21 Jul 2005 11:28:24 +0000 (11:28 +0000)]
r8677: The first part of the domain name may not be equal to the netbios domain name.

Remove the use of flatname from the main domain object, we no longer
reference it.

Andrew Bartlett

16 years agor8676: attribute lists in ldb searches must be NULL terminated
Andrew Tridgell [Thu, 21 Jul 2005 10:57:52 +0000 (10:57 +0000)]
r8676: attribute lists in ldb searches must be NULL terminated

this is what was causing the panic on the s390 box

16 years agor8674: With the rdn_name module, we don't need this duplication in the samdb
Andrew Bartlett [Thu, 21 Jul 2005 09:19:21 +0000 (09:19 +0000)]
r8674: With the rdn_name module, we don't need this duplication in the samdb
module any more.

Andrew Bartlett

16 years agor8671: use much shorter names for the selftest directory and socket wrapper
Andrew Tridgell [Thu, 21 Jul 2005 08:42:17 +0000 (08:42 +0000)]
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 :-(

16 years agor8670: Remove GUID code from SAMR, it is handled lower down now. I notice
Andrew Bartlett [Thu, 21 Jul 2005 08:34:54 +0000 (08:34 +0000)]
r8670: Remove GUID code from SAMR, it is handled lower down now.  I notice
this code also does string SIDs, but I'm not quite sure where that
fits in.

Andrew Bartlett

16 years agor8669: The objectguid module belongs in Samba's ldb module collection, not in
Andrew Bartlett [Thu, 21 Jul 2005 08:32:07 +0000 (08:32 +0000)]
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

16 years agor8668: fixed a segv during upgrade of a very old ldb.
Andrew Tridgell [Thu, 21 Jul 2005 08:06:39 +0000 (08:06 +0000)]
r8668: fixed a segv during upgrade of a very old ldb.
Thanks to volker for finding this one too. Keep them coming!

16 years agor8667: Further simply the provision script, by removing the 'name' attribute.
Andrew Bartlett [Thu, 21 Jul 2005 07:59:01 +0000 (07:59 +0000)]
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

16 years agor8666: The same fix as the last commit, I was caught out on a move from a
Andrew Bartlett [Thu, 21 Jul 2005 07:57:20 +0000 (07:57 +0000)]
r8666: The same fix as the last commit, I was caught out on a move from a
BOOL to int function return.

Andrew Bartlett

16 years agor8665: fixed a segv at high debug level in the web server
Andrew Tridgell [Thu, 21 Jul 2005 07:52:31 +0000 (07:52 +0000)]
r8665: fixed a segv at high debug level in the web server
thanks to volker for finding this

16 years agor8664: I got caught out not testing...
Andrew Bartlett [Thu, 21 Jul 2005 07:15:55 +0000 (07:15 +0000)]
r8664: I got caught out not testing...

I replaced these function calls, and they went from BOOL to int return
values, so naturally failed.

Andrew Bartlett

16 years agor8663: Since simo constructed the samdb module, he and tridge have worked on
Andrew Bartlett [Thu, 21 Jul 2005 05:24:02 +0000 (05:24 +0000)]
r8663: Since simo constructed the samdb module, he and tridge have worked on
a DN parsing system.  Leverage that in the dsdb module.

Andrew Bartlett

16 years agor8662: Revert change to CN=Cert Publishers, this group still needs to
Andrew Bartlett [Thu, 21 Jul 2005 05:21:27 +0000 (05:21 +0000)]
r8662: Revert change to CN=Cert Publishers, this group still needs to
override the template for these attributes.

Andrew Bartlett

16 years agor8661: added strstr() ejs function in string lib
Andrew Tridgell [Thu, 21 Jul 2005 04:10:35 +0000 (04:10 +0000)]
r8661: added strstr() ejs function in string lib

16 years agor8660: Use templates for the initial provision of user and computer accounts.
Andrew Bartlett [Thu, 21 Jul 2005 02:12:20 +0000 (02:12 +0000)]
r8660: Use templates for the initial provision of user and computer accounts.

This ensures the templating code is used, and also makes it clearer
what I need to duplicate in the vampire area.

Also fix a silly bug in the template application code (the samdb
module) that caused templates to be compleatly unused (my fault, from
my commit last night).

Andrew Bartlett

16 years agor8659: return ldif formatted attributes in the ejs ldb search call, so sids show...
Andrew Tridgell [Thu, 21 Jul 2005 01:56:22 +0000 (01:56 +0000)]
r8659: return ldif formatted attributes in the ejs ldb search call, so sids show up as strings
not binary blobs

16 years agor8658: move use of lp_security() and lp_nt_status_support() into the connection struc...
Andrew Tridgell [Thu, 21 Jul 2005 01:43:26 +0000 (01:43 +0000)]
r8658: move use of lp_security() and lp_nt_status_support() into the connection structure.
This massively reduces the number of lp_*() calls made

16 years agor8652: added a test for the boolean bug just fixed
Andrew Tridgell [Wed, 20 Jul 2005 11:56:07 +0000 (11:56 +0000)]
r8652: added a test for the boolean bug just fixed

16 years agor8651: fixed a boolean expression bug (submitted upstream)
Andrew Tridgell [Wed, 20 Jul 2005 11:55:20 +0000 (11:55 +0000)]
r8651: fixed a boolean expression bug (submitted upstream)

16 years agor8650: Use the timestamps and a new objectguid module rather than placing
Andrew Bartlett [Wed, 20 Jul 2005 11:43:23 +0000 (11:43 +0000)]
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

16 years agor8649: added smbscript to the list of binaries to install
Andrew Tridgell [Wed, 20 Jul 2005 11:30:45 +0000 (11:30 +0000)]
r8649: added smbscript to the list of binaries to install

16 years agor8648: automatically redirect to provisioning if not yet provisioned when the
Andrew Tridgell [Wed, 20 Jul 2005 11:26:17 +0000 (11:26 +0000)]
r8648: automatically redirect to provisioning if not yet provisioned when the
home page in swat is accessed

16 years agor8647: no diffrences between the heimdal and no heimdal case when building
Love Hörnquist Åstrand [Wed, 20 Jul 2005 11:18:52 +0000 (11:18 +0000)]
r8647: no diffrences between the heimdal and no heimdal case when building

16 years agor8646: update install howto for new provision code
Andrew Tridgell [Wed, 20 Jul 2005 11:15:52 +0000 (11:15 +0000)]
r8646: update install howto for new provision code

16 years agor8645: updated the ldb esp test for the new ldb ejs syntax
Andrew Tridgell [Wed, 20 Jul 2005 11:13:11 +0000 (11:13 +0000)]
r8645: updated the ldb esp test for the new ldb ejs syntax

simo, when changing ejs syntax, please grep -r through the *.js and *.esp files to
fix all the callers. Thanks :)

16 years agor8644: This is a more useful error than unsuccesful.
Andrew Bartlett [Wed, 20 Jul 2005 10:54:50 +0000 (10:54 +0000)]
r8644: This is a more useful error than unsuccesful.

Andrew Bartlett

16 years agor8643: - make lp_configfile() work again
Andrew Tridgell [Wed, 20 Jul 2005 10:07:48 +0000 (10:07 +0000)]
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

16 years agor8642: - fixed install of new swat files
Andrew Tridgell [Wed, 20 Jul 2005 08:39:53 +0000 (08:39 +0000)]
r8642: - fixed install of new swat files

- removed old provisioning items from esptest menu

16 years agor8640: continue the trend by moving the ejs random calls into an object
Andrew Tridgell [Wed, 20 Jul 2005 07:29:23 +0000 (07:29 +0000)]
r8640: continue the trend by moving the ejs random calls into an object

16 years agor8639: moved loadparm calls into an ejs object
Andrew Tridgell [Wed, 20 Jul 2005 07:20:03 +0000 (07:20 +0000)]
r8639: moved loadparm calls into an ejs object

16 years agor8638: continue the trend of maknig our C functions true ejs objects by making the...
Andrew Tridgell [Wed, 20 Jul 2005 07:04:07 +0000 (07:04 +0000)]
r8638: continue the trend of maknig our C functions true ejs objects by making the string functions
into an object. To keep existing code working I have added:

  string_init(global);

into base.js. That brings the functions into the global scope for our
existing scripts

16 years agor8637: added sys.stat() and sys.lstat() calls
Andrew Tridgell [Wed, 20 Jul 2005 07:01:09 +0000 (07:01 +0000)]
r8637: added sys.stat() and sys.lstat() calls

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.