bbaumbach/samba-autobuild/.git
13 years agor8758: Use official version numbering standard for debian packages.
Jelmer Vernooij [Mon, 25 Jul 2005 19:30:22 +0000 (19:30 +0000)]
r8758: Use official version numbering standard for debian packages.
(This used to be commit 8c3cdbc239706be36c4264e29b49ae9b9e50bfe8)

13 years agor8753: fixed directory handling on systems that do not return . and .. as the
Andrew Tridgell [Mon, 25 Jul 2005 10:40:17 +0000 (10:40 +0000)]
r8753: fixed directory handling on systems that do not return . and .. as the
first two entries in a directory. This is what caused the FC3 system
shelob in the build farm to fail the RAW-UNLINK and RAW-SEARCH tests.
(This used to be commit f48abaaaca301c025ebd381f62345b3869809917)

13 years agor8752: With all the infrustructure done, details like a SamSync migration
Andrew Bartlett [Mon, 25 Jul 2005 06:33:51 +0000 (06:33 +0000)]
r8752: With all the infrustructure done, details like a SamSync migration
into LDB are actually quite easy.

This brings us the users, and sets basic domain information.

You are expected to have provisioned with the settings for the target
domain, and have joined the domain as a BDC.  Then simply 'net
samsync'.

Now we just need to flesh out the delta types.

Andrew Bartlett
(This used to be commit 1e0f7792bb29b17c23197a5e42ee8cabb0cf17d0)

13 years agor8750: drat, on some systems dirfd() is a macro
Andrew Tridgell [Mon, 25 Jul 2005 04:39:20 +0000 (04:39 +0000)]
r8750: drat, on some systems dirfd() is a macro
(This used to be commit d974bf3589e1b0cd1d5661a21571b81e99350709)

13 years agor8749: for completeness, add rewinddir() and dirfd()
Andrew Tridgell [Mon, 25 Jul 2005 04:34:14 +0000 (04:34 +0000)]
r8749: for completeness, add rewinddir() and dirfd()
(This used to be commit ce022e40908dabad41de276941d2ee7a5739aea4)

13 years agor8748: fixed build. Andrew, please check.
Andrew Tridgell [Mon, 25 Jul 2005 04:15:57 +0000 (04:15 +0000)]
r8748: fixed build. Andrew, please check.
(This used to be commit 9411bd4e5e7ac9fd0aacd1432de967eda45e64f4)

13 years agor8747: remove unused code
Andrew Tridgell [Mon, 25 Jul 2005 04:03:22 +0000 (04:03 +0000)]
r8747: remove unused code
(This used to be commit 60a07da59dfe6dd89f01c6fb494debeda1a1984d)

13 years agor8746: replace opendir/readdir/telldir/seekdir/closedir on systems where they
Andrew Tridgell [Mon, 25 Jul 2005 04:03:01 +0000 (04:03 +0000)]
r8746: replace opendir/readdir/telldir/seekdir/closedir on systems where they
are broken (apparently all BSD systems). This breakage leads to unlink
on files in an open directory causing a later seekdir to miss
files. The bug happens due to a block boundary bug in the BSD libc
implementation of these calls.

This replacement code also fixes a severe memory usage problem with
telldir that can cause closedir() to take an arbitrary amount of time.

I have reported the bug in readdir to Greg Lehey (a FreeBSD maintainer)
(This used to be commit e1bf7c4279fbc03a52497d24cea375e75059cba1)

13 years agor8745: make ldap.js cleanup after itself
Andrew Tridgell [Mon, 25 Jul 2005 02:26:38 +0000 (02:26 +0000)]
r8745: make ldap.js cleanup after itself
(This used to be commit 3a1c6a176ed37b4d696dab52b2f2e8ce5b681ff5)

13 years agor8744: Split 'net samdump' out into a separate file
Andrew Bartlett [Mon, 25 Jul 2005 02:23:41 +0000 (02:23 +0000)]
r8744: Split 'net samdump' out into a separate file

Work on the talloc memory tree, as I think talloc_reference and other
things were biting me.

Crush unions in the name of code reform. ;-)

Andrew Bartlett
(This used to be commit 2eadcf46699f1cc7adb2066e17096f70c7b73998)

13 years agor8743: automatically find the basedn in ldap.js
Andrew Tridgell [Mon, 25 Jul 2005 02:23:27 +0000 (02:23 +0000)]
r8743: automatically find the basedn in ldap.js
(This used to be commit bdca9537a260369a53cbb286642db86bc3ea0828)

