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

5595 Commits

Author SHA1 Message Date
Andrew Tridgell
2dce83de0c r8338: - added a substitute_var() js library function for doing hash driven
substitution of variables in strings

- the js provision script now correctly processes provision.ldif
(This used to be commit c2946003e0)
2007-10-10 13:20:08 -05:00
Andrew Tridgell
b1e93b296e r8337: - use 64 bit access functions in ejs calls
- added access to smbd random functions

- fixed ordering in join()

- added sys_interfaces(), sys_hostname(), sys_nttime() and sys_ldaptime()
(This used to be commit 28c1a1f3c0)
2007-10-10 13:20:07 -05:00
Andrew Tridgell
36bb0ffd4c r8336: enable 64 bit integer support in ejs
(This used to be commit 9dd41e78e1)
2007-10-10 13:20:07 -05:00
Andrew Tridgell
70278929fc r8335: removed some duplicated code
(This used to be commit 1536d66662)
2007-10-10 13:20:07 -05:00
Andrew Tridgell
8435fbc4af r8334: fixed a ejs bug that prevented functions variables from being called in local context
(This used to be commit 5ea7ae7081)
2007-10-10 13:20:07 -05:00
Andrew Tridgell
ba1ee57df4 r8333: merged with latest upstream ejs sources
(This used to be commit b0f9ddafe9)
2007-10-10 13:20:07 -05:00
Andrew Tridgell
3e5649f79f r8332: not done yet, but a lot closer
(This used to be commit 1d9632877c)
2007-10-10 13:20:07 -05:00
Andrew Tridgell
c30c711292 r8331: added split(), join() and FileLoad() functions to ejs.
this gets me most of the way through a ejs provision script
(This used to be commit 0ef8f0282e)
2007-10-10 13:20:06 -05:00
Volker Lendecke
3e0aa2e756 r8321: Fix some uninitalized variable warnings
(This used to be commit 126cb3db4b)
2007-10-10 13:20:06 -05:00
Andrew Tridgell
887461327a r8320: make sure all our returned objects are full objects, which means they
have the toString() and valueOf() default attributes

this allows all our returned objects to be used in logical expressions
(This used to be commit 570f071b15)
2007-10-10 13:20:06 -05:00
Andrew Tridgell
07c2a1c09a r8319: the start of a provision script in ejs. This is why I've been adding
so many functions lately.

so far it just parses options, works out the host IP, and user and group names
(This used to be commit 333b32025f)
2007-10-10 13:20:06 -05:00
Andrew Tridgell
683432660e r8318: added a bunch more ejs calls.
getgr*()
  getpw*()
  strlower()
  strupper()
  IfaceList()
(This used to be commit 1517ad490d)
2007-10-10 13:20:06 -05:00
Andrew Tridgell
1864b27857 r8317: convert the example scripts over to the new GetOptions() call
(This used to be commit 5f079d7463)
2007-10-10 13:20:06 -05:00
Andrew Tridgell
f583a85d4d r8316: give full access to the popt command line parsing in ejs scripts, including
access to the samba common options. For example:

ok = GetOptions(ARGV, options,
		"POPT_AUTOHELP",
		"POPT_COMMON_SAMBA",
		"myopt=s",
		"intopt=i",
		"noopt");

