13 years agor8437: Win32 doesn't have u_int*_t
Jelmer Vernooij [Wed, 13 Jul 2005 21:54:34 +0000 (21:54 +0000)]
r8437: Win32 doesn't have u_int*_t
(This used to be commit 5b007037dfacc5e13141ca41241543ac11a567b6)

13 years agor8436: Check for sys/sockets.h
Jelmer Vernooij [Wed, 13 Jul 2005 21:44:56 +0000 (21:44 +0000)]
r8436: Check for sys/sockets.h
(This used to be commit 7757226ba5930824e32e069dc4986a2a29be40f8)

13 years agor8434: Win32 portability updates from Steven Edwards <>:
Jelmer Vernooij [Wed, 13 Jul 2005 20:44:46 +0000 (20:44 +0000)]
r8434: Win32 portability updates from Steven Edwards <>:
 - undefine anything in the win32 api or PSDK headers that Samba already defines
 - map BSD error codes to Winsock Error codes
(This used to be commit d2ea6191259a28a32a1f4ffdff067b1a80e8dcc9)

13 years agor8430: readd my hack to display the hashes with -d 100
Stefan Metzmacher [Wed, 13 Jul 2005 15:19:28 +0000 (15:19 +0000)]
r8430: readd my hack to display the hashes with -d 100

(This used to be commit b3f01ef0df2579decbbb67586157d089f528dd13)

13 years agor8429: fix compiler warnings
Stefan Metzmacher [Wed, 13 Jul 2005 15:18:20 +0000 (15:18 +0000)]
r8429: fix compiler warnings

(This used to be commit b9ee5818808f2e0cd38c0c5d2ef15cba22d4edbe)

13 years agor8425: add err() and errx() functions needed by for compile_et on some systems
Andrew Tridgell [Wed, 13 Jul 2005 13:55:06 +0000 (13:55 +0000)]
r8425: add err() and errx() functions needed by for compile_et on some systems
(This used to be commit 72a769b6d1a1ce5f8a19010074960b692b4755db)

13 years agor8424: bring in some more of heimdals m4 macros, and remove the hard-coding of severa...
Andrew Tridgell [Wed, 13 Jul 2005 12:35:21 +0000 (12:35 +0000)]
r8424: bring in some more of heimdals m4 macros, and remove the hard-coding of several test
(This used to be commit b173c938b2ced061ee341831e96001455fbf83d1)

13 years agor8423: remove the dependency on the full roken lib for asn1_compile
Andrew Tridgell [Wed, 13 Jul 2005 12:12:33 +0000 (12:12 +0000)]
r8423: remove the dependency on the full roken lib for asn1_compile

this should fix the -lsocket problem on solaris
(This used to be commit 4c462cdab318e69b1ee84837246700ecb36eafca)

13 years agor8422: needed on irix 6.4
Andrew Tridgell [Wed, 13 Jul 2005 11:30:34 +0000 (11:30 +0000)]
r8422: needed on irix 6.4
(This used to be commit db3f227c1c3b837e235566a7df7411d4d7e52c12)

13 years agor8421: needed for build on solaris10
Andrew Tridgell [Wed, 13 Jul 2005 11:28:37 +0000 (11:28 +0000)]
r8421: needed for build on solaris10
(This used to be commit c40d6d4b5cd6613d1161615b6ba213a26acda29e)

13 years agor8420: slowly getting my way through some more heimdal portability fixes
Andrew Tridgell [Wed, 13 Jul 2005 11:17:32 +0000 (11:17 +0000)]
r8420: slowly getting my way through some more heimdal portability fixes
(This used to be commit 59c3de6ca8b8e153e5cfd67da5f2afc2e23d36db)

13 years agor8419: in order to use our replace.h, heimdal needs stdarg.h
Andrew Tridgell [Wed, 13 Jul 2005 11:02:56 +0000 (11:02 +0000)]
r8419: in order to use our replace.h, heimdal needs stdarg.h
(This used to be commit 234fc1fb052fe6a2cef47861b13bdd82b57fc49b)