13 years agor8742: fixed handling of zero length names in mprObject()
Andrew Tridgell [Mon, 25 Jul 2005 02:23:04 +0000 (02:23 +0000)]
r8742: fixed handling of zero length names in mprObject()
(This used to be commit 8086c37df65ac666aa340141d3584e9bc2c81278)

13 years agor8741: Kill warnings about enums not fully enumerated, as we will never use
Andrew Bartlett [Mon, 25 Jul 2005 01:19:16 +0000 (01:19 +0000)]
r8741: Kill warnings about enums not fully enumerated, as we will never use
all the branches.

Andrew Bartlett
(This used to be commit 258e5e302e461d789e5c353e1a0d81ce33b52f6b)

13 years agor8740: Extend the rdn_name module to handle adding the rdn as an attribute. ie:
Andrew Bartlett [Mon, 25 Jul 2005 01:17:09 +0000 (01:17 +0000)]
r8740: Extend the rdn_name module to handle adding the rdn as an attribute.  ie:

dn: cn=foo,ou=bar
objectClass: person

implies

dn: cn=foo,ou=bar
objectClass: person
cn: foo
(as well as a pile more default attributes)

We also correct the case in the attirbute to match that in the DN
(win2k3 behaviour) and I have a testsuite (in ejs) to prove it.

This module also found a bug in our provision.ldif, so and reduces
code complexity in the samdb module.

Andrew Bartlett
(This used to be commit 0cc58f5c3cce12341ad0f7a90cdd85a3fab786b3)

13 years agor8738: Test (using ejs!) the basic operation of the ldb modules.
Andrew Bartlett [Sun, 24 Jul 2005 22:18:01 +0000 (22:18 +0000)]
r8738: Test (using ejs!) the basic operation of the ldb modules.

ejs seems to test this stuff very nicely!

Andrew Bartlett
(This used to be commit 325f6d24dfc285587bde9fea6eeaf136c2731eff)

13 years agor8736: this fixes the ldb speed (raises BENCH-WINS from 15 ops/sec to over 4000)
Andrew Tridgell [Sun, 24 Jul 2005 12:38:42 +0000 (12:38 +0000)]
r8736: this fixes the ldb speed (raises BENCH-WINS from 15 ops/sec to over 4000)

simo, we need to be careful to cope with this sort of direct dn query efficiently
(This used to be commit 7b37923b726752101062fa8a92d3f96e41d55602)

13 years agor8735: added NBT and WINS testing to 'make test' so we will know if it breaks again
Andrew Tridgell [Sun, 24 Jul 2005 12:24:34 +0000 (12:24 +0000)]
r8735: added NBT and WINS testing to 'make test' so we will know if it breaks again
(This used to be commit 519812a9e8da777e4dff1dec22bd8a96c05c50c9)

13 years agor8734: fixed the wins server for the new ldb DN restrictions.
Andrew Tridgell [Sun, 24 Jul 2005 12:18:11 +0000 (12:18 +0000)]
r8734: fixed the wins server for the new ldb DN restrictions.

This gets it working, but I'm rather worried about the speed. We used
to get more than 5000 ops/sec, but now we are down to around 15
ops/sec. I suspect a bug in ldb.
(This used to be commit 83727bf72c970effdc5995e2f6e7816a57887b5c)

13 years agor8729: make the RAW-SEARCH test more robust to servers with hash based directory...
Andrew Tridgell [Sun, 24 Jul 2005 01:01:00 +0000 (01:01 +0000)]
r8729: make the RAW-SEARCH test more robust to servers with hash based directory ordering
(This used to be commit 8c4d0cd7b7063116ab08545dbe5f23390c7973c4)

13 years agor8726: increase default session timeout to 15 minutes to be less painful for developers
Andrew Tridgell [Sat, 23 Jul 2005 11:11:37 +0000 (11:11 +0000)]
r8726: increase default session timeout to 15 minutes to be less painful for developers
(This used to be commit d40e590674a20528a5649e1cfd377ee661265bb9)

13 years agor8725: redirect to the base install page not the provisioning page on first
Andrew Tridgell [Sat, 23 Jul 2005 11:05:32 +0000 (11:05 +0000)]
r8725: redirect to the base install page not the provisioning page on first
use
(This used to be commit eeeeab5eb7aff4fa3b25fa07a352eda74c44db6c)

