jra/samba/.git
11 years agor8372: - split out provisioning logic into a separate ejs library
Andrew Tridgell [Tue, 12 Jul 2005 11:46:34 +0000 (11:46 +0000)]
r8372: - split out provisioning logic into a separate ejs library

- added a provisioning web page
(This used to be commit 7476cb94132cf2849ec19360468904ca6fe8de2c)

11 years agor8371: the objectGUID is now stored in binary...
Stefan Metzmacher [Tue, 12 Jul 2005 11:45:29 +0000 (11:45 +0000)]
r8371: the objectGUID is now stored in binary...

metze
(This used to be commit b920b306b3813ba4a220249dbd7e443605074c9b)

11 years agor8370: remove the '$' from in the cn: attribute for computer and dc accounts
Stefan Metzmacher [Tue, 12 Jul 2005 10:59:12 +0000 (10:59 +0000)]
r8370: remove the '$' from in the cn: attribute for computer and dc accounts

metze
(This used to be commit 206f33778e8ff88b5eea493ead31342cc4405a22)

11 years agor8369: update the configure script I use
Andrew Tridgell [Tue, 12 Jul 2005 10:38:45 +0000 (10:38 +0000)]
r8369: update the configure script I use
(This used to be commit 1f1e8f7d0fb4f69bc4aaeefc94ab246729c446f2)

11 years agor8368: the type filed depends on the user being present or not
Stefan Metzmacher [Tue, 12 Jul 2005 09:40:34 +0000 (09:40 +0000)]
r8368: the type filed depends on the user being present or not

call ndr_print for each call

metze
(This used to be commit 0a07e4ef8d869d35ceb0761495e367077f2361ba)

11 years agor8367: another configure test needed by netbsd for heimdal
Andrew Tridgell [Tue, 12 Jul 2005 09:31:41 +0000 (09:31 +0000)]
r8367: another configure test needed by netbsd for heimdal
(This used to be commit 8ddf866438231192c4884877d9e80f0d525ee431)

11 years agor8365: fixed a problem on netbsd
Andrew Tridgell [Tue, 12 Jul 2005 09:09:42 +0000 (09:09 +0000)]
r8365: fixed a problem on netbsd
(This used to be commit d5d0769da93219dbd582139482d34b744b359b99)

11 years agor8364: fixed a valgrind bug spotted by simo
Andrew Tridgell [Tue, 12 Jul 2005 09:02:58 +0000 (09:02 +0000)]
r8364: fixed a valgrind bug spotted by simo
(This used to be commit ef804e8f36f1835d5d61f69565f1195a70f37e74)

11 years agor8363: - we need to correct the realm for the krbtgt/NETBIOSDOMAINREALM
Stefan Metzmacher [Tue, 12 Jul 2005 09:02:27 +0000 (09:02 +0000)]
r8363: - we need to correct the realm for the krbtgt/NETBIOSDOMAINREALM
  into krbtgt/DNS.DOMAIN.REALM too
  with this a windows client asks for the correct ticket when you try to login
  (but it's still not working correct, as some how we mess up the dns host name of the
   client and it asks for the wrong service principal)

- fix some compiler wranings
- fix some debug messages

metze
(This used to be commit c4c93eeec20ceb062d37f392139a5ef8bbb626f5)

11 years agor8362: change AC_INIT to the new version, improves failure reporting from autoconf
Love Hörnquist Åstrand [Tue, 12 Jul 2005 08:21:09 +0000 (08:21 +0000)]
r8362: change AC_INIT to the new version, improves failure reporting from autoconf

configure: WARNING: sys/mount.h: present but cannot be compiled
[...]
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##

configure: WARNING: sys/mount.h: present but cannot be compiled
[...]
configure: WARNING:     ## ---------------------------------------- ##
configure: WARNING:     ## Report this to samba-technical@samba.org ##
configure: WARNING:     ## ---------------------------------------- ##
(This used to be commit f872686d83e3fbfaff89f2ff7ca2457c0a72d27c)

11 years agor8361: ctype is* macros needs unsigned arguments
Love Hörnquist Åstrand [Tue, 12 Jul 2005 08:17:34 +0000 (08:17 +0000)]
r8361: ctype is* macros needs unsigned arguments
(This used to be commit 07a7ab0a6af7224c4290043442a304baef656e94)