13 years agor8418: PRINTF_ATTRIBUTE declaration has to come before it is used :-)
Andrew Tridgell [Wed, 13 Jul 2005 10:58:43 +0000 (10:58 +0000)]
r8418: PRINTF_ATTRIBUTE declaration has to come before it is used :-)
(This used to be commit a1ca8352f48cf1942e5a060c79ae1cc78b8a3668)

13 years agor8417: fixed handling of PRINTF_ATTRIBUTE for heimdal portion of build
Andrew Tridgell [Wed, 13 Jul 2005 10:22:13 +0000 (10:22 +0000)]
r8417: fixed handling of PRINTF_ATTRIBUTE for heimdal portion of build
(This used to be commit 117d2fa31d3a7e0b37c09979aa41243c564c0385)

13 years agor8416: added the extra_cflags.txt system from smb-build
Andrew Tridgell [Wed, 13 Jul 2005 09:44:55 +0000 (09:44 +0000)]
r8416: added the extra_cflags.txt system from smb-build

this removes the need for recursive make for heimdal, which is a big
win. It should also make it easier/cleaner to build ldb/tdb/appweb etc
in both in-tree and out-of-tree forms by allowing us to specify
different CFLAGS (and thus different include paths) per directory or
(This used to be commit b2f9b8aa32426198aa21a703ab4f1d59fb77e512)

13 years agor8415: get rid of the last 2 runtime perl scripts
Andrew Tridgell [Wed, 13 Jul 2005 06:08:35 +0000 (06:08 +0000)]
r8415: get rid of the last 2 runtime perl scripts
(This used to be commit b775884474bd28c0c3d45546b1bf3ac52601ed24)

13 years agor8414: Some C++ friendlyness fixes - 'not' is apparently a keyword in C++.
Tim Potter [Wed, 13 Jul 2005 05:55:28 +0000 (05:55 +0000)]
r8414: Some C++ friendlyness fixes - 'not' is apparently a keyword in C++.
(This used to be commit bcfb3a45e4a5962fe763f8071d4458f4bd11605b)

13 years agor8413: mark exprbug() as fixed, and add a new bug
Andrew Tridgell [Wed, 13 Jul 2005 05:32:41 +0000 (05:32 +0000)]
r8413: mark exprbug() as fixed, and add a new bug
(This used to be commit c470c3ceac668635c83aa80730321ae7c41ad626)

13 years agor8412: cope with some lost messages in the ping test (netbsd gets this)
Andrew Tridgell [Wed, 13 Jul 2005 05:31:21 +0000 (05:31 +0000)]
r8412: cope with some lost messages in the ping test (netbsd gets this)
(This used to be commit fcf60823c6171ec109195cb8d61de5b0e02fd005)

13 years agor8411: we need to use mprVarToNumber() instead of var->integer now, to cope with
Andrew Tridgell [Wed, 13 Jul 2005 05:30:23 +0000 (05:30 +0000)]
r8411: we need to use mprVarToNumber() instead of var->integer now, to cope with
the 64 bit integer support

this fixes the exit status from smbscript
(This used to be commit f476e7aeec56a921fd286d3fe2cb0a229e57a9e8)

13 years agor8410: converted the newuser script to js
Andrew Tridgell [Wed, 13 Jul 2005 05:29:05 +0000 (05:29 +0000)]
r8410: converted the newuser script to js
(This used to be commit b90aa3c5a7cd7e91a8fc804c3cd9f2155761cf28)

13 years agor8409: fixed another error found on netbsd.
Andrew Tridgell [Wed, 13 Jul 2005 03:55:22 +0000 (03:55 +0000)]
r8409: fixed another error found on netbsd.

some of our torture code does its own timeout processing, which means
there is no event timer in the event context. To fix this gererically
I have added a 30 second timout to all select/epoll calls so the
callers timeout loop is guaranteed to run eventually
(This used to be commit 01e5aa146439f2dbf6c4133a0b5d910383a6576b)