13 years agor8724: some boilerplate installation text
Andrew Tridgell [Sat, 23 Jul 2005 11:03:24 +0000 (11:03 +0000)]
r8724: some boilerplate installation text
(This used to be commit 5b28bdb9c800e8fbf2c7ee62a7c6faf2ec773ef9)

13 years agor8723: fix esptest menu
Andrew Tridgell [Sat, 23 Jul 2005 10:59:05 +0000 (10:59 +0000)]
r8723: fix esptest menu
(This used to be commit 5a52729d5b81336973adaf277d265445b78b2ea7)

13 years agor8722: make the menu handling considerably saner and easier to follow. The whole
Andrew Tridgell [Sat, 23 Jul 2005 10:58:09 +0000 (10:58 +0000)]
r8722: make the menu handling considerably saner and easier to follow. The whole
menu hierarchy is now in /menu.js
(This used to be commit c2a450bb9967caa666628f067a8e732227854ce2)

13 years agor8721: Further work on libnet_rpc_usermod function. Now it can change
Rafal Szczesniak [Sat, 23 Jul 2005 10:27:45 +0000 (10:27 +0000)]
r8721: Further work on libnet_rpc_usermod function. Now it can change
both account name and full name.

rafal
(This used to be commit 1a779f8643c43677c62fed6ec4bfb54b08647f5b)

13 years agor8720: split form object out to separate include file, and make it a real
Andrew Tridgell [Sat, 23 Jul 2005 09:05:34 +0000 (09:05 +0000)]
r8720: split form object out to separate include file, and make it a real
object, with a display() method
(This used to be commit c45c4e335ed5da1e2e43ffcb9e8d6c32678faa3c)

13 years agor8718: try to improve the 2 level menu a bit.
Andrew Tridgell [Sat, 23 Jul 2005 08:54:09 +0000 (08:54 +0000)]
r8718: try to improve the 2 level menu a bit.

Deryck, if you get a chance, could you see how to make this a little
"left and up" arrow instead of "Main Menu" ?
(This used to be commit c6c1b2998c68b40496fe605097900071704d6474)

13 years agor8717: Add monitor message emiting in userdel and usermod calls.
Rafal Szczesniak [Fri, 22 Jul 2005 17:45:42 +0000 (17:45 +0000)]
r8717: Add monitor message emiting in userdel and usermod calls.

rafal
(This used to be commit 4b3aa69e70ed5d6e78f6f45f8f43649ad9ae108d)

13 years agor8715: - revert the %PRIi64 stuff. Tim, we explicitly check for %llu support
Andrew Tridgell [Fri, 22 Jul 2005 11:32:01 +0000 (11:32 +0000)]
r8715: - revert the %PRIi64 stuff. Tim, we explicitly check for %llu support
  in configure, and replace snprintf if the system doesn't support
  it. Our replacement code does not handle the "%PRIi64" stuff, so
  using it would break us on lots of platforms

- fixed constant array initialisers to work on HPUX.
(This used to be commit c6bae3e87e2dcb3a89bbb32da131627c60871e3d)

13 years agor8714: Oops - get it right this time!
Tim Potter [Fri, 22 Jul 2005 11:19:55 +0000 (11:19 +0000)]
r8714: Oops - get it right this time!
(This used to be commit 1d2b708da657a3f3c81bb60600f66bc359c2eab7)

13 years agor8713: Experiment to try and fix warnings on 64-bit machines without breaking
Tim Potter [Fri, 22 Jul 2005 11:16:32 +0000 (11:16 +0000)]
r8713: Experiment to try and fix warnings on 64-bit machines without breaking
32-bit ones.  Yes, this weird looking macros are part of C99.
(This used to be commit 7b316f119b8486b75ebe63b185c50fab82313e58)

13 years agor8712: cleanup old search test code to use talloc
Andrew Tridgell [Fri, 22 Jul 2005 10:58:49 +0000 (10:58 +0000)]
r8712: cleanup old search test code to use talloc
(This used to be commit 1d830bcd473a2166b6f89281faabb001697e35d4)

13 years agor8711: add m4 for finding return type for signal handlers
Andrew Tridgell [Fri, 22 Jul 2005 10:48:22 +0000 (10:48 +0000)]
r8711: add m4 for finding return type for signal handlers

this patch brought to you by the continuing saga of HPUX portability
(This used to be commit 4d63bd27d482ec84078c4541166b16cd82cfeb6a)