11 years agor8359: fix a shell warning
Stefan Metzmacher [Tue, 12 Jul 2005 08:03:46 +0000 (08:03 +0000)]
r8359: fix a shell warning

metze
(This used to be commit 9739aa75d27e854657c97208850f07d40adb4dbd)

11 years agor8358: Return an error message if js include path not set instead of silently
Tim Potter [Tue, 12 Jul 2005 07:17:04 +0000 (07:17 +0000)]
r8358: Return an error message if js include path not set instead of silently
failing.
(This used to be commit 797d9cf0c72992b2d5b9912d0f41873b6acc3195)

11 years agor8357: Call lp_load() so we can access the various lp_functions().
Tim Potter [Tue, 12 Jul 2005 07:15:22 +0000 (07:15 +0000)]
r8357: Call lp_load() so we can access the various lp_functions().
(This used to be commit f76a7ec2a2ef5db7ca7dced519474495d7ea02dc)

11 years agor8356: avoid warning from AC_CHECK_HEADER that file is present but cannot be compiled
Love Hörnquist Åstrand [Tue, 12 Jul 2005 07:12:46 +0000 (07:12 +0000)]
r8356: avoid warning from AC_CHECK_HEADER that file is present but cannot be compiled
for sys/mount.h
(This used to be commit f70e8b4f6ea0db0a7a9134848fefcd0389aabe56)

11 years agor8355: - added a vsprintf() function
Andrew Tridgell [Tue, 12 Jul 2005 06:57:25 +0000 (06:57 +0000)]
r8355: - added a vsprintf() function

- removed the --outputdir option from provision, as its not used any
  more (as ejs knows the real paths)
(This used to be commit abbf9c703c17c2edc2d978dade3619a96c38d0d9)

11 years agor8354: work around a js bug found by tpot
Andrew Tridgell [Tue, 12 Jul 2005 06:39:36 +0000 (06:39 +0000)]
r8354: work around a js bug found by tpot
(This used to be commit c6f7ace3333af31bc0d37264b3d8a75c79bb88e4)

11 years agor8353: Use a PNG instead of a GIF for padding. Also fixes a file not found
Tim Potter [Tue, 12 Jul 2005 06:31:17 +0000 (06:31 +0000)]
r8353: Use a PNG instead of a GIF for padding.  Also fixes a file not found
error as only PNG files were being installed by 'make installswat'.
(This used to be commit eaf9c455de3025155fb502fb4c93eefa4eb13f7e)

11 years agor8352: we need to override "setup directory" for the build farm hosts
Andrew Tridgell [Tue, 12 Jul 2005 06:17:40 +0000 (06:17 +0000)]
r8352: we need to override "setup directory" for the build farm hosts
(This used to be commit 1a80850d579504c9b236e591630173f0f316a876)

11 years agor8351: When finished sending call stream_terminate_connection() with a nice
Tim Potter [Tue, 12 Jul 2005 06:17:19 +0000 (06:17 +0000)]
r8351: When finished sending call stream_terminate_connection() with a nice
message instead of NULL.

Fix up some other terminate messgages to be consistent.
(This used to be commit c0428ef3376e439cdc04fea046738cecb7a01560)

11 years agor8350: fixed the --root option to provision
Andrew Tridgell [Tue, 12 Jul 2005 06:12:52 +0000 (06:12 +0000)]
r8350: fixed the --root option to provision
(This used to be commit 506e07d6e064375aaee20133d722b6b44d63b083)

11 years agor8349: as we don't use standard dirs, we need to create smb.conf before we run provision
Andrew Tridgell [Tue, 12 Jul 2005 06:08:14 +0000 (06:08 +0000)]
r8349: as we don't use standard dirs, we need to create smb.conf before we run provision
(This used to be commit c64a68cd40d644c273528d0433bdf554c11bcf00)

11 years agor8348: switch selftest to use the new provision script
Andrew Tridgell [Tue, 12 Jul 2005 06:06:30 +0000 (06:06 +0000)]
r8348: switch selftest to use the new provision script
(This used to be commit 52517e48ea4e5debdc5e6f4a934ce74833300e5f)

