Andrew Tridgell [Mon, 25 Jul 2005 04:34:14 +0000 (04:34 +0000)]
r8749: for completeness, add rewinddir() and dirfd()
Andrew Tridgell [Mon, 25 Jul 2005 04:15:57 +0000 (04:15 +0000)]
r8748: fixed build. Andrew, please check.
Andrew Tridgell [Mon, 25 Jul 2005 04:03:22 +0000 (04:03 +0000)]
r8747: remove unused code
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)
Andrew Tridgell [Mon, 25 Jul 2005 02:26:38 +0000 (02:26 +0000)]
r8745: make ldap.js cleanup after itself
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
Andrew Tridgell [Mon, 25 Jul 2005 02:23:27 +0000 (02:23 +0000)]
r8743: automatically find the basedn in ldap.js
Andrew Tridgell [Mon, 25 Jul 2005 02:23:04 +0000 (02:23 +0000)]
r8742: fixed handling of zero length names in mprObject()
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
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
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
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
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
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.
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
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
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
Andrew Tridgell [Sat, 23 Jul 2005 11:03:24 +0000 (11:03 +0000)]
r8724: some boilerplate installation text
Andrew Tridgell [Sat, 23 Jul 2005 10:59:05 +0000 (10:59 +0000)]
r8723: fix esptest menu
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
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
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
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" ?
Rafal Szczesniak [Fri, 22 Jul 2005 17:45:42 +0000 (17:45 +0000)]
r8717: Add monitor message emiting in userdel and usermod calls.
rafal
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.
Tim Potter [Fri, 22 Jul 2005 11:19:55 +0000 (11:19 +0000)]
r8714: Oops - get it right this time!
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.
Andrew Tridgell [Fri, 22 Jul 2005 10:58:49 +0000 (10:58 +0000)]
r8712: cleanup old search test code to use talloc
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
Andrew Tridgell [Fri, 22 Jul 2005 10:01:26 +0000 (10:01 +0000)]
r8710: another attempt at fixing HPUX
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
Andrew Tridgell [Fri, 22 Jul 2005 07:21:59 +0000 (07:21 +0000)]
r8708: fixed an assert that abartlet found
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
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
Andrew Tridgell [Fri, 22 Jul 2005 04:32:59 +0000 (04:32 +0000)]
r8703: cope with null string in interpret_addr()
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?
Andrew Bartlett [Fri, 22 Jul 2005 04:18:16 +0000 (04:18 +0000)]
r8701: Fix up auth_developer for recent changes.
Andrew Bartlett
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
Andrew Bartlett [Fri, 22 Jul 2005 04:06:28 +0000 (04:06 +0000)]
r8699: removed invalid comment
Andrew Tridgell [Fri, 22 Jul 2005 03:46:57 +0000 (03:46 +0000)]
r8698: attempt to cope with lack of strtoull() on HPUX
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
Rafal Szczesniak [Thu, 21 Jul 2005 22:33:47 +0000 (22:33 +0000)]
r8693: Test code for usermod routine.
rafal
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
Jelmer Vernooij [Thu, 21 Jul 2005 21:27:39 +0000 (21:27 +0000)]
r8690: Code cleanups, improvements necessary for dependencies (not added yet)
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
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
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
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
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)
Andrew Tridgell [Thu, 21 Jul 2005 12:11:52 +0000 (12:11 +0000)]
r8678: setup for gdb backtrace in 'make test'
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
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
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
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 :-(
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
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
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!
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
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
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
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
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
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
Andrew Tridgell [Thu, 21 Jul 2005 04:10:35 +0000 (04:10 +0000)]
r8661: added strstr() ejs function in string lib
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
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
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
Andrew Tridgell [Wed, 20 Jul 2005 11:56:07 +0000 (11:56 +0000)]
r8652: added a test for the boolean bug just fixed
Andrew Tridgell [Wed, 20 Jul 2005 11:55:20 +0000 (11:55 +0000)]
r8651: fixed a boolean expression bug (submitted upstream)
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
Andrew Tridgell [Wed, 20 Jul 2005 11:30:45 +0000 (11:30 +0000)]
r8649: added smbscript to the list of binaries to install
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
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
Andrew Tridgell [Wed, 20 Jul 2005 11:15:52 +0000 (11:15 +0000)]
r8646: update install howto for new provision code
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 :)
Andrew Bartlett [Wed, 20 Jul 2005 10:54:50 +0000 (10:54 +0000)]
r8644: This is a more useful error than unsuccesful.
Andrew Bartlett
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
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
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
Andrew Tridgell [Wed, 20 Jul 2005 07:20:03 +0000 (07:20 +0000)]
r8639: moved loadparm calls into an ejs object
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
Andrew Tridgell [Wed, 20 Jul 2005 07:01:09 +0000 (07:01 +0000)]
r8637: added sys.stat() and sys.lstat() calls
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
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.
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.
Andrew Tridgell [Wed, 20 Jul 2005 05:41:29 +0000 (05:41 +0000)]
r8633: check for valid input to ejs_userAuth()
Andrew Tridgell [Wed, 20 Jul 2005 05:40:51 +0000 (05:40 +0000)]
r8632: use <pre> around displayed exceptions
Andrew Tridgell [Wed, 20 Jul 2005 05:40:24 +0000 (05:40 +0000)]
r8631: give an error on incorrect argument count
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
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.
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 :)
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)
Andrew Tridgell [Wed, 20 Jul 2005 02:15:43 +0000 (02:15 +0000)]
r8626: fixed a typo
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
Andrew Tridgell [Wed, 20 Jul 2005 00:09:23 +0000 (00:09 +0000)]
r8624: removed valgrind comment on tdb that no longer applies
Jelmer Vernooij [Tue, 19 Jul 2005 23:53:48 +0000 (23:53 +0000)]
r8623: Fix warnings in ODL-generated code.
Jelmer Vernooij [Tue, 19 Jul 2005 23:34:02 +0000 (23:34 +0000)]
r8622: Support parsing new structs/unions/enums/bitmaps without typedef in
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.
Jelmer Vernooij [Tue, 19 Jul 2005 19:21:40 +0000 (19:21 +0000)]
r8614: Add COMRESULT/HRESULT scalar type
Jelmer Vernooij [Tue, 19 Jul 2005 19:04:54 +0000 (19:04 +0000)]
r8613: Remove a couple of empty loops.