13 years agor8710: another attempt at fixing HPUX
Andrew Tridgell [Fri, 22 Jul 2005 10:01:26 +0000 (10:01 +0000)]
r8710: another attempt at fixing HPUX
(This used to be commit eb3b3c8b407b2208291385539c3379f0420a448e)

13 years agor8709: fixed the assumption in RAW-SEARCH that directories are returned in sorted...
Andrew Tridgell [Fri, 22 Jul 2005 09:49:32 +0000 (09:49 +0000)]
r8709: fixed the assumption in RAW-SEARCH that directories are returned in sorted order
(This used to be commit 92afff5fe7134872f12c25628d047b2a92e92a37)

13 years agor8708: fixed an assert that abartlet found
Andrew Tridgell [Fri, 22 Jul 2005 07:21:59 +0000 (07:21 +0000)]
r8708: fixed an assert that abartlet found
(This used to be commit f5e6547c28b2069ae80da5037c5f8d0661da652c)

13 years agor8707: this typedef isn't used, and breaks the build on HPUX, so I've removed it
Andrew Tridgell [Fri, 22 Jul 2005 06:52:46 +0000 (06:52 +0000)]
r8707: this typedef isn't used, and breaks the build on HPUX, so I've removed it
(This used to be commit b9b8714297401664fcf8380d4c90ee22b7341d35)

13 years agor8706: My previous patch oversimplied the previous change to session setup -
Andrew Bartlett [Fri, 22 Jul 2005 05:04:45 +0000 (05:04 +0000)]
r8706: My previous patch oversimplied the previous change to session setup -
we didn't cope with the 'anonymous NTLM under SPNEGO' login.

Andrew Bartlett
(This used to be commit c3cc14542e426b23e468a11803c1bab0f6fe290f)

13 years agor8703: cope with null string in interpret_addr()
Andrew Tridgell [Fri, 22 Jul 2005 04:32:59 +0000 (04:32 +0000)]
r8703: cope with null string in interpret_addr()
(This used to be commit ff156f7aae29045edd898635d16d141b3e848f3f)

13 years agor8702: fixed ntlm_auth build. Andrew, can you check I got this right?
Andrew Tridgell [Fri, 22 Jul 2005 04:30:11 +0000 (04:30 +0000)]
r8702: fixed ntlm_auth build. Andrew, can you check I got this right?
(This used to be commit 3c12b46e320412e4746fced7e2898f892e815118)

13 years agor8701: Fix up auth_developer for recent changes.
Andrew Bartlett [Fri, 22 Jul 2005 04:18:16 +0000 (04:18 +0000)]
r8701: Fix up auth_developer for recent changes.

Andrew Bartlett
(This used to be commit 1bc5a1190765571719dd0aaacef1413bba812617)

13 years agor8700: Propmted by tridge's need to do plaintext auth in ejs, rework the
Andrew Bartlett [Fri, 22 Jul 2005 04:10:07 +0000 (04:10 +0000)]
r8700: Propmted by tridge's need to do plaintext auth in ejs, rework the
user_info strcture in auth/

This moves it to a pattern much like that found in ntvfs, with
functions to migrate between PAIN, HASH and RESPONSE passwords.

Instead of make_user_info*() functions, we simply fill in the control
block in the callers, per recent dicussions on the lists.  This
removed a lot of data copies as well as error paths, as we can grab
much of it with talloc.

Andrew Bartlett
(This used to be commit ecbd2235a3e2be937440fa1dc0aecc5a047eda88)

13 years agor8699: removed invalid comment
Andrew Bartlett [Fri, 22 Jul 2005 04:06:28 +0000 (04:06 +0000)]
r8699: removed invalid comment
(This used to be commit f5910ceef5e1ec3fe40b4589e919fe502593b582)

13 years agor8698: attempt to cope with lack of strtoull() on HPUX
Andrew Tridgell [Fri, 22 Jul 2005 03:46:57 +0000 (03:46 +0000)]
r8698: attempt to cope with lack of strtoull() on HPUX
(This used to be commit c84c516b179fcbbcdb36c0c0aa4ffb4ff12f2c35)

13 years agor8696: fixed ejs to more strictly follow the va_list rules. Might fix that
Andrew Tridgell [Fri, 22 Jul 2005 01:56:51 +0000 (01:56 +0000)]
r8696: fixed ejs to more strictly follow the va_list rules. Might fix that
pesky panic on x86_64
(This used to be commit 80177b29f4b32996d41a87df041c4c1bfb6876c2)

