1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-25 19:33:18 +03:00
Commit Graph

5520 Commits

Author SHA1 Message Date
Andrew Bartlett
f5910ceef5 r8699: removed invalid comment 2007-10-10 13:29:55 -05:00
Andrew Tridgell
c84c516b17 r8698: attempt to cope with lack of strtoull() on HPUX 2007-10-10 13:29:55 -05:00
Andrew Tridgell
80177b29f4 r8696: fixed ejs to more strictly follow the va_list rules. Might fix that
pesky panic on x86_64
2007-10-10 13:29:55 -05:00
Rafal Szczesniak
19f5ea9c9c r8693: Test code for usermod routine.
rafal
2007-10-10 13:29:54 -05:00
Rafal Szczesniak
bee1c9ec2d 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
2007-10-10 13:29:54 -05:00
Jelmer Vernooij
7384b3c4a1 r8690: Code cleanups, improvements necessary for dependencies (not added yet) 2007-10-10 13:29:54 -05:00
Andrew Tridgell
802724cf69 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
2007-10-10 13:29:54 -05:00
Andrew Tridgell
c2f5884e2f r8684: this should fix the panic on x86_64, and possibly alpha 2007-10-10 13:29:54 -05:00
Andrew Tridgell
e6d9cde482 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
2007-10-10 13:29:54 -05:00
Andrew Tridgell
e84871dd32 r8680: try harder to find the binary for gdb in the backtrace 2007-10-10 13:29:53 -05:00
Andrew Tridgell
f8a2b032a7 r8679: only call fault setup once (thanks to andrew for pointing this out) 2007-10-10 13:29:53 -05:00
Andrew Tridgell
acf8c8fd49 r8678: setup for gdb backtrace in 'make test' 2007-10-10 13:29:53 -05:00
Andrew Bartlett
2303e24be7 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
2007-10-10 13:29:53 -05:00
Andrew Tridgell
3a49626ae1 r8676: attribute lists in ldb searches must be NULL terminated
this is what was causing the panic on the s390 box
2007-10-10 13:29:53 -05:00
Andrew Bartlett
da48e77e7c r8674: With the rdn_name module, we don't need this duplication in the samdb
module any more.

Andrew Bartlett
2007-10-10 13:29:53 -05:00
Andrew Tridgell
f9693e313d 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 :-(
2007-10-10 13:29:52 -05:00
Andrew Bartlett
968bcc4fe8 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
2007-10-10 13:29:52 -05:00
Andrew Bartlett
8054abc76e 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
2007-10-10 13:29:52 -05:00
Andrew Tridgell
756796ad2e r8668: fixed a segv during upgrade of a very old ldb.
Thanks to volker for finding this one too. Keep them coming!
2007-10-10 13:29:52 -05:00
Andrew Bartlett
ed1f2e029c 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
2007-10-10 13:29:52 -05:00
Andrew Bartlett
e03e00fe60 r8666: The same fix as the last commit, I was caught out on a move from a
BOOL to int function return.

Andrew Bartlett
2007-10-10 13:29:51 -05:00
Andrew Tridgell
e02d7753f7 r8665: fixed a segv at high debug level in the web server
thanks to volker for finding this
2007-10-10 13:29:51 -05:00
Andrew Bartlett
1982fdb6f3 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
2007-10-10 13:29:51 -05:00
Andrew Bartlett
2408f32276 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
2007-10-10 13:29:51 -05:00
Andrew Bartlett
3462cbadb2 r8662: Revert change to CN=Cert Publishers, this group still needs to
override the template for these attributes.

Andrew Bartlett
2007-10-10 13:29:51 -05:00
Andrew Tridgell
a569fc8924 r8661: added strstr() ejs function in string lib 2007-10-10 13:29:51 -05:00
Andrew Bartlett
4a8ef7197f 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
2007-10-10 13:29:51 -05:00
Andrew Tridgell
d2c29a5a51 r8659: return ldif formatted attributes in the ejs ldb search call, so sids show up as strings
not binary blobs
2007-10-10 13:29:50 -05:00
Andrew Tridgell
b1d577f48d r8658: move use of lp_security() and lp_nt_status_support() into the connection structure.
This massively reduces the number of lp_*() calls made
2007-10-10 13:29:50 -05:00
Andrew Tridgell
bd4c388cd2 r8651: fixed a boolean expression bug (submitted upstream) 2007-10-10 13:29:50 -05:00
Andrew Bartlett
940ed9827f 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
2007-10-10 13:29:50 -05:00
Andrew Tridgell
f5e39455a8 r8649: added smbscript to the list of binaries to install 2007-10-10 13:29:49 -05:00
Andrew Tridgell
78fb559c08 r8648: automatically redirect to provisioning if not yet provisioned when the
home page in swat is accessed
2007-10-10 13:29:49 -05:00
Andrew Bartlett
d7136c93fb r8644: This is a more useful error than unsuccesful.
Andrew Bartlett
2007-10-10 13:29:49 -05:00
Andrew Tridgell
c2691ef712 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
2007-10-10 13:29:48 -05:00
Andrew Tridgell
760cc6bea5 r8642: - fixed install of new swat files
- removed old provisioning items from esptest menu
2007-10-10 13:29:48 -05:00
Andrew Tridgell
ed4fb68ef7 r8640: continue the trend by moving the ejs random calls into an object 2007-10-10 13:29:48 -05:00
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