11 years agor8347: replace the perl provision script with a ejs script
Andrew Tridgell [Tue, 12 Jul 2005 06:02:20 +0000 (06:02 +0000)]
r8347: replace the perl provision script with a ejs script

I don't mind depending on perl at compile time, but I want to avoid
depending on it at runtime. This also will make it easy to add web
install wizard
(This used to be commit f27a68176984c6856fad2e3a028458eb96943f80)

11 years agor8346: added a sprintf test suite for ejs
Andrew Tridgell [Tue, 12 Jul 2005 05:58:41 +0000 (05:58 +0000)]
r8346: added a sprintf test suite for ejs
(This used to be commit 14af014410a9971d447aafe00640407698f63d7f)

11 years agor8345: make the dn on the hklm ldif valid
Andrew Tridgell [Tue, 12 Jul 2005 05:57:56 +0000 (05:57 +0000)]
r8345: make the dn on the hklm ldif valid

Jelmer, can you check this is OK?
(This used to be commit 6d416656a02d02c6e60d980ba406a4b72e84811b)

11 years agor8344: added a "setup directory" smb.conf parameter, pointing at the setup template...
Andrew Tridgell [Tue, 12 Jul 2005 05:57:14 +0000 (05:57 +0000)]
r8344: added a "setup directory" smb.conf parameter, pointing at the setup template files
(This used to be commit c842144cbf642b10df21c979d3c4b9fe94384b96)

11 years agor8343: removed a debugging message
Andrew Tridgell [Tue, 12 Jul 2005 05:56:38 +0000 (05:56 +0000)]
r8343: removed a debugging message
(This used to be commit c12325e25291a0083446519e0b37c7bcdc3d5433)

11 years agor8342: allow ldb_ldif_read_string() to continue in the string, so you can
Andrew Tridgell [Tue, 12 Jul 2005 05:56:06 +0000 (05:56 +0000)]
r8342: allow ldb_ldif_read_string() to continue in the string, so you can
read multiple records
(This used to be commit 4b11c00421b5152fd7d4be0be0db983bb310021d)

11 years agor8341: enable floating point support in ejs
Andrew Tridgell [Tue, 12 Jul 2005 05:54:21 +0000 (05:54 +0000)]
r8341: enable floating point support in ejs
(This used to be commit bdc6b67eb27cc3da6d5144bbb71096741f779aba)

11 years agor8340: - added sys_gmtime()
Andrew Tridgell [Tue, 12 Jul 2005 05:53:51 +0000 (05:53 +0000)]
r8340: - added sys_gmtime()

- added sys_unlink()

- added sys_file_load() and sys_file_save()

- use mprString() instead of mprCreateStringVar() to cope with NULL strings

- removed smbcalls_irpc.c as its not needed any more

- allow ldbAdd() and ldbModify() to take multiple ldif records

- added a sprintf() function to ejs. Quite complex, but very useful!
(This used to be commit 625628a3f6e78349d2240ebcc79081f350672070)

11 years agor8339: added ldbAdd(), ldbModify(), ldbDelete() and ldbRename() to ejs ldb functions
Andrew Tridgell [Tue, 12 Jul 2005 02:54:09 +0000 (02:54 +0000)]
r8339: added ldbAdd(), ldbModify(), ldbDelete() and ldbRename() to ejs ldb functions
(This used to be commit 322c2137835ff2d76b3183901bf680780f164b5e)

11 years agor8338: - added a substitute_var() js library function for doing hash driven
Andrew Tridgell [Tue, 12 Jul 2005 02:36:07 +0000 (02:36 +0000)]
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 c2946003e06c4898ba0444cd0b69d3203753be94)

11 years agor8337: - use 64 bit access functions in ejs calls
Andrew Tridgell [Tue, 12 Jul 2005 02:34:49 +0000 (02:34 +0000)]
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 28c1a1f3c0cd2f8228fd8c3c695ab6f45226fa3f)