13 years agor8693: Test code for usermod routine.
Rafal Szczesniak [Thu, 21 Jul 2005 22:33:47 +0000 (22:33 +0000)]
r8693: Test code for usermod routine.

rafal
(This used to be commit 19f5ea9c9c2a46c110e5946605432116cb2ad7b3)

13 years agor8692: Starting parts of code to provide user modify functionality.
Rafal Szczesniak [Thu, 21 Jul 2005 22:32:04 +0000 (22:32 +0000)]
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
(This used to be commit bee1c9ec2dea4cad703386af35470c7d74cef4b0)

13 years agor8690: Code cleanups, improvements necessary for dependencies (not added yet)
Jelmer Vernooij [Thu, 21 Jul 2005 21:27:39 +0000 (21:27 +0000)]
r8690: Code cleanups, improvements necessary for dependencies (not added yet)
(This used to be commit 7384b3c4a1450ad63356dcf586e3a7e7335f8e6d)

13 years agor8685: an alpha in the build farm is dying with a floating point
Andrew Tridgell [Thu, 21 Jul 2005 14:04:13 +0000 (14:04 +0000)]
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
(This used to be commit 802724cf69e65a07202f3399a4321a35c2f3c018)

13 years agor8684: this should fix the panic on x86_64, and possibly alpha
Andrew Tridgell [Thu, 21 Jul 2005 14:00:51 +0000 (14:00 +0000)]
r8684: this should fix the panic on x86_64, and possibly alpha
(This used to be commit c2f5884e2f8a033446467384b6c058567b2fb9ce)

13 years agor8681: if SOCKET_WRAPPER_DIR starts with ./ then strip it internally. This saves...
Andrew Tridgell [Thu, 21 Jul 2005 13:45:07 +0000 (13:45 +0000)]
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
(This used to be commit e6d9cde482ad9f3fa91d9ce3638e2ec6530b3a9c)

13 years agor8680: try harder to find the binary for gdb in the backtrace
Andrew Tridgell [Thu, 21 Jul 2005 12:35:00 +0000 (12:35 +0000)]
r8680: try harder to find the binary for gdb in the backtrace
(This used to be commit e84871dd3232de73104bee81dd877cc329cd1970)

13 years agor8679: only call fault setup once (thanks to andrew for pointing this out)
Andrew Tridgell [Thu, 21 Jul 2005 12:20:18 +0000 (12:20 +0000)]
r8679: only call fault setup once (thanks to andrew for pointing this out)
(This used to be commit f8a2b032a70dd63f4454b982d00168dcf6793202)

13 years agor8678: setup for gdb backtrace in 'make test'
Andrew Tridgell [Thu, 21 Jul 2005 12:11:52 +0000 (12:11 +0000)]
r8678: setup for gdb backtrace in 'make test'
(This used to be commit acf8c8fd4995acef47390df5a7d4e611c597367d)

13 years agor8677: The first part of the domain name may not be equal to the netbios domain name.
Andrew Bartlett [Thu, 21 Jul 2005 11:28:24 +0000 (11:28 +0000)]
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
(This used to be commit 2303e24be74570187b23c3d31d0433263c83ba7e)

13 years agor8676: attribute lists in ldb searches must be NULL terminated
Andrew Tridgell [Thu, 21 Jul 2005 10:57:52 +0000 (10:57 +0000)]
r8676: attribute lists in ldb searches must be NULL terminated

this is what was causing the panic on the s390 box
(This used to be commit 3a49626ae17d6076f0fc54b0453acb459d88297c)

13 years agor8674: With the rdn_name module, we don't need this duplication in the samdb
Andrew Bartlett [Thu, 21 Jul 2005 09:19:21 +0000 (09:19 +0000)]
r8674: With the rdn_name module, we don't need this duplication in the samdb
module any more.

Andrew Bartlett
(This used to be commit da48e77e7ca21bc99f2829a22ea3dc96ba413191)

