1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

5629 Commits

Author SHA1 Message Date
Andrew Bartlett
4396d0d148 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
(This used to be commit 8054abc76e)
2007-10-10 13:29:52 -05:00
Andrew Tridgell
eb08c1fc8f r8668: fixed a segv during upgrade of a very old ldb.
Thanks to volker for finding this one too. Keep them coming!
(This used to be commit 756796ad2e)
2007-10-10 13:29:52 -05:00
Andrew Bartlett
2a0cf520e3 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
(This used to be commit ed1f2e029c)
2007-10-10 13:29:52 -05:00
Andrew Bartlett
c7204bd985 r8666: The same fix as the last commit, I was caught out on a move from a
BOOL to int function return.

Andrew Bartlett
(This used to be commit e03e00fe60)
2007-10-10 13:29:51 -05:00
Andrew Tridgell
c7ca980ca9 r8665: fixed a segv at high debug level in the web server
thanks to volker for finding this
(This used to be commit e02d7753f7)
2007-10-10 13:29:51 -05:00
Andrew Bartlett
c2f9eb30cd 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
(This used to be commit 1982fdb6f3)
2007-10-10 13:29:51 -05:00
Andrew Bartlett
8191f2cc80 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
(This used to be commit 2408f32276)
2007-10-10 13:29:51 -05:00
Andrew Bartlett
1211496eba r8662: Revert change to CN=Cert Publishers, this group still needs to
override the template for these attributes.

