1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-02 20:23:50 +03:00
Commit Graph

5483 Commits

Author SHA1 Message Date
Andrew Tridgell
2dc493eea6 r8639: moved loadparm calls into an ejs object 2007-10-10 13:29:48 -05:00
Andrew Tridgell
a978484738 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
2007-10-10 13:29:48 -05:00
Andrew Tridgell
5dbdf4fb33 r8637: added sys.stat() and sys.lstat() calls 2007-10-10 13:29:48 -05:00
Andrew Tridgell
42ae50db81 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
2007-10-10 13:29:47 -05:00
Andrew Tridgell
6a1ed328e2 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.
2007-10-10 13:29:47 -05:00
Andrew Tridgell
668dd29259 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.
2007-10-10 13:29:47 -05:00
Andrew Tridgell
8e788ae309 r8633: check for valid input to ejs_userAuth() 2007-10-10 13:29:46 -05:00
Andrew Tridgell
001917cc9d r8632: use <pre> around displayed exceptions 2007-10-10 13:29:46 -05:00
Andrew Tridgell
ed09e19794 r8631: give an error on incorrect argument count 2007-10-10 13:29:46 -05:00
Andrew Tridgell
a2266f6927 r8630: give a much nicer backtrace on assert() failures in ejs
I will submit this upstream
2007-10-10 13:29:46 -05:00
Andrew Tridgell
9e07c08a71 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.
2007-10-10 13:29:46 -05:00
Andrew Tridgell
0f8f1cd18e r8628: add retries to the normal paths of nbt name resolution. UDP broadcasts are not 100% reliable :) 2007-10-10 13:29:46 -05:00
Andrew Tridgell
b40fb6a456 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)
2007-10-10 13:29:45 -05:00
Andrew Tridgell
3083d494e2 r8626: fixed a typo 2007-10-10 13:29:45 -05:00
Andrew Tridgell
4e090c66df 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
2007-10-10 13:29:45 -05:00
Andrew Tridgell
8f222c8c7a r8624: removed valgrind comment on tdb that no longer applies 2007-10-10 13:29:45 -05:00
Jelmer Vernooij
78ef2349c7 r8623: Fix warnings in ODL-generated code. 2007-10-10 13:29:45 -05:00
Jelmer Vernooij
cd33b5efc5 r8622: Support parsing new structs/unions/enums/bitmaps without typedef in 2007-10-10 13:29:45 -05:00
Jelmer Vernooij
5610838385 r8621: Simplify code. Add support for nested structures back into the header generator. 2007-10-10 13:29:44 -05:00
Jelmer Vernooij
8637a85e6a r8614: Add COMRESULT/HRESULT scalar type 2007-10-10 13:29:44 -05:00
Jelmer Vernooij
94e338805d r8613: Remove a couple of empty loops. 2007-10-10 13:29:44 -05:00
Jelmer Vernooij
cad40815dc 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.
2007-10-10 13:29:44 -05:00
Andrew Tridgell
1183f54c8d r8603: we have to use the same db name as the rest of smbd uses so the ldb connect
works when already open
2007-10-10 13:29:44 -05:00
Andrew Tridgell
4c1d6a97c0 r8602: allow options in ldb connect calls 2007-10-10 13:29:44 -05:00
Andrew Tridgell
64b6586b57 r8601: fixed null termination in ltdb connect error 2007-10-10 13:29:43 -05:00
Andrew Tridgell
326f0ad6fb r8600: fixed null termination on some error messages in ldb 2007-10-10 13:29:43 -05:00
Andrew Tridgell
cabf638a31 r8599: null terminate the argv list in string C functions 2007-10-10 13:29:43 -05:00
Andrew Tridgell
bc9d9531f5 r8593: register the rpc server with irpc 2007-10-10 13:29:42 -05:00
Andrew Tridgell
78d6303814 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
2007-10-10 13:29:42 -05:00
Andrew Tridgell
eb3e4bbe7f r8589: - support --version option to smbstatus
- print samba version at startup
2007-10-10 13:29:42 -05:00
Andrew Tridgell
dc0ea36344 r8588: register wins server with irpc 2007-10-10 13:29:42 -05:00
Andrew Tridgell
eee9044826 r8587: - fixed ref allocation in irpc replies
- make every irpc server support the irpc_uptime() call
2007-10-10 13:29:42 -05:00
Andrew Tridgell
093bbae1c3 r8586: register the kdc with irpc so we can tell that it is up 2007-10-10 13:29:41 -05:00
Simo Sorce
a9e8cd0bad 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
2007-10-10 13:29:41 -05:00
Andrew Tridgell
26a676a4e3 r8584: added --nbt option to smbstatus for nbt server statistics 2007-10-10 13:29:41 -05:00
Andrew Tridgell
0578bcdf7f r8583: nicer smbstatus output 2007-10-10 13:29:41 -05:00
Andrew Tridgell
632f7bbe3e r8582: added sys.httptime() call, to display a NTTIME as a http time string 2007-10-10 13:29:41 -05:00
Andrew Tridgell
2ae6a33846 r8581: fixed handling of 64 bit integers in rpc calls from ejs 2007-10-10 13:29:41 -05:00
Andrew Tridgell
58d7a1e6a3 r8580: try to fix the build on stratus 2007-10-10 13:29:40 -05:00
Andrew Tridgell
f9866258e0 r8579: recognise the name 'localhost' as 127.0.0.1. This solves a problem
with some hosts that are missing localhost from /etc/hosts
2007-10-10 13:29:40 -05:00
Andrew Tridgell
658befc1e4 r8577: added management calls to list current tree connects 2007-10-10 13:29:40 -05:00
Andrew Tridgell
a64490d1e5 r8576: install scripts from scripting/bin/ 2007-10-10 13:29:40 -05:00
Andrew Tridgell
4ecaf72a31 r8575: the beginnings of a smbstatus command 2007-10-10 13:29:40 -05:00
Andrew Tridgell
391cfe3c96 r8574: added server side irpc calls for listing the current sessions 2007-10-10 13:29:39 -05:00
Andrew Tridgell
71004aa165 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.
2007-10-10 13:29:39 -05:00
Andrew Tridgell
9af48b8fc2 r8569: delete is a js reserved word, so use del instead 2007-10-10 13:29:39 -05:00
Andrew Tridgell
d8d47bb18f r8568: change missing templates to warnings, so that provisioning with an existing db
doesn't print lots of fatal errors
2007-10-10 13:29:39 -05:00
Andrew Tridgell
bec135446a r8567: fixed the build after the com idl changes
Jelmer, can you please check that I got this right?
2007-10-10 13:29:39 -05:00
Jelmer Vernooij
e43ac10e36 r8566: Couple of code cleanups 2007-10-10 13:29:38 -05:00
Andrew Tridgell
6c9bf162af r8562: small merge with upstream 2007-10-10 13:29:38 -05:00