13 years agor8671: use much shorter names for the selftest directory and socket wrapper
Andrew Tridgell [Thu, 21 Jul 2005 08:42:17 +0000 (08:42 +0000)]
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 :-(
(This used to be commit f9693e313da67e1347a607db5d3ebbf36e02a77a)

13 years agor8670: Remove GUID code from SAMR, it is handled lower down now. I notice
Andrew Bartlett [Thu, 21 Jul 2005 08:34:54 +0000 (08:34 +0000)]
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
(This used to be commit 968bcc4fe8142319ca0a2ac9e3a895b5436b4552)

13 years agor8669: The objectguid module belongs in Samba's ldb module collection, not in
Andrew Bartlett [Thu, 21 Jul 2005 08:32:07 +0000 (08:32 +0000)]
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
(This used to be commit 8054abc76e5e3588cebc7fc01062a1223b7f140b)

13 years agor8668: fixed a segv during upgrade of a very old ldb.
Andrew Tridgell [Thu, 21 Jul 2005 08:06:39 +0000 (08:06 +0000)]
r8668: fixed a segv during upgrade of a very old ldb.
Thanks to volker for finding this one too. Keep them coming!
(This used to be commit 756796ad2ea86a9471d1b09e66b1a74c4523f6f4)

13 years agor8667: Further simply the provision script, by removing the 'name' attribute.
Andrew Bartlett [Thu, 21 Jul 2005 07:59:01 +0000 (07:59 +0000)]
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
(This used to be commit ed1f2e029c840d2b3ecb49dbe6e8cd67588eeeed)

13 years agor8666: The same fix as the last commit, I was caught out on a move from a
Andrew Bartlett [Thu, 21 Jul 2005 07:57:20 +0000 (07:57 +0000)]
r8666: The same fix as the last commit, I was caught out on a move from a
BOOL to int function return.

Andrew Bartlett
(This used to be commit e03e00fe606db443783f1dea03411025c01c7de5)

13 years agor8665: fixed a segv at high debug level in the web server
Andrew Tridgell [Thu, 21 Jul 2005 07:52:31 +0000 (07:52 +0000)]
r8665: fixed a segv at high debug level in the web server
thanks to volker for finding this
(This used to be commit e02d7753f77327e3ca295a86afde9ea74ddcf5e0)

13 years agor8664: I got caught out not testing...
Andrew Bartlett [Thu, 21 Jul 2005 07:15:55 +0000 (07:15 +0000)]
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
(This used to be commit 1982fdb6f3355494ecaae93280eea4e69c78430f)

13 years agor8663: Since simo constructed the samdb module, he and tridge have worked on
Andrew Bartlett [Thu, 21 Jul 2005 05:24:02 +0000 (05:24 +0000)]
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
(This used to be commit 2408f322765fc1b1769d5c8ea69eae4d968cd195)

13 years agor8662: Revert change to CN=Cert Publishers, this group still needs to
Andrew Bartlett [Thu, 21 Jul 2005 05:21:27 +0000 (05:21 +0000)]
r8662: Revert change to CN=Cert Publishers, this group still needs to
override the template for these attributes.

Andrew Bartlett
(This used to be commit 3462cbadb285313dfd88234b144d1921d2bcc880)

13 years agor8661: added strstr() ejs function in string lib
Andrew Tridgell [Thu, 21 Jul 2005 04:10:35 +0000 (04:10 +0000)]
r8661: added strstr() ejs function in string lib
(This used to be commit a569fc8924e8c8edbdfa7efc89ad99659af8c379)

13 years agor8660: Use templates for the initial provision of user and computer accounts.
Andrew Bartlett [Thu, 21 Jul 2005 02:12:20 +0000 (02:12 +0000)]
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
(This used to be commit 4a8ef7197ff938942832034453f843cb8a50f2d1)

13 years agor8659: return ldif formatted attributes in the ejs ldb search call, so sids show...
Andrew Tridgell [Thu, 21 Jul 2005 01:56:22 +0000 (01:56 +0000)]
r8659: return ldif formatted attributes in the ejs ldb search call, so sids show up as strings
not binary blobs
(This used to be commit d2c29a5a51f68cabb9ef587376bf0a6b936cdd76)

13 years agor8658: move use of lp_security() and lp_nt_status_support() into the connection struc...
Andrew Tridgell [Thu, 21 Jul 2005 01:43:26 +0000 (01:43 +0000)]
r8658: move use of lp_security() and lp_nt_status_support() into the connection structure.
This massively reduces the number of lp_*() calls made
(This used to be commit b1d577f48d31c0c17ad0b6abd78120087408e58d)

13 years agor8652: added a test for the boolean bug just fixed
Andrew Tridgell [Wed, 20 Jul 2005 11:56:07 +0000 (11:56 +0000)]
r8652: added a test for the boolean bug just fixed
(This used to be commit 19ae68f59ad9b81005eb68b3773f24234c0f891d)

13 years agor8651: fixed a boolean expression bug (submitted upstream)
Andrew Tridgell [Wed, 20 Jul 2005 11:55:20 +0000 (11:55 +0000)]
r8651: fixed a boolean expression bug (submitted upstream)
(This used to be commit bd4c388cd2653823e012f1cd8c14832ee032eb11)

13 years agor8650: Use the timestamps and a new objectguid module rather than placing
Andrew Bartlett [Wed, 20 Jul 2005 11:43:23 +0000 (11:43 +0000)]
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
(This used to be commit 940ed9827f5ab83b668a60a2b0110567dd54c3e2)

13 years agor8649: added smbscript to the list of binaries to install
Andrew Tridgell [Wed, 20 Jul 2005 11:30:45 +0000 (11:30 +0000)]
r8649: added smbscript to the list of binaries to install
(This used to be commit f5e39455a8e7aff54503857ec148c880aac71fac)

13 years agor8648: automatically redirect to provisioning if not yet provisioned when the
Andrew Tridgell [Wed, 20 Jul 2005 11:26:17 +0000 (11:26 +0000)]
r8648: automatically redirect to provisioning if not yet provisioned when the
home page in swat is accessed
(This used to be commit 78fb559c08d55c01f5ede81d43cdd857cce8d338)

13 years agor8647: no diffrences between the heimdal and no heimdal case when building
Love Hörnquist Åstrand [Wed, 20 Jul 2005 11:18:52 +0000 (11:18 +0000)]
r8647: no diffrences between the heimdal and no heimdal case when building
(This used to be commit 08eb97c264d238304908c251d1de7fe2ed8b5a1e)

13 years agor8646: update install howto for new provision code
Andrew Tridgell [Wed, 20 Jul 2005 11:15:52 +0000 (11:15 +0000)]
r8646: update install howto for new provision code
(This used to be commit bfc3270fb6177b01cb60e02c231084170c9ec15f)

13 years agor8645: updated the ldb esp test for the new ldb ejs syntax
Andrew Tridgell [Wed, 20 Jul 2005 11:13:11 +0000 (11:13 +0000)]
r8645: updated the ldb esp test for the new ldb ejs syntax

simo, when changing ejs syntax, please grep -r through the *.js and *.esp files to
fix all the callers. Thanks :)
(This used to be commit 8d0c9557a29a802800257af1bab38bfe57928c17)

