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.
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.
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
Andrew Tridgell [Tue, 19 Jul 2005 11:54:33 +0000 (11:54 +0000)]
r8602: allow options in ldb connect calls
Andrew Tridgell [Tue, 19 Jul 2005 11:54:00 +0000 (11:54 +0000)]
r8601: fixed null termination in ltdb connect error
Andrew Tridgell [Tue, 19 Jul 2005 11:53:25 +0000 (11:53 +0000)]
r8600: fixed null termination on some error messages in ldb
Andrew Tridgell [Tue, 19 Jul 2005 11:52:50 +0000 (11:52 +0000)]
r8599: null terminate the argv list in string C functions
Andrew Tridgell [Tue, 19 Jul 2005 11:06:12 +0000 (11:06 +0000)]
r8598: move provisioning to /install/ directory from /esptest/
Andrew Tridgell [Tue, 19 Jul 2005 09:44:55 +0000 (09:44 +0000)]
r8594: more placeholder pages for server status
Andrew Tridgell [Tue, 19 Jul 2005 09:44:11 +0000 (09:44 +0000)]
r8593: register the rpc server with irpc
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
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
Andrew Tridgell [Tue, 19 Jul 2005 09:29:30 +0000 (09:29 +0000)]
r8589: - support --version option to smbstatus
- print samba version at startup
Andrew Tridgell [Tue, 19 Jul 2005 09:28:46 +0000 (09:28 +0000)]
r8588: register wins server with irpc
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
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
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
Andrew Tridgell [Tue, 19 Jul 2005 06:18:48 +0000 (06:18 +0000)]
r8584: added --nbt option to smbstatus for nbt server statistics