Andrew Tridgell
b0f9ddafe9
r8333: merged with latest upstream ejs sources
2007-10-10 13:20:07 -05:00
Andrew Tridgell
1d9632877c
r8332: not done yet, but a lot closer
2007-10-10 13:20:07 -05:00
Andrew Tridgell
0ef8f0282e
r8331: added split(), join() and FileLoad() functions to ejs.
...
this gets me most of the way through a ejs provision script
2007-10-10 13:20:06 -05:00
Volker Lendecke
126cb3db4b
r8321: Fix some uninitalized variable warnings
2007-10-10 13:20:06 -05:00
Andrew Tridgell
570f071b15
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
2007-10-10 13:20:06 -05:00
Andrew Tridgell
333b32025f
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
2007-10-10 13:20:06 -05:00
Andrew Tridgell
1517ad490d
r8318: added a bunch more ejs calls.
...
getgr*()
getpw*()
strlower()
strupper()
IfaceList()
2007-10-10 13:20:06 -05:00
Andrew Tridgell
775fb56ac2
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
2007-10-10 13:20:05 -05:00
Andrew Tridgell
fc93ade9cd
r8315: fixed the generation of the serial number in the dns zone file (bind9
...
doesn't like it being too long)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
7c2e31fd11
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)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
7d4e309f02
r8313: moved PRINTF_ATTRIBUTE to replace.h to try to get irix building with heimdal
2007-10-10 13:20:05 -05:00
Andrew Tridgell
753d7ab715
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
2007-10-10 13:20:05 -05:00
Andrew Tridgell
4b16754a0e
r8311: krb5 uses ENOMEM for out of memory
...
(thanks to abartlet for pointing this out)
2007-10-10 13:20:05 -05:00
Andrew Tridgell
ba621d1c55
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
2007-10-10 13:20:04 -05:00
Andrew Tridgell
b5e8409e3b
r8309: more heimdal configure checks needed for FreeBSD
2007-10-10 13:20:04 -05:00
Andrew Tridgell
39c6cf91fb
r8308: use the configured C compiler, instead of forcing gcc in external heimdal tool build
2007-10-10 13:20:04 -05:00
Andrew Tridgell
6ab503b7cc
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
2007-10-10 13:20:04 -05:00
Andrew Tridgell
575413fc86
r8306: some more heimdal configure checks
2007-10-10 13:20:04 -05:00
Andrew Tridgell
2cab29c1e7
r8305: another attempt at getting heimdal building in the farm
2007-10-10 13:20:03 -05:00
Andrew Tridgell
2564cd962b
r8303: a workaround for forcing HEIMDAL_EXTERNAL to build.
...
Jelmer, when you get a chance can we discuss how to fix this properly?
2007-10-10 13:19:34 -05:00
Heimdal Import User
118be28a7a
r8302: import mini HEIMDAL into the tree
2007-10-10 13:19:33 -05:00
Andrew Tridgell
c0bf253d4b
r8301: use ncalrpc: for ejs tests, to avoid name resolution timeouts as smbd is just starting up
2007-10-10 13:19:33 -05:00
Andrew Tridgell
0e9e541e1e
r8300: get the js include path right in selftest
2007-10-10 13:19:33 -05:00
Andrew Tridgell
2a444dedbe
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
2007-10-10 13:19:33 -05:00
Andrew Tridgell
ff60529ba2
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
2007-10-10 13:19:32 -05:00
Andrew Tridgell
6961fe2905
r8296: - split out the ejs auth functions into a separate file
...
- got rid of the one line ejs_returnlist()
2007-10-10 13:19:32 -05:00
Andrew Tridgell
c1a3691f87
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.
2007-10-10 13:19:32 -05:00
Jelmer Vernooij
7ebf81adce
r8294: Add PLAN file for samba3->samba4 upgrade (Google Summer of Code) project.
2007-10-10 13:19:32 -05:00
Andrew Tridgell
5adbab0afe
r8289: fallback to the group 'other' for users
...
this might fix the testing on solaris10
2007-10-10 13:19:32 -05:00
Tim Potter
aab24385ab
r8288: The SMB_ASSERT_ARRAY macro isn't used anymore.
2007-10-10 13:19:32 -05:00
Andrew Tridgell
5006528554
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)
2007-10-10 13:19:31 -05:00
Andrew Tridgell
73643884a3
r8285: generate some real stats in the nbt server for the irpc client code to look at
2007-10-10 13:19:31 -05:00
Andrew Tridgell
061e20e509
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
2007-10-10 13:19:31 -05:00
Andrew Tridgell
529370ed92
r8283: make sure we build constant variables for both pull and push side of enums
2007-10-10 13:19:31 -05:00
Andrew Tridgell
783679e0df
r8282: make the deletion of the smbd.tmp directory recursive. This cleans up the messaging
...
directory
2007-10-10 13:19:31 -05:00
Andrew Tridgell
1c6b1102e5
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
2007-10-10 13:19:31 -05:00
Andrew Tridgell
1c170138a8
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)
2007-10-10 13:19:30 -05:00
Andrew Tridgell
9c408d5d7c
r8279: make sure we hold a lock when manipulating the irpc names db
2007-10-10 13:19:30 -05:00
Andrew Tridgell
5812e74c4f
r8278: this should fix the heimdal h_errno warnings
2007-10-10 13:19:30 -05:00
Andrew Tridgell
b603a52f27
r8277: filled in the code for finding irpc server ids by name, storing the
...
names in a tdb
2007-10-10 13:19:30 -05:00
Andrew Tridgell
9c885a7edb
r8276: fixed the remaining memory leaks in smbscript. We can now loop doing
...
lots of rpc calls without memory usage increasing.
2007-10-10 13:19:30 -05:00
Andrew Tridgell
d5153d16e1
r8275: possibly a more portable way to export symbols in perl?
2007-10-10 13:19:29 -05:00
Jelmer Vernooij
d1f754a0a3
r8274: Export some more symbols.
2007-10-10 13:19:29 -05:00
Andrew Tridgell
b220756cb4
r8273: fixed some memory leaks in smbscript. This required converting
...
file_load() to use talloc, which impacted quite a few bits of code,
including our smb.conf processing.
took the opportunity to remove the gloabls in params.c while doing this
2007-10-10 13:19:29 -05:00
Andrew Tridgell
8f69867867
r8272: added the hooks for adding a name to a messaging context, so we will
...
be able to send a message to the "ldap_server" task without having to
know its task ID.
2007-10-10 13:19:29 -05:00
Andrew Tridgell
757c22aab4
r8271: make the ejs test scripts directly executable scripts using:
...
#!/usr/bin/env smbscript
I'll be interested to see how portable this is in the build farm.
2007-10-10 13:19:28 -05:00
Jelmer Vernooij
d64bffa17e
r8270: Export some symbols, making the code more readable.
2007-10-10 13:19:28 -05:00
Andrew Tridgell
c760180119
r8269: added automatic testing of rpc calls from ejs in 'make test'
2007-10-10 13:19:28 -05:00
Andrew Tridgell
c7a9dbe70a
r8268: added the 'needed' logic to ehs generation, so we don't generate
...
functions we don't need. That is a lot of functions, as ejs is only
client side, so it only needs push functions for [out] vars, and pull
functions for [in] vars
added irpc and srvsvc IDL to list of available pipes.
2007-10-10 13:19:28 -05:00
Andrew Tridgell
a6922ccd63
r8267: re-generated the yapp parser with correct paths
2007-10-10 13:19:28 -05:00