13 years agor8644: This is a more useful error than unsuccesful.
Andrew Bartlett [Wed, 20 Jul 2005 10:54:50 +0000 (10:54 +0000)]
r8644: This is a more useful error than unsuccesful.

Andrew Bartlett
(This used to be commit d7136c93fb7ddf27d914329a7c9fd77de22d4356)

13 years agor8643: - make lp_configfile() work again
Andrew Tridgell [Wed, 20 Jul 2005 10:07:48 +0000 (10:07 +0000)]
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
(This used to be commit c2691ef7126ddcee5f95970b78759b40a049d0a7)

13 years agor8642: - fixed install of new swat files
Andrew Tridgell [Wed, 20 Jul 2005 08:39:53 +0000 (08:39 +0000)]
r8642: - fixed install of new swat files

- removed old provisioning items from esptest menu
(This used to be commit 760cc6bea5661245a8e4e18f103148281e31aaac)

13 years agor8640: continue the trend by moving the ejs random calls into an object
Andrew Tridgell [Wed, 20 Jul 2005 07:29:23 +0000 (07:29 +0000)]
r8640: continue the trend by moving the ejs random calls into an object
(This used to be commit ed4fb68ef7c28e415408e923bd9eefcd2d60f355)

13 years agor8639: moved loadparm calls into an ejs object
Andrew Tridgell [Wed, 20 Jul 2005 07:20:03 +0000 (07:20 +0000)]
r8639: moved loadparm calls into an ejs object
(This used to be commit 2dc493eea6f9d87c40ad0dc755f528ce0b33ca47)

13 years agor8638: continue the trend of maknig our C functions true ejs objects by making the...
Andrew Tridgell [Wed, 20 Jul 2005 07:04:07 +0000 (07:04 +0000)]
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
(This used to be commit a978484738168b82441c4dc4f5f803d349769a4b)

13 years agor8637: added sys.stat() and sys.lstat() calls
Andrew Tridgell [Wed, 20 Jul 2005 07:01:09 +0000 (07:01 +0000)]
r8637: added sys.stat() and sys.lstat() calls
(This used to be commit 5dbdf4fb3317964541339615b7ecbf174a2dc00b)