11 years agor8336: enable 64 bit integer support in ejs
Andrew Tridgell [Tue, 12 Jul 2005 02:31:31 +0000 (02:31 +0000)]
r8336: enable 64 bit integer support in ejs
(This used to be commit 9dd41e78e1d0e5e4007d5063fbcc335abef43718)

11 years agor8335: removed some duplicated code
Andrew Tridgell [Tue, 12 Jul 2005 01:21:18 +0000 (01:21 +0000)]
r8335: removed some duplicated code
(This used to be commit 1536d66662193568a51793d65fb319882db9d089)

11 years agor8334: fixed a ejs bug that prevented functions variables from being called in local...
Andrew Tridgell [Mon, 11 Jul 2005 23:16:50 +0000 (23:16 +0000)]
r8334: fixed a ejs bug that prevented functions variables from being called in local context
(This used to be commit 5ea7ae70813f615769aff7640cc19005e30ecf12)

11 years agor8333: merged with latest upstream ejs sources
Andrew Tridgell [Mon, 11 Jul 2005 22:40:32 +0000 (22:40 +0000)]
r8333: merged with latest upstream ejs sources
(This used to be commit b0f9ddafe95d4e8d846bc72a39e94d22da271348)

11 years agor8332: not done yet, but a lot closer
Andrew Tridgell [Mon, 11 Jul 2005 21:53:10 +0000 (21:53 +0000)]
r8332: not done yet, but a lot closer
(This used to be commit 1d9632877c088837b5c2a7497473e09913775488)

11 years agor8331: added split(), join() and FileLoad() functions to ejs.
Andrew Tridgell [Mon, 11 Jul 2005 21:52:06 +0000 (21:52 +0000)]
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 0ef8f0282e0490328bbcdc8c6daff3f8fac99087)

11 years agor8321: Fix some uninitalized variable warnings
Volker Lendecke [Mon, 11 Jul 2005 15:42:27 +0000 (15:42 +0000)]
r8321: Fix some uninitalized variable warnings
(This used to be commit 126cb3db4b0cf9c382ba7496ba08311f3b669f00)

11 years agor8320: make sure all our returned objects are full objects, which means they
Andrew Tridgell [Mon, 11 Jul 2005 10:18:26 +0000 (10:18 +0000)]
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 570f071b1544b497d5f480b8ad50df097fe4c843)

11 years agor8319: the start of a provision script in ejs. This is why I've been adding
Andrew Tridgell [Mon, 11 Jul 2005 09:20:47 +0000 (09:20 +0000)]
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 333b32025fc2a33d2a145bbce9cdfefa252ec77a)

11 years agor8318: added a bunch more ejs calls.
Andrew Tridgell [Mon, 11 Jul 2005 09:19:50 +0000 (09:19 +0000)]
r8318: added a bunch more ejs calls.

  getgr*()
  getpw*()
  strlower()
  strupper()
  IfaceList()
(This used to be commit 1517ad490dd67302f38ab9dcd8a3b24b73b8d550)

11 years agor8317: convert the example scripts over to the new GetOptions() call
Andrew Tridgell [Mon, 11 Jul 2005 07:43:36 +0000 (07:43 +0000)]
r8317: convert the example scripts over to the new GetOptions() call
(This used to be commit 5f079d74630cf6431ec8af7240f60054cf8b9ab7)

11 years agor8316: give full access to the popt command line parsing in ejs scripts, including
Andrew Tridgell [Mon, 11 Jul 2005 07:42:43 +0000 (07:42 +0000)]
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 775fb56ac287b8d485b38f633b9480d7b7ab64e3)

11 years agor8315: fixed the generation of the serial number in the dns zone file (bind9
Andrew Tridgell [Mon, 11 Jul 2005 05:45:42 +0000 (05:45 +0000)]
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 fc93ade9cdfe97bdcd2383fa256877580707181c)

11 years agor8314: - added an 'installmisc' target for installing miscellaneous files.
Andrew Tridgell [Mon, 11 Jul 2005 05:43:27 +0000 (05:43 +0000)]
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 7c2e31fd11be3ebed680a0fe08a9ff09f7b97c87)

