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

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

11 years agor8256: - allow rpc calls from non-command line ejs contexts by creating a set
Andrew Tridgell [Sat, 9 Jul 2005 05:28:42 +0000 (05:28 +0000)]
r8256: - allow rpc calls from non-command line ejs contexts by creating a set
  of null credentials to use if cmdline_credentials is not setup

- hide the length and size elements of a lsa_String from js scripts,
  so you can use a lsa_String just as an ordinary string without
  knowing its a structure. We won't do this with all structures, just
  a few core ones that are used often enough to warrant it.

- make sure returned ldb arrays have a length property
(This used to be commit 12d2092dd8668de41776132ccbcd634790c371a9)

11 years agor8255: enable access to the ejs constants generated by pidl from the web server esp...
Andrew Tridgell [Sat, 9 Jul 2005 05:25:08 +0000 (05:25 +0000)]
r8255: enable access to the ejs constants generated by pidl from the web server esp pages
(This used to be commit 354cdf893d7ce36afd6f2776308b3c864f29ce0b)

11 years agor8254: fixed a valgrind error in the unix auth code
Andrew Tridgell [Sat, 9 Jul 2005 05:24:35 +0000 (05:24 +0000)]
r8254: fixed a valgrind error in the unix auth code
(This used to be commit ad1a4802d0634960646a6efe039fe8b62ead63dd)

11 years agor8253: fixed two crash bugs in ejs. I will send these fixes off to the appweb guys...
Andrew Tridgell [Sat, 9 Jul 2005 05:23:47 +0000 (05:23 +0000)]
r8253: fixed two crash bugs in ejs. I will send these fixes off to the appweb guys soon.
(This used to be commit 3fe83b48c3fe4cdc1e7ec0271e08f7bd77e90de9)