13 years agor8408: its quite common in our code to free up a connection when we get an
Andrew Tridgell [Wed, 13 Jul 2005 03:25:36 +0000 (03:25 +0000)]
r8408: its quite common in our code to free up a connection when we get an
error, but sometimes a socket option may then happen on the NULL
socket. This has been handled by the individual libraries up to now,
but its cleaner to centralise it here
(This used to be commit d9864e1f9aac1fb19f054c2da996a5099e90941e)

13 years agor8407: fixed a bug left over from our old socket code.
Andrew Tridgell [Wed, 13 Jul 2005 03:01:26 +0000 (03:01 +0000)]
r8407: fixed a bug left over from our old socket code.

Thanks to lha for giving me a login on a netbsd machine to see this
(This used to be commit 4e66f682e4f1c31bbe9441a13af2c245db31433d)

13 years agor8406: make sure we give an error in ldbAdd() if any record fails
Andrew Tridgell [Wed, 13 Jul 2005 02:16:58 +0000 (02:16 +0000)]
r8406: make sure we give an error in ldbAdd() if any record fails
(This used to be commit 632f99017ded607c80022f730b6ec7e37bd13642)

13 years agor8405: update var.c from upstream
Andrew Tridgell [Wed, 13 Jul 2005 00:47:54 +0000 (00:47 +0000)]
r8405: update var.c from upstream
(This used to be commit 288c178d5fef80947590fd58e3c9b1fbcdddcdf6)

13 years agor8404: small upstream merges of appweb code
Andrew Tridgell [Wed, 13 Jul 2005 00:43:16 +0000 (00:43 +0000)]
r8404: small upstream merges of appweb code
(This used to be commit 205ff9a82bd51eae3c1400ea0a24fcf2a662e96f)

13 years agor8403: Reinstate linkpad.gif at Deryck's suggestion.
Tim Potter [Wed, 13 Jul 2005 00:43:00 +0000 (00:43 +0000)]
r8403: Reinstate linkpad.gif at Deryck's suggestion.

Install *.gif from swat/images when installing swat.
(This used to be commit 156e090c2c0ec2c7bdf66405c3742839b82fe757)

13 years agor8401: add a readme pointing to the upstream sources
Andrew Tridgell [Wed, 13 Jul 2005 00:17:02 +0000 (00:17 +0000)]
r8401: add a readme pointing to the upstream sources
(This used to be commit 2dcae5c98ca66a26fd6ae6d27cf7eb31cf16fee3)

13 years agor8400: separate out the mpr code, as it is in the upstream appweb sources
Andrew Tridgell [Wed, 13 Jul 2005 00:12:22 +0000 (00:12 +0000)]
r8400: separate out the mpr code, as it is in the upstream appweb sources
(This used to be commit 0e30b6e4cc9e70975d3179cfeddc4bfcc8c8fbb7)

13 years agor8399: move the ejs and esp code closer to the directory layout used by the
Andrew Tridgell [Wed, 13 Jul 2005 00:06:38 +0000 (00:06 +0000)]
r8399: move the ejs and esp code closer to the directory layout used by the
upstream sources. This makes it much easier to keep it up to date.

I will separate out the mpr code into lib/appweb/mpr next
(This used to be commit 52db7a052baeb0f11361ed69b71cb790039e3cc9)

13 years agor8397: merged an upstream fix for the expression bug tpot found yesterday
Andrew Tridgell [Tue, 12 Jul 2005 23:49:08 +0000 (23:49 +0000)]
r8397: merged an upstream fix for the expression bug tpot found yesterday
(This used to be commit 93712dd894b4ddaa2281034c754c0fa15f5ec34c)