11 years agor8313: moved PRINTF_ATTRIBUTE to replace.h to try to get irix building with heimdal
Andrew Tridgell [Mon, 11 Jul 2005 04:17:54 +0000 (04:17 +0000)]
r8313: moved PRINTF_ATTRIBUTE to replace.h to try to get irix building with heimdal
(This used to be commit 7d4e309f02cfcef661ebf3bbe9c227938318077c)

11 years agor8312: fixed some heimdal header checks from watching the build farm failures
Andrew Tridgell [Mon, 11 Jul 2005 04:10:32 +0000 (04:10 +0000)]
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 753d7ab715701a162689ffe9cdff7c56fcf7f2a2)

11 years agor8311: krb5 uses ENOMEM for out of memory
Andrew Tridgell [Mon, 11 Jul 2005 04:01:22 +0000 (04:01 +0000)]
r8311: krb5 uses ENOMEM for out of memory
(thanks to abartlet for pointing this out)
(This used to be commit 4b16754a0e8be312d671d9ae892a8c14462f8d95)

11 years agor8310: replace the heimdal networking interface scanning code with glue code that...
Andrew Tridgell [Mon, 11 Jul 2005 03:52:31 +0000 (03:52 +0000)]
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 ba621d1c554e135f449a144019b84719a086e04f)

11 years agor8309: more heimdal configure checks needed for FreeBSD
Andrew Tridgell [Mon, 11 Jul 2005 03:09:40 +0000 (03:09 +0000)]
r8309: more heimdal configure checks needed for FreeBSD
(This used to be commit b5e8409e3b046c151996009c2dc980e55f09fb67)

11 years agor8308: use the configured C compiler, instead of forcing gcc in external heimdal...
Andrew Tridgell [Mon, 11 Jul 2005 02:52:15 +0000 (02:52 +0000)]
r8308: use the configured C compiler, instead of forcing gcc in external heimdal tool build
(This used to be commit 39c6cf91fb75dc5d7d14922f70b8be8dc15169e1)

11 years agor8307: try to cope with flex and bison not being installed, in a similar fashion...
Andrew Tridgell [Mon, 11 Jul 2005 02:49:32 +0000 (02:49 +0000)]
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 6ab503b7cc902b8691dc80907bb44f1f705ab8ee)

11 years agor8306: some more heimdal configure checks
Andrew Tridgell [Mon, 11 Jul 2005 02:34:23 +0000 (02:34 +0000)]
r8306: some more heimdal configure checks
(This used to be commit 575413fc863147ee46e1ff658af1d74093fc7686)

11 years agor8305: another attempt at getting heimdal building in the farm
Andrew Tridgell [Mon, 11 Jul 2005 02:08:45 +0000 (02:08 +0000)]
r8305: another attempt at getting heimdal building in the farm
(This used to be commit 2cab29c1e730cf2c8d109513bdb9094769e41a2a)

11 years agor8303: a workaround for forcing HEIMDAL_EXTERNAL to build.
Andrew Tridgell [Mon, 11 Jul 2005 01:45:16 +0000 (01:45 +0000)]
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 2564cd962b9a972d1ff7d603a9e5ab1c705b2386)

11 years agor8302: import mini HEIMDAL into the tree
Heimdal Import User [Mon, 11 Jul 2005 01:16:55 +0000 (01:16 +0000)]
r8302: import mini HEIMDAL into the tree
(This used to be commit 118be28a7aef233799956615a99d1a2a74dac175)

11 years agor8301: use ncalrpc: for ejs tests, to avoid name resolution timeouts as smbd is just...
Andrew Tridgell [Mon, 11 Jul 2005 00:42:59 +0000 (00:42 +0000)]
r8301: use ncalrpc: for ejs tests, to avoid name resolution timeouts as smbd is just starting up
(This used to be commit c0bf253d4b33e1dd23ce46f867758351ece83755)

11 years agor8300: get the js include path right in selftest
Andrew Tridgell [Mon, 11 Jul 2005 00:40:46 +0000 (00:40 +0000)]
r8300: get the js include path right in selftest
(This used to be commit 0e9e541e1e737f35200d64b31ddb4d468ff19518)