Andrew Bartlett
(This used to be commit 3462cbadb2)
2007-10-10 13:29:51 -05:00
Andrew Tridgell
4163622a0b r8661: added strstr() ejs function in string lib
(This used to be commit a569fc8924)
2007-10-10 13:29:51 -05:00
Andrew Bartlett
6173fad231 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
(This used to be commit 4a8ef7197f)
2007-10-10 13:29:51 -05:00
Andrew Tridgell
7a8ac75887 r8659: return ldif formatted attributes in the ejs ldb search call, so sids show up as strings
not binary blobs
(This used to be commit d2c29a5a51)
2007-10-10 13:29:50 -05:00
Andrew Tridgell
4327a3f1ba r8658: move use of lp_security() and lp_nt_status_support() into the connection structure.
This massively reduces the number of lp_*() calls made
(This used to be commit b1d577f48d)
2007-10-10 13:29:50 -05:00
Andrew Tridgell
11832f7222 r8652: added a test for the boolean bug just fixed
(This used to be commit 19ae68f59a)
2007-10-10 13:29:50 -05:00
Andrew Tridgell
5e9988708f r8651: fixed a boolean expression bug (submitted upstream)
(This used to be commit bd4c388cd2)
2007-10-10 13:29:50 -05:00
Andrew Bartlett
24d2107324 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
(This used to be commit 940ed9827f)
2007-10-10 13:29:50 -05:00
Andrew Tridgell
79a87c55fe r8649: added smbscript to the list of binaries to install
(This used to be commit f5e39455a8)
2007-10-10 13:29:49 -05:00
Andrew Tridgell
2fd92cb1b4 r8648: automatically redirect to provisioning if not yet provisioned when the
home page in swat is accessed
(This used to be commit 78fb559c08)
2007-10-10 13:29:49 -05:00
Love Hörnquist Åstrand
01b9564909 r8647: no diffrences between the heimdal and no heimdal case when building
(This used to be commit 08eb97c264)
2007-10-10 13:29:49 -05:00
Andrew Tridgell
d3741424b9 r8646: update install howto for new provision code
(This used to be commit bfc3270fb6)
2007-10-10 13:29:49 -05:00
Andrew Tridgell
4512f76c1b 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 :)
(This used to be commit 8d0c9557a2)
2007-10-10 13:29:49 -05:00
Andrew Bartlett
5bf8d0f516 r8644: This is a more useful error than unsuccesful.
Andrew Bartlett
(This used to be commit d7136c93fb)
2007-10-10 13:29:49 -05:00
Andrew Tridgell
2f5f01567b 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
(This used to be commit c2691ef712)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
238a7e2f4c r8642: - fixed install of new swat files
- removed old provisioning items from esptest menu
(This used to be commit 760cc6bea5)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
d5ac1f9bf4 r8640: continue the trend by moving the ejs random calls into an object
(This used to be commit ed4fb68ef7)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
86d628a292 r8639: moved loadparm calls into an ejs object
(This used to be commit 2dc493eea6)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
620301858a 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
(This used to be commit a978484738)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
3d59490a40 r8637: added sys.stat() and sys.lstat() calls
(This used to be commit 5dbdf4fb33)
2007-10-10 13:29:48 -05:00
Andrew Tridgell
524044a64a 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
(This used to be commit 42ae50db81)
2007-10-10 13:29:47 -05:00
Andrew Tridgell
240ca36cf2 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.
(This used to be commit 6a1ed328e2)
2007-10-10 13:29:47 -05:00
Andrew Tridgell
a4428c814a 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.
(This used to be commit 668dd29259)
2007-10-10 13:29:47 -05:00
Andrew Tridgell
d6c20a5c8a r8633: check for valid input to ejs_userAuth()
(This used to be commit 8e788ae309)
2007-10-10 13:29:46 -05:00
Andrew Tridgell
53ffd147bd r8632: use <pre> around displayed exceptions
(This used to be commit 001917cc9d)
2007-10-10 13:29:46 -05:00
Andrew Tridgell
3473f6b74b r8631: give an error on incorrect argument count
(This used to be commit ed09e19794)
2007-10-10 13:29:46 -05:00
Andrew Tridgell
6f48b3a5cb r8630: give a much nicer backtrace on assert() failures in ejs
I will submit this upstream
(This used to be commit a2266f6927)
2007-10-10 13:29:46 -05:00
Andrew Tridgell
e9c925f872 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.
(This used to be commit 9e07c08a71)
2007-10-10 13:29:46 -05:00
Andrew Tridgell
d9cfd55dbb r8628: add retries to the normal paths of nbt name resolution. UDP broadcasts are not 100% reliable :)
(This used to be commit 0f8f1cd18e)
2007-10-10 13:29:46 -05:00
Andrew Tridgell
174da76293 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)
(This used to be commit b40fb6a456)
2007-10-10 13:29:45 -05:00
Andrew Tridgell
594b76264f r8626: fixed a typo
(This used to be commit 3083d494e2)
2007-10-10 13:29:45 -05:00
Andrew Tridgell
338c3f8523 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
(This used to be commit 4e090c66df)
2007-10-10 13:29:45 -05:00
Andrew Tridgell
f650ea1012 r8624: removed valgrind comment on tdb that no longer applies
(This used to be commit 8f222c8c7a)
2007-10-10 13:29:45 -05:00
Jelmer Vernooij
ddd64e7ef4 r8623: Fix warnings in ODL-generated code.
(This used to be commit 78ef2349c7)
2007-10-10 13:29:45 -05:00
Jelmer Vernooij
d5b7249ddd r8622: Support parsing new structs/unions/enums/bitmaps without typedef in
(This used to be commit cd33b5efc5)
2007-10-10 13:29:45 -05:00
Jelmer Vernooij
f3a10494db r8621: Simplify code. Add support for nested structures back into the header generator.
(This used to be commit 5610838385)
2007-10-10 13:29:44 -05:00
Jelmer Vernooij
4f3d66b0df r8614: Add COMRESULT/HRESULT scalar type
(This used to be commit 8637a85e6a)
2007-10-10 13:29:44 -05:00
Jelmer Vernooij
728033178b r8613: Remove a couple of empty loops.
(This used to be commit 94e338805d)
2007-10-10 13:29:44 -05:00
Jelmer Vernooij
d99d06d954 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.
(This used to be commit cad40815dc)
2007-10-10 13:29:44 -05:00
Andrew Tridgell
8f16aa6c17 r8603: we have to use the same db name as the rest of smbd uses so the ldb connect
works when already open
(This used to be commit 1183f54c8d)
2007-10-10 13:29:44 -05:00
Andrew Tridgell
da88ef65e0 r8602: allow options in ldb connect calls
(This used to be commit 4c1d6a97c0)
2007-10-10 13:29:44 -05:00
Andrew Tridgell
c1a4f0c769 r8601: fixed null termination in ltdb connect error
(This used to be commit 64b6586b57)
2007-10-10 13:29:43 -05:00
Andrew Tridgell
3c5675af93 r8600: fixed null termination on some error messages in ldb
(This used to be commit 326f0ad6fb)
2007-10-10 13:29:43 -05:00