11 years agor8252: Steal metze's thunder, and prove that with a few small tweaks, we can
Andrew Bartlett [Sat, 9 Jul 2005 04:58:15 +0000 (04:58 +0000)]
r8252: Steal metze's thunder, and prove that with a few small tweaks, we can
now push/pull a sample PAC, and still have the same byte buffer.
(Metze set up the string code, and probably already has a similar

Unfortunetly win2k3 still doesn't like what we provide, but every step helps.

Also use data_blob_const() when we are just wrapping data for API

Andrew Bartlett
(This used to be commit e7c8076fc1459ff2ccefdaf0b091d04ee6137957)

11 years agor8251: fixed a couple of valgrind errors in the unix auth code. Simo, can you
Andrew Tridgell [Sat, 9 Jul 2005 02:03:34 +0000 (02:03 +0000)]
r8251: fixed a couple of valgrind errors in the unix auth code. Simo, can you
please check that this is what you intended?
(This used to be commit a57738769dfb5a47ac49e965750193ecdc903d5a)

11 years agor8250: More PAC work. We now sucessfully verify the KDC signature from my DC
Andrew Bartlett [Sat, 9 Jul 2005 01:58:38 +0000 (01:58 +0000)]
r8250: More PAC work.  We now sucessfully verify the KDC signature from my DC
(I have included the krbtgt key from my test network).

It turns out the krbtgt signature is over the 16 (or whatever,
enc-type dependent) bytes of the signature, not the entire structure.

Also do not even try to use Kerberos or GSSAPI on an IP address, it
will only fail.

Andrew Bartlett
(This used to be commit 3b9558e82fdebb58f240d43f6a594d676eb04daf)

11 years agor8249: Clarify (with a comment) why we are playing these games here.
Andrew Bartlett [Sat, 9 Jul 2005 01:55:13 +0000 (01:55 +0000)]
r8249: Clarify (with a comment) why we are playing these games here.

Andrew Bartlett
(This used to be commit 33dcbe938df532e63b9c02c2b6cef11090021481)

11 years agor8248: Make these comments more accurate.
Andrew Bartlett [Sat, 9 Jul 2005 01:54:28 +0000 (01:54 +0000)]
r8248: Make these comments more accurate.

Andrew Bartlett
(This used to be commit 00e1cf79410eb7d31958ba272d87eb2d379c3613)

11 years agor8247: remove the free of fullname in nbtname.c for now.
Andrew Tridgell [Sat, 9 Jul 2005 01:53:57 +0000 (01:53 +0000)]
r8247: remove the free of fullname in nbtname.c for now.

Metze, the ndr_token_store() code is storing temporary pointers into
this string in the token list, which means we are referring to freed
memory when we scan the token list. A better key might be a pointer
into the ndr buffer?
(This used to be commit 6a4e8cc991613773a65545eb308cf4ead75844e8)

11 years agor8246: Don't try and set the element after the end off the array to NULL.
Andrew Bartlett [Sat, 9 Jul 2005 01:53:45 +0000 (01:53 +0000)]
r8246: Don't try and set the element after the end off the array to NULL.

Andrew Bartlett
(This used to be commit 44338b2852bff36d642ea0296d480d384e88fbcb)

11 years agor8245: Add const.
Andrew Bartlett [Sat, 9 Jul 2005 01:53:01 +0000 (01:53 +0000)]
r8245: Add const.

Andrew Bartlett
(This used to be commit 8c079ce1631433f6bf1da8f378ea5f1a271a02ae)

11 years agor8244: need to be careful about local vs global variables in js
Andrew Tridgell [Fri, 8 Jul 2005 12:47:34 +0000 (12:47 +0000)]
r8244: need to be careful about local vs global variables in js
(This used to be commit 763296a9b3dbde939e7986046b55e677b80456cb)

11 years agor8243: fixed indentation of generated ejs interface code
Andrew Tridgell [Fri, 8 Jul 2005 11:10:57 +0000 (11:10 +0000)]
r8243: fixed indentation of generated ejs interface code
(This used to be commit 08cf709bc6d6701b50bbda6de45543bafe3f08a5)

11 years agor8242: support bitmap constants from ejs calls
Andrew Tridgell [Fri, 8 Jul 2005 10:56:20 +0000 (10:56 +0000)]
r8242: support bitmap constants from ejs calls
(This used to be commit 0cf8c091a9f1e389eb2be036311d9e73d13e336d)

11 years agor8241: - take advantage of pointer comparison
Andrew Tridgell [Fri, 8 Jul 2005 10:41:27 +0000 (10:41 +0000)]
r8241: - take advantage of pointer comparison

- added testing of samr_EnumDomainGroups()
(This used to be commit dd9465af5bb0516883aa5851e744c5b583474085)

11 years agor8240: support comparing pointers in ejs. This allows for
Andrew Tridgell [Fri, 8 Jul 2005 10:39:16 +0000 (10:39 +0000)]
r8240: support comparing pointers in ejs. This allows for

  if (io.output.samr == NULL) {
print("no result\n");
(This used to be commit 89db5c68a5ee6875ccddcfe70a6e1232b40039b3)

11 years agor8239: - added testing of LookupDomain, OpenDomain and EnumDomainUsers
Andrew Tridgell [Fri, 8 Jul 2005 10:30:50 +0000 (10:30 +0000)]
r8239: - added testing of LookupDomain, OpenDomain and EnumDomainUsers

- used SEC_FLAG_MAXIMUM_ALLOWED for access mask. This gets the samr.js
  test working with w2k3 as the server
(This used to be commit a929a90ed78ceb00729cc2c20bce6f2f3d34abd6)

11 years agor8238: - fixed handling of NULL pointers from ejs
Andrew Tridgell [Fri, 8 Jul 2005 10:29:18 +0000 (10:29 +0000)]
r8238: - fixed handling of NULL pointers from ejs

- added automatic creation of all constants in IDL as ejs variables
(This used to be commit 9398b02e4ba51145e447668e321ca927f44c0078)

11 years agor8237: expanded the samr.js test to do a samr_Connect(), samr_EnumDomains() and samr_...
Andrew Tridgell [Fri, 8 Jul 2005 09:38:41 +0000 (09:38 +0000)]
r8237: expanded the samr.js test to do a samr_Connect(), samr_EnumDomains() and samr_Close()
(This used to be commit 5be26e7491be14ab5b6450a666911eef7c6b8785)

11 years agor8236: fixed support for arrays of structures
Andrew Tridgell [Fri, 8 Jul 2005 09:37:54 +0000 (09:37 +0000)]
r8236: fixed support for arrays of structures
(This used to be commit cbe5289ac9a8adfe68704dc16a2b32ecbd15a4eb)

11 years agor8235: fix the build
Stefan Metzmacher [Fri, 8 Jul 2005 09:00:15 +0000 (09:00 +0000)]
r8235: fix the build

(This used to be commit 5933b00461e6e7c7f0ab60d61f9be215aa68c317)

11 years agor8234: started on testing samr calls from ejs. So far it only does samr_Connect()
Andrew Tridgell [Fri, 8 Jul 2005 08:19:59 +0000 (08:19 +0000)]
r8234: started on testing samr calls from ejs. So far it only does samr_Connect()
(This used to be commit 2e50a5b780bed20415620011130af83ef73c4f85)

11 years agor8233: - added support for more base types in pidl ejs
Andrew Tridgell [Fri, 8 Jul 2005 08:18:52 +0000 (08:18 +0000)]
r8233: - added support for more base types in pidl ejs

- added auto generation of a header with prototypes for public ejs functions

- make public functions non-static

- fixed allocation of fixed sized arrays

- added 'noejs' flag indicating that a typedef will be handled manually by ejs

- added manual functions for sid and GUID, so they show up as nice
  strings in ejs scripts

This allows ejs to bring in samr, security, lsa and misc IDL functions
(This used to be commit a8cb2dbdcc2871090a26f580f67db8f0636d1e7e)

11 years agor8232: remove samr_String and netr_String as they are the same as lsa_String
Stefan Metzmacher [Fri, 8 Jul 2005 08:09:02 +0000 (08:09 +0000)]
r8232: remove samr_String and netr_String as they are the same as lsa_String

(This used to be commit e601042c07d7b6eed0dc34e5b136d9266b8a0f81)

11 years agor8230: prevent authentication dying on a NULL domain
Andrew Tridgell [Fri, 8 Jul 2005 07:26:45 +0000 (07:26 +0000)]
r8230: prevent authentication dying on a NULL domain
(This used to be commit e1cfc6d03244e04d59a96ef2abb5b48fcb157b0a)

11 years agor8229: A level2 oplock does not conflict a no-oplock open, but is broken on first
Volker Lendecke [Fri, 8 Jul 2005 06:29:06 +0000 (06:29 +0000)]
r8229: A level2 oplock does not conflict a no-oplock open, but is broken on first
write. Test that.

(This used to be commit 2ad02d5e09ca00ca998e363b535b16af45c82a5f)

11 years agor8228: fix compiler warnings
Stefan Metzmacher [Fri, 8 Jul 2005 05:27:47 +0000 (05:27 +0000)]
r8228: fix compiler warnings

(This used to be commit 93c1d18021cbf08be1782b129c40d8769b1b559c)

11 years agor8227: add STR_LARGE_SIZE flag, to support strings where the size is length+1,
Stefan Metzmacher [Fri, 8 Jul 2005 05:22:31 +0000 (05:22 +0000)]
r8227: add STR_LARGE_SIZE flag, to support strings where the size is length+1,

(This used to be commit cdd03fe87d0120ab3e18566bfc20df5955f9fb3c)

11 years agor8226: w2k3 adds a '.' after the forest and domain dns names for the primary domain
Stefan Metzmacher [Fri, 8 Jul 2005 05:19:28 +0000 (05:19 +0000)]
r8226: w2k3 adds a '.' after the forest and domain dns names for the primary domain

and NULL for the trusted domains forest dns name

(This used to be commit 225fc1b8658f01217b55e2d1c6d5814ee5022559)

11 years agor8225: make nETBIOSName case insensitive, so that lower case netbios domain REALM's
Stefan Metzmacher [Fri, 8 Jul 2005 05:16:43 +0000 (05:16 +0000)]
r8225: make nETBIOSName case insensitive, so that lower case netbios domain REALM's
are working in the hdb-ldb module

(This used to be commit d24f39a5d746b9eabc4d5f6f6070a85be084d82c)

11 years agor8224: - add objectGUID ldif_handler
Stefan Metzmacher [Fri, 8 Jul 2005 05:14:46 +0000 (05:14 +0000)]
r8224: - add objectGUID ldif_handler
- fix some compiler warnings

(This used to be commit e6c39241bf93336d4c94c43f9d8beb69018fb74a)

11 years agor8223: fix the values of nt_version and type we reply in the server code,
Stefan Metzmacher [Fri, 8 Jul 2005 05:10:02 +0000 (05:10 +0000)]
r8223: fix the values of nt_version and type we reply in the server code,
also name the struct like the nt_version number

(This used to be commit 1e3af5cc1f68b7fa54b8ba77ed9836a619a69436)

11 years agor8222: 0 entries are no error, unless it's a base search
Stefan Metzmacher [Fri, 8 Jul 2005 05:04:57 +0000 (05:04 +0000)]
r8222: 0 entries are no error, unless it's a base search

(This used to be commit 0297943ff201b06cc7a3c4aba5d81481a4cc5966)

11 years agor8220: added auto-generation of ENUM constants in ejs wrapper. So we can now use...
Andrew Tridgell [Fri, 8 Jul 2005 04:55:07 +0000 (04:55 +0000)]
r8220: added auto-generation of ENUM constants in ejs wrapper. So we can now use the enum name
instead of a integer in ejs scripts making rpc calls
(This used to be commit a61cdee384c3002860016c1740276529493d318d)

11 years agor8218: added testing of echo_TestSurrounding() and
Andrew Tridgell [Fri, 8 Jul 2005 04:16:36 +0000 (04:16 +0000)]
r8218: added testing of echo_TestSurrounding() and
echo_TestDoublePointer(). All echo.idl functions are now tested and
working from ejs.
(This used to be commit c065d677697d3e8dbe2575113823a7ac7109ca70)

11 years agor8217: added testing of echo_TestSleep() and echo_TestEnum() in echo js code
Andrew Tridgell [Fri, 8 Jul 2005 04:08:17 +0000 (04:08 +0000)]
r8217: added testing of echo_TestSleep() and echo_TestEnum() in echo js code
(This used to be commit 7fa9b8251dbab9482268f84dd98889123a9219e7)

11 years agor8216: - handle union pull in ejs pidl generation
Andrew Tridgell [Fri, 8 Jul 2005 04:07:26 +0000 (04:07 +0000)]
r8216: - handle union pull in ejs pidl generation

- added debugging calls for missing structure/union elements
(This used to be commit f3ff48204cb8edeb9f42afbbefe13f7d49305506)

11 years agor8215: switched the pull side of the ejs generator over to the recursive LEVELS based...
Andrew Tridgell [Fri, 8 Jul 2005 03:33:32 +0000 (03:33 +0000)]
r8215: switched the pull side of the ejs generator over to the recursive LEVELS based approach.
This allows for much more complex structure mappings to be generated.
(This used to be commit 49fc14d13291b02f7b16ab0eefe7bfb26f51b1c8)

11 years agor8214: added testing of echo_TestCall2(), which tests the union push code
Andrew Tridgell [Fri, 8 Jul 2005 03:11:17 +0000 (03:11 +0000)]
r8214: added testing of echo_TestCall2(), which tests the union push code
(This used to be commit 1429b885fbcf93ed012c836e21d00ca5d8c58741)

11 years agor8213: I've started to understand the LEVELS stuff in pidl much better now,
Andrew Tridgell [Fri, 8 Jul 2005 03:10:30 +0000 (03:10 +0000)]
r8213: I've started to understand the LEVELS stuff in pidl much better now,
and have re-coded the push side of the ejs generator to use it
properly. It ends up being very neat and small, and should handle much
more complex structures (like arrays of pointers to unions etc).

Also added push side support for unions. This should get more of the
echo pipe working via ejs.
(This used to be commit 2e306be1d83f722c259c4a63233e77d8bb1d5a72)

11 years agor8212: fix pushing of nbt_string's:
Stefan Metzmacher [Thu, 7 Jul 2005 19:49:35 +0000 (19:49 +0000)]
r8212: fix pushing of nbt_string's:

- we now use an ndr_token_list, for the nbt string label pointer offsets
  this avoids to scan the whole buffer

- we need to check for already send string on a per component basis
  not only for the fullname

w2k3 response this in the CLDAP netlogon replies

forest: w2k3.vmnet1.vm.base
dns_name: sub1.
pdc_dns_name: w2k3-104.

and this will be interpreted like

forest: w2k3.vmnet1.vm.base
dns_name: sub1.w2k3.vmnet1.vm.base
pdc_dns_name: w2k3-104.w2k3.vmnet1.vm.base

(This used to be commit d18303a0e27643285ffaf100eeddea2f9555c9db)

11 years agor8211: fix some cldap replies
Stefan Metzmacher [Thu, 7 Jul 2005 19:40:25 +0000 (19:40 +0000)]
r8211: fix some cldap replies

(This used to be commit 8ca5729ec80a9064d592503ae101d22e07c2da0a)

11 years agor8210: - make the ndr_token_* function public
Stefan Metzmacher [Thu, 7 Jul 2005 19:13:32 +0000 (19:13 +0000)]
r8210: - make the ndr_token_* function public

- allow comparison function to be passed for ndr_token_retrive_cmp_fn(),
  this is for matching the keys, if NULL is passed, the old behavior
  tok->key == key is used

(This used to be commit 019f3dc767ef703768df3acdbbd80808c122855c)

11 years agor8203: fix the build temporary,
Stefan Metzmacher [Thu, 7 Jul 2005 11:16:25 +0000 (11:16 +0000)]
r8203: fix the build temporary,

we also get perl warnings uninitialized value used in ejs.pm line 26

(This used to be commit 3f0a6efd7495971d4641cc9c3a5c5ede4bbc6898)

11 years agor8200: - added stub functions for union pull/push
Andrew Tridgell [Thu, 7 Jul 2005 08:32:35 +0000 (08:32 +0000)]
r8200: - added stub functions for union pull/push

- kill the js interpreter with an exception on internal errors
(This used to be commit 5f062d71481a0aa2d8c89099abb2d171b789879e)

11 years agor8199: - we don't need to pre-declare 'var status;' everywhere
Andrew Tridgell [Thu, 7 Jul 2005 08:21:45 +0000 (08:21 +0000)]
r8199: - we don't need to pre-declare 'var status;' everywhere

- added testing of echo_TestCall(), which uses strings
(This used to be commit 67aa628413342fd812afd966c95ea9d470b3151b)

11 years agor8198: - handled push/pull of simple strings in ejs
Andrew Tridgell [Thu, 7 Jul 2005 08:20:57 +0000 (08:20 +0000)]
r8198: - handled push/pull of simple strings in ejs

- improved the error handling, so the ejs wrappers don't just ignore a type they
  don't handle, instead an exception is issued saying what isn't handled
(This used to be commit a77c2aa8606ad668f6a513211a1d9e7d6193d741)

11 years agor8197: added testing of echo_SinkData() and echo_SourceData()
Andrew Tridgell [Thu, 7 Jul 2005 07:47:30 +0000 (07:47 +0000)]
r8197: added testing of echo_SinkData() and echo_SourceData()
(This used to be commit f1d6b328c46265b04fe7c0626d94bb2c844507c9)

11 years agor8196: - added testing of the EchoData interface in the echo test script
Andrew Tridgell [Thu, 7 Jul 2005 07:43:45 +0000 (07:43 +0000)]
r8196: - added testing of the EchoData interface in the echo test script

- add asserts on all calls for correct results
(This used to be commit 0b67754c281f387148b64ba00742437330dc68f7)

11 years agor8195: - fixed handling of simple arrays. To keep the logic simple, I moved to making...
Andrew Tridgell [Thu, 7 Jul 2005 07:42:47 +0000 (07:42 +0000)]
r8195: - fixed handling of simple arrays. To keep the logic simple, I moved to making all push
  functions taking a constant pointer to the type rather than having a different calling
  convention for scalars and pointers

- fixed the setting of the 'length' element in arrays
(This used to be commit 431b4b6888434daa8d1306f0e98bae7b2fe0fddd)

11 years agor8194: delete the old hand-written ejs code for echo_AddOne. This is now
Andrew Tridgell [Thu, 7 Jul 2005 06:27:23 +0000 (06:27 +0000)]
r8194: delete the old hand-written ejs code for echo_AddOne. This is now
autogenerated by pidl
(This used to be commit 697b67ed572a458494fbf9172a341f6b621c84a3)

11 years agor8193: fixed the echo.js example code to work with the new syntax for rpc
Andrew Tridgell [Thu, 7 Jul 2005 06:26:22 +0000 (06:26 +0000)]
r8193: fixed the echo.js example code to work with the new syntax for rpc
calls from js. I chose the new syntax to match the C calling syntax,
so if you are familiar with using the Samba4 rpc libraries from C,
then using them from js should be easy
(This used to be commit 757bb7f31cc85b08885d55adf6e2ce7d925c0353)

11 years agor8192: updated the glue code for the generated ejs functions from pidl
Andrew Tridgell [Thu, 7 Jul 2005 06:25:04 +0000 (06:25 +0000)]
r8192: updated the glue code for the generated ejs functions from pidl

only handles a small subset of all IDL files so far
(This used to be commit 14b6436cc51f599572932bef72c49e0da4888073)

11 years agor8191: updated the ejs code generator in pidl to generate enough code for
Andrew Tridgell [Thu, 7 Jul 2005 06:23:36 +0000 (06:23 +0000)]
r8191: updated the ejs code generator in pidl to generate enough code for
simple rpc calls to work. Still very rough, but its a start.
(This used to be commit fb2639bbc203e49f6719922b6850edf28c8748a1)

11 years agor8185: Delete on close on directories:
Volker Lendecke [Wed, 6 Jul 2005 14:56:45 +0000 (14:56 +0000)]
r8185: Delete on close on directories:

Creating a file in a directory with delete-on-close set returns
DELETE_PENDING, and trying to set the flag on a non-empty directory returns

(This used to be commit 5680f34778b2f5291936f4d4fb937a7713696c52)

11 years agor8182: Little more testing delete-on-close: Check flag with qfileinfo.
Volker Lendecke [Wed, 6 Jul 2005 13:24:38 +0000 (13:24 +0000)]
r8182: Little more testing delete-on-close: Check flag with qfileinfo.

(This used to be commit 47a9df946d5ff967289fba0ff4209711ead11e31)

11 years agor8181: Allow host/foo.realm/realm@REALM requests, assuming that the realm
Andrew Bartlett [Wed, 6 Jul 2005 12:33:52 +0000 (12:33 +0000)]
r8181: Allow host/foo.realm/realm@REALM requests, assuming that the realm
forms both differ only in case.  We may need a better solution than
this later.

Andrew Bartlett
(This used to be commit a0ad13f5bceb17c1b856548825e5509921b409f0)

11 years agor8179: Delete-on-close is really a shared DB. Setting it on one connection(!) and
Volker Lendecke [Wed, 6 Jul 2005 09:50:31 +0000 (09:50 +0000)]
r8179: Delete-on-close is really a shared DB. Setting it on one connection(!) and
resetting it on another resets it for both.

(This used to be commit 30bd7e36669dbb2fd7d85a1cd72927370267d616)

11 years agor8177: More explorations.
Volker Lendecke [Wed, 6 Jul 2005 08:13:11 +0000 (08:13 +0000)]
r8177: More explorations.

The share mode db is actually checked on qpathinfo even before the
delete-on-close is executed.

(This used to be commit 124f3b74ca2ece9ba73737c3ccb75e1730973f19)

11 years agor8176: Exploring the share mode database...
Volker Lendecke [Wed, 6 Jul 2005 07:45:22 +0000 (07:45 +0000)]
r8176: Exploring the share mode database...

A delete-on-close deleted file is still around while open on another fd. But
only for findfirst, not for qpathinfo :-)

(This used to be commit dbc7a1a978d782c73f593f4b46f2a81d35169713)