11 years agor8299: make the samr swat test use the samr.js lib
Andrew Tridgell [Mon, 11 Jul 2005 00:30:21 +0000 (00:30 +0000)]
r8299: make the samr swat test use the samr.js lib
(This used to be commit 4d4a062af4ee34c5a3a2027ac1950ae3c8d39447)

11 years agor8298: - started building a library of js routines in scripting/libjs/
Andrew Tridgell [Mon, 11 Jul 2005 00:23:57 +0000 (00:23 +0000)]
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 2a444dedbe44347268affc6458196f93ca7d372b)

11 years agor8297: add libinclude() function in ejs, which is like include() but searches a js...
Andrew Tridgell [Mon, 11 Jul 2005 00:13:11 +0000 (00:13 +0000)]
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 ff60529ba2515df29a20b4a417327a3565ec8ee9)

11 years agor8296: - split out the ejs auth functions into a separate file
Andrew Tridgell [Sun, 10 Jul 2005 23:25:42 +0000 (23:25 +0000)]
r8296: - split out the ejs auth functions into a separate file

- got rid of the one line ejs_returnlist()
(This used to be commit 6961fe29058cffd8e69d9ce7e7d3902f973411c0)

11 years agor8295: turn off the delete on close test in the build farm until someone gets
Andrew Tridgell [Sun, 10 Jul 2005 22:17:57 +0000 (22:17 +0000)]
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 c1a3691f87cb46b36ab3194ea1489f443955a76d)

11 years agor8294: Add PLAN file for samba3->samba4 upgrade (Google Summer of Code) project.
Jelmer Vernooij [Sun, 10 Jul 2005 21:41:49 +0000 (21:41 +0000)]
r8294: Add PLAN file for samba3->samba4 upgrade (Google Summer of Code) project.
(This used to be commit 7ebf81adce49d495c4fe8efdbb2e480db541fe35)

11 years agor8289: fallback to the group 'other' for users
Andrew Tridgell [Sun, 10 Jul 2005 12:11:05 +0000 (12:11 +0000)]
r8289: fallback to the group 'other' for users
this might fix the testing on solaris10
(This used to be commit 5adbab0afe85f5f856ab5fcc7a285a22f1752de3)

11 years agor8288: The SMB_ASSERT_ARRAY macro isn't used anymore.
Tim Potter [Sun, 10 Jul 2005 10:52:46 +0000 (10:52 +0000)]
r8288: The SMB_ASSERT_ARRAY macro isn't used anymore.
(This used to be commit aab24385ab736f4072e25ad5702ee0aaf4192ecc)

11 years agor8287: yay! finally irpc calls from ejs are all working.
Andrew Tridgell [Sun, 10 Jul 2005 08:47:34 +0000 (08:47 +0000)]
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 cd1ea857ce19ac2e105230703174634d8b9d5122)

11 years agor8286: it makes more sense to combine the refresh count with the register count,...
Andrew Tridgell [Sun, 10 Jul 2005 08:42:09 +0000 (08:42 +0000)]
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 5006528554a70c25fea15966d68b4002850ebb3e)

11 years agor8285: generate some real stats in the nbt server for the irpc client code to look at
Andrew Tridgell [Sun, 10 Jul 2005 08:41:02 +0000 (08:41 +0000)]
r8285: generate some real stats in the nbt server for the irpc client code to look at
(This used to be commit 73643884a3c76de5a738a28054a168fdb008a9f8)

11 years agor8284: - fixed some uninitialised variables in the irpc code
Andrew Tridgell [Sun, 10 Jul 2005 08:35:18 +0000 (08:35 +0000)]
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 061e20e509d95ffe16d7dd6fba7db39fc7a165ed)

11 years agor8283: make sure we build constant variables for both pull and push side of enums
Andrew Tridgell [Sun, 10 Jul 2005 08:07:12 +0000 (08:07 +0000)]
r8283: make sure we build constant variables for both pull and push side of enums
(This used to be commit 529370ed92f5a683ae7bd34d0cd2ce01c2bda81a)

11 years agor8282: make the deletion of the smbd.tmp directory recursive. This cleans up the...
Andrew Tridgell [Sun, 10 Jul 2005 08:06:28 +0000 (08:06 +0000)]
r8282: make the deletion of the smbd.tmp directory recursive. This cleans up the messaging
directory
(This used to be commit 783679e0df6c059ebd26f78115445e81e304bc84)