13 years agor8394: Make sure the argument to ctype is*(3) macros are unsigned char as
Love Hörnquist Åstrand [Tue, 12 Jul 2005 22:22:59 +0000 (22:22 +0000)]
r8394: Make sure the argument to ctype is*(3) macros are unsigned char as
required by ISO C99.
(This used to be commit 56fd21c806e816cf4c3d23881f26474f858b45e2)

13 years agor8393: check for bswap16 and bswap32
Love Hörnquist Åstrand [Tue, 12 Jul 2005 22:20:12 +0000 (22:20 +0000)]
r8393: check for bswap16 and bswap32
(This used to be commit 707e3726d3b200edef7995eaa5b41a434d5ce9b1)

13 years agor8390: (smb_pam_start): move variable to scope within #ifdef to avoid warning
Love Hörnquist Åstrand [Tue, 12 Jul 2005 20:56:27 +0000 (20:56 +0000)]
r8390: (smb_pam_start): move variable to scope within #ifdef to avoid warning
for those PAM implementations w/o PAM_RHOST and/or PAM_TTY
(This used to be commit 95cb2d942f7cffc9131519c865656fb615395d04)

13 years agor8377: forgot an ldif test
Simo Sorce [Tue, 12 Jul 2005 13:37:11 +0000 (13:37 +0000)]
r8377: forgot an ldif test
(This used to be commit ed804262dc6abf01ffdeb03a36d94cf40b9f033c)

13 years agor8376: remove version info from
Stefan Metzmacher [Tue, 12 Jul 2005 13:05:50 +0000 (13:05 +0000)]
r8376: remove version info from

(This used to be commit bfce35bf6341d02d8c01105564c05267134f8b0f)

13 years agor8375: - move from netr_StringLarge to lsa_StringLarge
Stefan Metzmacher [Tue, 12 Jul 2005 12:25:50 +0000 (12:25 +0000)]
r8375: - move from netr_StringLarge to lsa_StringLarge

- we need to use lsa_StringLarge in lsa_DnsDomainInfo, to make windows clients happy

(This used to be commit 044d18f85f82b4ab5d71a6ae366052af0dbe8e7e)

13 years agor8374: avoid running flex and bison unless needed
Andrew Tridgell [Tue, 12 Jul 2005 12:12:03 +0000 (12:12 +0000)]
r8374: avoid running flex and bison unless needed

this should stop the files changes in svn for other developers
(This used to be commit 18d3deb777bd6aa4dd102fa2a2838d0afc2bd74c)

13 years agor8373: New wildcard matching code.
Simo Sorce [Tue, 12 Jul 2005 12:04:54 +0000 (12:04 +0000)]
r8373: New wildcard matching code.
This code applies correct ldap standard wildcard matching code
removes WILDCARD matching from tdb @ATTRIBUTES, that's now handled independently
adds some more tests for wildcard matching
fixes dn comparison code in ldb_match
(This used to be commit 4eb5863042011988d85092d7dde3d809aa15bd59)

13 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)

13 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...

(This used to be commit b920b306b3813ba4a220249dbd7e443605074c9b)

13 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

(This used to be commit 206f33778e8ff88b5eea493ead31342cc4405a22)

13 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)

13 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

(This used to be commit 0a07e4ef8d869d35ceb0761495e367077f2361ba)

13 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)

13 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)

13 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)

13 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

(This used to be commit c4c93eeec20ceb062d37f392139a5ef8bbb626f5)

13 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 ##
configure: WARNING:     ## ---------------------------------------- ##
(This used to be commit f872686d83e3fbfaff89f2ff7ca2457c0a72d27c)

13 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)

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

(This used to be commit 9739aa75d27e854657c97208850f07d40adb4dbd)

13 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
(This used to be commit 797d9cf0c72992b2d5b9912d0f41873b6acc3195)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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.

(This used to be commit 1517ad490dd67302f38ab9dcd8a3b24b73b8d550)

13 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)

13 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,

this allows scripts to support their own extended options properly
(This used to be commit 775fb56ac287b8d485b38f633b9480d7b7ab64e3)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)

13 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)