13 years agor8636: fixed the ejs ldb test to work with the new ldb.search() syntax, and
Andrew Tridgell [Wed, 20 Jul 2005 06:21:30 +0000 (06:21 +0000)]
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
(This used to be commit 42ae50db8108ddc7c33f832d8752f809c99de157)

13 years agor8635: make object inheritance with the builtin objects easy by allowing
Andrew Tridgell [Wed, 20 Jul 2005 06:20:36 +0000 (06:20 +0000)]
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.
(This used to be commit 6a1ed328e27769bd52899fc2437a43fc17104eff)

13 years agor8634: we are still getting occasional test failures due to disk space
Andrew Tridgell [Wed, 20 Jul 2005 05:49:49 +0000 (05:49 +0000)]
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.
(This used to be commit 668dd29259198698c556c50e28a9070085db89ea)

13 years agor8633: check for valid input to ejs_userAuth()
Andrew Tridgell [Wed, 20 Jul 2005 05:41:29 +0000 (05:41 +0000)]
r8633: check for valid input to ejs_userAuth()
(This used to be commit 8e788ae3094220e5ea195cdf85abb6763a834abd)

13 years agor8632: use <pre> around displayed exceptions
Andrew Tridgell [Wed, 20 Jul 2005 05:40:51 +0000 (05:40 +0000)]
r8632: use <pre> around displayed exceptions
(This used to be commit 001917cc9dec4bdf8839ef175edad352b2763239)

13 years agor8631: give an error on incorrect argument count
Andrew Tridgell [Wed, 20 Jul 2005 05:40:24 +0000 (05:40 +0000)]
r8631: give an error on incorrect argument count
(This used to be commit ed09e19794d9625553bc48892a2e08b84d7bdcf4)

13 years agor8630: give a much nicer backtrace on assert() failures in ejs
Andrew Tridgell [Wed, 20 Jul 2005 05:13:01 +0000 (05:13 +0000)]
r8630: give a much nicer backtrace on assert() failures in ejs

I will submit this upstream
(This used to be commit a2266f6927d953459bd4b02fbca0a9c95c18494e)

13 years agor8629: - moved the getDomainList() call out of smbcalls_auth.c and into libjs/auth.js
Andrew Tridgell [Wed, 20 Jul 2005 04:27:09 +0000 (04:27 +0000)]
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.
(This used to be commit 9e07c08a71908e99c2f44efc40a3249facd6850f)

13 years agor8628: add retries to the normal paths of nbt name resolution. UDP broadcasts are...
Andrew Tridgell [Wed, 20 Jul 2005 04:21:10 +0000 (04:21 +0000)]
r8628: add retries to the normal paths of nbt name resolution. UDP broadcasts are not 100% reliable :)
(This used to be commit 0f8f1cd18e20ea4f3a06bb093b00b930cfd005b2)

13 years agor8627: fixed a big memory leak in the spnego gensec code in session
Andrew Tridgell [Wed, 20 Jul 2005 04:19:45 +0000 (04:19 +0000)]
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)
(This used to be commit b40fb6a4569ccc1fa1750a1e534e18a020764b4c)

13 years agor8626: fixed a typo
Andrew Tridgell [Wed, 20 Jul 2005 02:15:43 +0000 (02:15 +0000)]
r8626: fixed a typo
(This used to be commit 3083d494e2281b46209176ee63dd571850f0d328)

13 years agor8625: move the ldb_wrap logic into the ldb code. This logic is meant to
Andrew Tridgell [Wed, 20 Jul 2005 00:59:38 +0000 (00:59 +0000)]
r8625: move the ldb_wrap logic into the ldb code. This logic is meant to
avoid the horrors of posix locking, but it was preventing us having an
ldb open twice with different options. Now each ldb open of the same
file shares the same underlying tdb, but uses a different ldb
structure
(This used to be commit 4e090c66dfa1d2764e4693578d3845be3b8893f6)

13 years agor8624: removed valgrind comment on tdb that no longer applies
Andrew Tridgell [Wed, 20 Jul 2005 00:09:23 +0000 (00:09 +0000)]
r8624: removed valgrind comment on tdb that no longer applies
(This used to be commit 8f222c8c7a750c739d3288da0b1edb1efc3b1ffc)

13 years agor8623: Fix warnings in ODL-generated code.
Jelmer Vernooij [Tue, 19 Jul 2005 23:53:48 +0000 (23:53 +0000)]
r8623: Fix warnings in ODL-generated code.
(This used to be commit 78ef2349c7a1bff19fb86a41bf5c074a2dfcb222)