11 years agor8281: pass the callnum and rpc interface table directly from the generated
Andrew Tridgell [Sun, 10 Jul 2005 06:51:00 +0000 (06:51 +0000)]
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 1c6b1102e5c2529206b917e7c6b279c4f63d0e9a)

11 years agor8280: - added irpc_connect() for connecting to a irpc server by name
Andrew Tridgell [Sun, 10 Jul 2005 06:21:03 +0000 (06:21 +0000)]
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 1c170138a8e82cb42958b88b94a1d567ffa88a92)

11 years agor8279: make sure we hold a lock when manipulating the irpc names db
Andrew Tridgell [Sun, 10 Jul 2005 06:17:39 +0000 (06:17 +0000)]
r8279: make sure we hold a lock when manipulating the irpc names db
(This used to be commit 9c408d5d7cb82e910ffb5963ddc78e5759513385)

11 years agor8278: this should fix the heimdal h_errno warnings
Andrew Tridgell [Sun, 10 Jul 2005 05:15:08 +0000 (05:15 +0000)]
r8278: this should fix the heimdal h_errno warnings
(This used to be commit 5812e74c4f2b95eec89b434371c86268892feaac)

11 years agor8277: filled in the code for finding irpc server ids by name, storing the
Andrew Tridgell [Sun, 10 Jul 2005 04:54:21 +0000 (04:54 +0000)]
r8277: filled in the code for finding irpc server ids by name, storing the
names in a tdb
(This used to be commit b603a52f27bf90e71d605440d44267dcd94c6939)

11 years agor8276: fixed the remaining memory leaks in smbscript. We can now loop doing
Andrew Tridgell [Sun, 10 Jul 2005 02:37:50 +0000 (02:37 +0000)]
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 9c885a7edb771486793eb287288158157b34e8f3)

11 years agor8275: possibly a more portable way to export symbols in perl?
Andrew Tridgell [Sun, 10 Jul 2005 01:43:10 +0000 (01:43 +0000)]
r8275: possibly a more portable way to export symbols in perl?
(This used to be commit d5153d16e1630e85c05a19b2d279bb1100497be5)

11 years agor8274: Export some more symbols.
Jelmer Vernooij [Sun, 10 Jul 2005 01:16:02 +0000 (01:16 +0000)]
r8274: Export some more symbols.
(This used to be commit d1f754a0a34c5938579a605b4f113100e14bac3d)

11 years agor8273: fixed some memory leaks in smbscript. This required converting
Andrew Tridgell [Sun, 10 Jul 2005 01:10:09 +0000 (01:10 +0000)]
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
(This used to be commit b220756cb4f1d201ba3e771ca67e4bfae5eae748)

11 years agor8272: added the hooks for adding a name to a messaging context, so we will
Andrew Tridgell [Sun, 10 Jul 2005 01:08:10 +0000 (01:08 +0000)]
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.
(This used to be commit 8f69867867857e0c9a9246c2dec9612ccc234724)

11 years agor8271: make the ejs test scripts directly executable scripts using:
Andrew Tridgell [Sun, 10 Jul 2005 00:26:54 +0000 (00:26 +0000)]
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.
(This used to be commit 757c22aab43fadc776006ac5970dbfb46a13fa3c)

11 years agor8270: Export some symbols, making the code more readable.
Jelmer Vernooij [Sun, 10 Jul 2005 00:23:51 +0000 (00:23 +0000)]
r8270: Export some symbols, making the code more readable.
(This used to be commit d64bffa17ea1c46d917e362d51741148b85fb97f)

11 years agor8269: added automatic testing of rpc calls from ejs in 'make test'
Andrew Tridgell [Sun, 10 Jul 2005 00:19:41 +0000 (00:19 +0000)]
r8269: added automatic testing of rpc calls from ejs in 'make test'
(This used to be commit c760180119b4ac9307783bc50892a3dc57b2465e)

11 years agor8268: added the 'needed' logic to ehs generation, so we don't generate
Andrew Tridgell [Sun, 10 Jul 2005 00:08:48 +0000 (00:08 +0000)]
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.
(This used to be commit c7a9dbe70a39156a20e56b4dd732fd838437eecd)