this allows scripts to support their own extended options properly
(This used to be commit 775fb56ac2)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
9ab58c5e01 r8315: fixed the generation of the serial number in the dns zone file (bind9
doesn't like it being too long)
(This used to be commit fc93ade9cd)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
2696764132 r8314: - added an 'installmisc' target for installing miscellaneous files.
- install our provisioning template files in lib/setup/

We need these to be installed as users may wish to re-provision after
installation, or may not have the source tree (wuch as when installing
from binary packages)
(This used to be commit 7c2e31fd11)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
54ffd4fdbf r8313: moved PRINTF_ATTRIBUTE to replace.h to try to get irix building with heimdal
(This used to be commit 7d4e309f02)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
5f26a5a18a r8312: fixed some heimdal header checks from watching the build farm failures
when we added heimdal we dropped from 10 passing builds to 1, but hopefully
that will go up with a bit of effort
(This used to be commit 753d7ab715)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
2fa99e56bc r8311: krb5 uses ENOMEM for out of memory
(thanks to abartlet for pointing this out)
(This used to be commit 4b16754a0e)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
8c018ff786 r8310: replace the heimdal networking interface scanning code with glue code that uses the Samba
interfaces list. This makes heimdal obey the 'interfaces=' smb.conf option, and should also
fix the portability problems with the heimdal code
(This used to be commit ba621d1c55)
2007-10-10 13:20:04 -05:00
Andrew Tridgell
2271bb4475 r8309: more heimdal configure checks needed for FreeBSD
(This used to be commit b5e8409e3b)
2007-10-10 13:20:04 -05:00
Andrew Tridgell
eaa882b9a5 r8308: use the configured C compiler, instead of forcing gcc in external heimdal tool build
(This used to be commit 39c6cf91fb)
2007-10-10 13:20:04 -05:00
Andrew Tridgell
14fb42204b r8307: try to cope with flex and bison not being installed, in a similar fashion to yapp for pidl
if they are installed, then we rebuild the generated files, otherwise
we use the ones in svn
(This used to be commit 6ab503b7cc)
2007-10-10 13:20:04 -05:00
Andrew Tridgell
76478d7eb1 r8306: some more heimdal configure checks
(This used to be commit 575413fc86)
2007-10-10 13:20:04 -05:00
Andrew Tridgell
2b89817e46 r8305: another attempt at getting heimdal building in the farm
(This used to be commit 2cab29c1e7)
2007-10-10 13:20:03 -05:00
Andrew Tridgell
b81460b143 r8303: a workaround for forcing HEIMDAL_EXTERNAL to build.
Jelmer, when you get a chance can we discuss how to fix this properly?
(This used to be commit 2564cd962b)
2007-10-10 13:19:34 -05:00
Heimdal Import User
954c01728e r8302: import mini HEIMDAL into the tree
(This used to be commit 118be28a7a)
2007-10-10 13:19:33 -05:00
Andrew Tridgell
7ead5ab06c r8301: use ncalrpc: for ejs tests, to avoid name resolution timeouts as smbd is just starting up
(This used to be commit c0bf253d4b)
2007-10-10 13:19:33 -05:00
Andrew Tridgell
16e8e96ba8 r8300: get the js include path right in selftest
(This used to be commit 0e9e541e1e)
2007-10-10 13:19:33 -05:00
Andrew Tridgell
3fb52d1b6e r8299: make the samr swat test use the samr.js lib
(This used to be commit 4d4a062af4)
2007-10-10 13:19:33 -05:00
Andrew Tridgell
f9ff72cbda r8298: - started building a library of js routines in scripting/libjs/
- switched the existing test programs over to using the library

- added install of js lib
(This used to be commit 2a444dedbe)
2007-10-10 13:19:33 -05:00
Andrew Tridgell
b2f1321821 r8297: add libinclude() function in ejs, which is like include() but searches a js library
path set in "js include" in smb.conf.

This will allow us to start building up a library of common js code,
while avoiding the problem of hard-coding include paths in scripts
(This used to be commit ff60529ba2)
2007-10-10 13:19:32 -05:00
Andrew Tridgell
b2f84fef13 r8296: - split out the ejs auth functions into a separate file
- got rid of the one line ejs_returnlist()
(This used to be commit 6961fe2905)
2007-10-10 13:19:32 -05:00
Andrew Tridgell
51d2b6b5a4 r8295: turn off the delete on close test in the build farm until someone gets
a chance to look at it. Having it continually fail is hiding other
portability errors that might have been introduced.
(This used to be commit c1a3691f87)
2007-10-10 13:19:32 -05:00
Jelmer Vernooij
747cae7151 r8294: Add PLAN file for samba3->samba4 upgrade (Google Summer of Code) project.
(This used to be commit 7ebf81adce)
2007-10-10 13:19:32 -05:00
Andrew Tridgell
c9c49b11f9 r8289: fallback to the group 'other' for users
this might fix the testing on solaris10
(This used to be commit 5adbab0afe)
2007-10-10 13:19:32 -05:00
Tim Potter
4109f7d069 r8288: The SMB_ASSERT_ARRAY macro isn't used anymore.
(This used to be commit aab24385ab)
2007-10-10 13:19:32 -05:00
Andrew Tridgell
b7c6b20c37 r8287: yay! finally irpc calls from ejs are all working.
This is a demo script that shows the nbt server statistics. For example:

nbt_server statistics:
        total_received: 185
        total_sent:     59
        query_count:    13
        release_count:  21
        register_count: 7
(This used to be commit cd1ea857ce)
2007-10-10 13:19:32 -05:00
Andrew Tridgell
39b1d2b4c4 r8286: it makes more sense to combine the refresh count with the register count, as they
are really the same packet (you can register with a refresh)
(This used to be commit 5006528554)
2007-10-10 13:19:31 -05:00
Andrew Tridgell
c7304b3ab8 r8285: generate some real stats in the nbt server for the irpc client code to look at
(This used to be commit 73643884a3)
2007-10-10 13:19:31 -05:00
Andrew Tridgell
056096c30b r8284: - fixed some uninitialised variables in the irpc code
- added code to send multiple irpc calls in parallel, to all servers
  that have registered the given name, with output going in
  io.results[i]. This allows you to make rpc calls to multiple servers
  at once, which is needed for clients like smbstatus
(This used to be commit 061e20e509)
2007-10-10 13:19:31 -05:00
Andrew Tridgell
e43e8fcf55 r8283: make sure we build constant variables for both pull and push side of enums
(This used to be commit 529370ed92)
2007-10-10 13:19:31 -05:00
Andrew Tridgell
9281b58398 r8282: make the deletion of the smbd.tmp directory recursive. This cleans up the messaging
directory
(This used to be commit 783679e0df)
2007-10-10 13:19:31 -05:00
Andrew Tridgell
0871be3f35 r8281: pass the callnum and rpc interface table directly from the generated
code in pidl for ejs calls. This means that ejs_rpc_call() doesn't
need to scan the rpc tables for the right interface, and doesn't need
to scan for the call name
(This used to be commit 1c6b1102e5)
2007-10-10 13:19:31 -05:00
Andrew Tridgell
f3c6f290f0 r8280: - added irpc_connect() for connecting to a irpc server by name
- make the dcerpc pipe in rpc_connect() a talloc child of the ejs
  connection variable. That means when the connection variable goes out
  of scope, the connection is automatically closed. That makes for a
  more natural interface for closing connections in a scripting language
  (tpot, you may wish to use mprSetPtrChild() in your smb glue code too)
(This used to be commit 1c170138a8)
2007-10-10 13:19:30 -05:00
Andrew Tridgell
d084d6d241 r8279: make sure we hold a lock when manipulating the irpc names db
(This used to be commit 9c408d5d7c)
2007-10-10 13:19:30 -05:00
Andrew Tridgell
3f27c9efb9 r8278: this should fix the heimdal h_errno warnings
(This used to be commit 5812e74c4f)
2007-10-10 13:19:30 -05:00
Andrew Tridgell
144b88b3a0 r8277: filled in the code for finding irpc server ids by name, storing the
names in a tdb
(This used to be commit b603a52f27)
2007-10-10 13:19:30 -05:00
Andrew Tridgell
60ec75cbc7 r8276: fixed the remaining memory leaks in smbscript. We can now loop doing
lots of rpc calls without memory usage increasing.
(This used to be commit 9c885a7edb)
2007-10-10 13:19:30 -05:00
Andrew Tridgell
1e5b309b4f r8275: possibly a more portable way to export symbols in perl?
(This used to be commit d5153d16e1)
2007-10-10 13:19:29 -05:00