11 years agor8267: re-generated the yapp parser with correct paths
Andrew Tridgell [Sat, 9 Jul 2005 23:37:11 +0000 (23:37 +0000)]
r8267: re-generated the yapp parser with correct paths
(This used to be commit a6922ccd636a343ff13127db0f721e4f9296efb4)

11 years agor8266: Update debian packages
Jelmer Vernooij [Sat, 9 Jul 2005 21:40:15 +0000 (21:40 +0000)]
r8266: Update debian packages
(This used to be commit 35bfb5de6feaeed9854b701b8d38f08a350d91cb)

11 years agor8265: Fixes to the pidl test suite.
Jelmer Vernooij [Sat, 9 Jul 2005 15:56:17 +0000 (15:56 +0000)]
r8265: Fixes to the pidl test suite.
(This used to be commit 1235333afbfab643ea35e9b43f6142da3f6a41d7)

11 years agor8264: - Use standard perl package structure for pidl.
Jelmer Vernooij [Sat, 9 Jul 2005 15:32:08 +0000 (15:32 +0000)]
r8264: - Use standard perl package structure for pidl.
- Only "use" pidl modules in the main executable when necessary

Try 'make install' in build/pidl to install the package (should work stand-alone).
(This used to be commit c620095692122a65ae1c5d85ca20468d4de93c54)

11 years agor8263: Some small pidl fixes, start working towards supporting installation of pidl.
Jelmer Vernooij [Sat, 9 Jul 2005 12:58:08 +0000 (12:58 +0000)]
r8263: Some small pidl fixes, start working towards supporting installation of pidl.
(This used to be commit c785677a14c958a518d5a9755d2b94e81b34bdb3)

11 years agor8262: - simplify the dependency handling for ejs modules
Andrew Tridgell [Sat, 9 Jul 2005 12:53:50 +0000 (12:53 +0000)]
r8262: - simplify the dependency handling for ejs modules

- added config.mk entries for some more pipes

- simplify the handling of ejs variables in the pidl code
(This used to be commit 595304708db69229495c5739b5cacab732afd55f)

11 years agor8261: charset style strings in pidl should be const, just like old style ndr strings
Andrew Tridgell [Sat, 9 Jul 2005 12:51:44 +0000 (12:51 +0000)]
r8261: charset style strings in pidl should be const, just like old style ndr strings
(This used to be commit aa0e1d6699959571963d6e6fb455b33c4436dcdf)

11 years agor8260: added an init based registration system for the generated ejs rpc code, so
Andrew Tridgell [Sat, 9 Jul 2005 11:48:59 +0000 (11:48 +0000)]
r8260: added an init based registration system for the generated ejs rpc code, so
adding a new pipe only involves changes to librpc/config.mk
(This used to be commit 0e54fa446665f380e9c46723a6e2be5a08b8d51c)

11 years agor8259: We want to oset the provided flags not zero
Simo Sorce [Sat, 9 Jul 2005 11:17:33 +0000 (11:17 +0000)]
r8259: We want to oset the provided flags not zero
(This used to be commit 50d8ccacca707738f131e47c739dcfacde1311e6)

11 years agor8258: Release the opendb lock in pvfs_change_create_options.
Volker Lendecke [Sat, 9 Jul 2005 11:06:33 +0000 (11:06 +0000)]
r8258: Release the opendb lock in pvfs_change_create_options.

Volker
(This used to be commit 2c4fd3ff99a4ade613030b3eb47d0ed527a95be3)

11 years agor8257: add a samr rpc test page in the web server. It lists all level3
Andrew Tridgell [Sat, 9 Jul 2005 05:31:38 +0000 (05:31 +0000)]
r8257: add a samr rpc test page in the web server. It lists all level3
information from QueryUserInfo for all users in the domain.

If you want to see why I am putting the effort into ejs, then please
read swat/scripting/samr.js, and compare it to other methods of rpc
access for our web management interface. Using ejs like this will make
building a rich interface _much_ easier.
(This used to be commit eb354f6da7ed79eb080f2ba47df2ea655e1891db)