gd/samba-autobuild/.git
12 years agor4777: added a smb_composite_sesssetup() async composite function. This
Andrew Tridgell [Sun, 16 Jan 2005 11:15:08 +0000 (11:15 +0000)]
r4777: added a smb_composite_sesssetup() async composite function. This
encapsulates all the different session setup methods, including the
multi-pass spnego code.

I have hooked this into all the places that previously used the
RAW_SESSSETUP_GENERIC method, and have removed the old
RAW_SESSSETUP_GENERIC code from clisession.c and clitree.c. A nice
side effect is that these two modules are now very simple again, back
to being "raw" session setup handling, which was what was originally
intended.

I have also used this to replace the session setup code in the
smb_composite_connect() code, and used that to build a very simple
replacement for smbcli_tree_full_connection().

As a result, smbclient, smbtorture and all our other SMB connection
code now goes via these composite async functions. That should give
them a good workout!
(This used to be commit 080d0518bc7d6fd4bc3ef783e7d4d2e3275d0799)

12 years agor4776: Add more debugs to SamSync test.
Andrew Bartlett [Sun, 16 Jan 2005 11:11:57 +0000 (11:11 +0000)]
r4776: Add more debugs to SamSync test.

Andrew Bartlett
(This used to be commit 70860779ae4d6be6d592e3635b091f0a5f29df6a)

12 years agor4775: use schema_attr_cmp wrapper to check for the special dn/distinguishedName...
Simo Sorce [Sun, 16 Jan 2005 10:48:46 +0000 (10:48 +0000)]
r4775: use schema_attr_cmp wrapper to check for the special dn/distinguishedName case alias
(This used to be commit 18cd6cb67404830b8a5d28fa4106dadb275a5222)

12 years agor4774: It appears the SensitiveData contains the password history, as the
Andrew Bartlett [Sun, 16 Jan 2005 08:45:40 +0000 (08:45 +0000)]
r4774: It appears the SensitiveData contains the password history, as the
remaining data.  Pity - I was looking for kerberos keys :-)

Andrew Bartlett
(This used to be commit 37a81aad74b9f7e982469cd36e56e6f9608b9123)

12 years agor4773: Handle arrays of scalar types as function arguments.
Tim Potter [Sun, 16 Jan 2005 06:12:22 +0000 (06:12 +0000)]
r4773: Handle arrays of scalar types as function arguments.

Add hf for function return value.

Rename struct field members to be named after the structure name
and element name rather than element name and element type.

Remember which structure or function we are processing and use it
to generate hf fields according to the naming scheme above.
(This used to be commit fd14622d132c3f2dfd837ea7beccd0fc11a6bf3e)

12 years agor4772: fixed checking of the conformant size for dom_sid2
Andrew Tridgell [Sun, 16 Jan 2005 03:44:08 +0000 (03:44 +0000)]
r4772: fixed checking of the conformant size for dom_sid2
(This used to be commit 0d31523aaed7a8995970dc9933a6a9d9b8536ee0)

12 years agor4771: Fix some indentation.
Tim Potter [Sun, 16 Jan 2005 01:57:12 +0000 (01:57 +0000)]
r4771: Fix some indentation.
(This used to be commit b2a3b0221680fb54b058631846559e6151a7b562)

12 years agor4770: Change from processing ndr_*.[ch] files all at once to line-by-line.
Tim Potter [Sun, 16 Jan 2005 01:48:08 +0000 (01:48 +0000)]
r4770: Change from processing ndr_*.[ch] files all at once to line-by-line.
I'm hoping this will allow better mapping hf fields to the structures
they are present in which isn't possible at the moment.  (Line mode
allows us to use /foo/ .. /bar/ regexps and to store state during the
processing.
(This used to be commit 75b6df15f2edfac99fbcd7cefb7b404591a1ecb6)

12 years agor4769: added a smb_composite_connect() function that provides a simple async
Andrew Tridgell [Sun, 16 Jan 2005 01:28:11 +0000 (01:28 +0000)]
r4769: added a smb_composite_connect() function that provides a simple async
interface to a complete SMB connection setup. Internally it does:

  - socket connection
  - session request (if needed)
  - negprot
  - session setup
  - tcon

This is the first example of a composite function that builds on other
composite components (the socket connection is a composite function,
which is used as a building block for this function). I think this
will be quite common in composite functions in the future, building up
ever more complex composite functions from smaller building blocks,
while hiding the details from the caller.

There are two things missing from this now. The first is async name
resolution routines (wins, bcast, DNS etc), and the second is that
this code currently only does a NT1 style session setup. I'll work on
adding spnego and old style session setup support next.
(This used to be commit 6bc9e17f5c5236f662c7c8f308d03e6d97379b23)

12 years agor4768: Until I can prove it, we should not have these elements marked as
Andrew Bartlett [Sun, 16 Jan 2005 01:23:15 +0000 (01:23 +0000)]
r4768: Until I can prove it, we should not have these elements marked as
size_is() base arrays.

Andrew Bartlett
(This used to be commit 3d3063b1f65efe3b9eb814f7425afa3278095a68)

12 years agor4767: handle the different NBT session request refusals, and map them to
Andrew Tridgell [Sun, 16 Jan 2005 01:22:08 +0000 (01:22 +0000)]
r4767: handle the different NBT session request refusals, and map them to
reasonable NT_STATUS values
(This used to be commit b193a9cb0c851a4ec55ad9956a815be93eea35e4)

12 years agor4766: Add another useful helper function: samdb_msg_set_value()
Andrew Bartlett [Sun, 16 Jan 2005 01:21:58 +0000 (01:21 +0000)]
r4766: Add another useful helper function: samdb_msg_set_value()

Andrew Bartlett
(This used to be commit a43f7392f791081f227a0e05aeed894885f33232)

12 years agor4765: simplify the async socket code to always go via the event handler
Andrew Tridgell [Sun, 16 Jan 2005 01:21:18 +0000 (01:21 +0000)]
r4765: simplify the async socket code to always go via the event handler
rather than short-circuiting in the unlikely event the OS returns an
immediate success on a non-blocking connect
(This used to be commit db4380717041485e216f965103f9e803518b45c3)

12 years agor4764: Add some more structs to keep the proto.h compile happy.
Andrew Bartlett [Sun, 16 Jan 2005 01:19:46 +0000 (01:19 +0000)]
r4764: Add some more structs to keep the proto.h compile happy.

Andrew Bartlett
(This used to be commit e5e4dd0d3499e0c63cddd5669cf2875cee7d4e3f)

12 years agor4763: Join Samba4 to itself during the provision process.
Andrew Bartlett [Sat, 15 Jan 2005 22:15:12 +0000 (22:15 +0000)]
r4763: Join Samba4 to itself during the provision process.

Andrew Bartlett
(This used to be commit feca96fe5a1612592757f53f7aa4eb5a39fd24ff)

12 years agor4762: Store the results of a 'net join' in the LDB.
Andrew Bartlett [Sat, 15 Jan 2005 22:13:18 +0000 (22:13 +0000)]
r4762: Store the results of a 'net join' in the LDB.

Like Samba3, the storage of the primary domain password is keyed off
the domain name, so we can join multiple domains, and just swap
'workgroup =' around.

Andrew Bartlett
(This used to be commit 54a231780e028c6433cac296f2fbc64e39632dfd)

12 years agor4759: use ldb_attr_cmp() to compare attribute names
Simo Sorce [Sat, 15 Jan 2005 17:24:42 +0000 (17:24 +0000)]
r4759: use ldb_attr_cmp() to compare attribute names

check required attributes are not deleted on modify operation
if the objectclass is deleted then deny the operation if
orphan atributes are left behind
(This used to be commit 8c11038d67c495f8d5f06cf1fdfe976088864b45)

12 years agor4758: - added async support to the session request code
Andrew Tridgell [Sat, 15 Jan 2005 11:58:52 +0000 (11:58 +0000)]
r4758: - added async support to the session request code

- added async support to the negprot client code

- removed two unused parameters from smbcli_full_connection() code

- converted smbclient to use smbcli_full_connection() rather than
  reinventing everything itself
(This used to be commit 71cbe2873473e039b4511511302cb63f1c50bce8)

12 years agor4757: added the ability of the clisocket level of libcli to handle async
Andrew Tridgell [Sat, 15 Jan 2005 10:38:12 +0000 (10:38 +0000)]
r4757: added the ability of the clisocket level of libcli to handle async
socket connections. This was complicated by a few factors:

 - it meant moving the event context from clitransport to clisocket,
   so lots of structures changed

 - we need to asynchronously handle connection to lists of port
   numbers, not just one port number. The code internally tries each
   port in the list in turn, without ever blocking

 - the man page on how connect() is supposed to work asynchronously
   doesn't work in practice (now why doesn't this surprise me?). The
   getsockopt() for SOL_ERROR is supposed to retrieve the error, but
   in fact the next (unrelated) connect() call on the same socket also
   gets an error, though not the right error. To work around this I
   need to tear down the whole socket between each attempted port. I
   hate posix.

Note that clisocket.c still does a blocking name resolution call in
smbcli_sock_connect_byname(). That will be fixed when we add the async
NBT resolution code.

Also note that I arranged things so that every SMB connection is now
async internally, so using plain smbclient or smbtorture tests all the
async features of this new code.
(This used to be commit 468f8ebbfdbdf37c757fdc4863626aa9946a8870)

12 years agor4756: a slight tidy up in the events code
Andrew Tridgell [Sat, 15 Jan 2005 10:31:33 +0000 (10:31 +0000)]
r4756: a slight tidy up in the events code
(This used to be commit d2f76c3671df0b0232982e2fbfd5c049c9fb674f)

12 years agor4755: the recent change in the definition of lp_passwordserver() breaks this
Andrew Tridgell [Sat, 15 Jan 2005 10:30:58 +0000 (10:30 +0000)]
r4755: the recent change in the definition of lp_passwordserver() breaks this
old code, so I'm just removing it, as it needs replacing anyway
(This used to be commit cae7748d675e35bfb89b81349624258bc76fac1a)

12 years agor4754: tidied up the composite function infrastructure to make it easier to
Andrew Tridgell [Sat, 15 Jan 2005 10:29:43 +0000 (10:29 +0000)]
r4754: tidied up the composite function infrastructure to make it easier to
have composite functions that are not made up of functions that
operate on smbcli_request structures.
(This used to be commit 4f6055b4fb7e287a29544ff1ca4e22f698efc478)

12 years agor4753: added the ability for the generic socket library to handle async
Andrew Tridgell [Sat, 15 Jan 2005 10:28:08 +0000 (10:28 +0000)]
r4753: added the ability for the generic socket library to handle async
connect(). This required a small API change (the addition of
a socket_connect_complete() method)
(This used to be commit b787dd166f5cca82b3710802eefb41e0a8851fc3)

12 years agor4748: removed unnecessary distinguishedName from provisioning
Andrew Tridgell [Sat, 15 Jan 2005 06:18:23 +0000 (06:18 +0000)]
r4748: removed unnecessary distinguishedName from provisioning
(This used to be commit 31919995fd30d63b9dc89ca78d274f5c0de77206)

12 years agor4745: remove the distinguishedName attribute adds from samr. See the
Andrew Tridgell [Sat, 15 Jan 2005 03:48:15 +0000 (03:48 +0000)]
r4745: remove the distinguishedName attribute adds from samr. See the
discussion on samba-technical about this.
(This used to be commit e9dff03f79db00636e2b6d93a22e40a3cefed876)

12 years agor4744: until we decide what to do about attribute aliasing (see my recent
Andrew Tridgell [Sat, 15 Jan 2005 02:54:53 +0000 (02:54 +0000)]
r4744: until we decide what to do about attribute aliasing (see my recent
samba-technical posting), this is an interim solution that makes us
work pretty much like w2k3 does.
(This used to be commit 789325145651f2f6fc8716aa4bced83a2eb31994)

12 years agor4730: remove unused struct elements
Stefan Metzmacher [Fri, 14 Jan 2005 02:10:11 +0000 (02:10 +0000)]
r4730: remove unused struct elements

part of this went in in the last commit...

metze
(This used to be commit 9ea9e1ced59e7962164972b1dc2d53e0277d4449)

12 years agor4729: add dummy "winbind" service
Stefan Metzmacher [Fri, 14 Jan 2005 02:01:19 +0000 (02:01 +0000)]
r4729: add dummy "winbind" service

- this creates a new task and then starts a process_model "single"
  with service "winbind_task"

- that means with -M single everything is in one process

  with - M standard winbind is a seperate process but didn't fork for each connection
  with -M thread winbind is a seperate thread but didn't thread for each connection

- the dummy server listen s on /tmp/.winbind/echo
  and for better testing with telnet also on 127.0.255.1 port 55555

metze
(This used to be commit 5190f60dedc4076d94fbf77e02eb3b5312d953ec)

12 years agor4728: split up server_services into:
Stefan Metzmacher [Fri, 14 Jan 2005 01:32:56 +0000 (01:32 +0000)]
r4728: split up server_services into:
- stream_socket services
  the smb, ldap and rpc service which sets up a srtam socket end then
  waits for connections
and
- task services
  which this you can create a seperate task that do something
  (this is also going through the process_model subsystem
  so with -M standard a new process for this created
  with -M thread a new thread ...

I'll add datagram services later when we whave support for datagram sockets in lib/socket/

see the next commit as an example for service_task's

metze
(This used to be commit d5fa02746c6569b09b6e05785642da2fad3ba3e0)

12 years agor4727: add a reference to the event context
Stefan Metzmacher [Fri, 14 Jan 2005 01:21:56 +0000 (01:21 +0000)]
r4727: add a reference to the event context
to that the destructor don't double free the registered events
when the event context is first in the talloc_free() hierarchie

fixes a bug with process_model_thread and the talloc_steal(conn, ev)

metze
(This used to be commit 05c3d1c4a6a6350cc8b5fb2ee8201ae6feed3d3d)

12 years agor4726: - use the name tcon and tid instead of conn and cnum
Stefan Metzmacher [Thu, 13 Jan 2005 18:49:10 +0000 (18:49 +0000)]
r4726: - use the name tcon and tid instead of conn and cnum

- make use of talloc destructors

metze
(This used to be commit 8308da6ce4a95f8c10e22949ef00e9e64f2dbb85)

12 years agor4725: make "password server" a string list
Stefan Metzmacher [Thu, 13 Jan 2005 18:23:28 +0000 (18:23 +0000)]
r4725: make "password server" a string list

metze
(This used to be commit 5287ec0818cf38cc5d3ef2a21518c98b700116fb)

12 years agor4723: Predefine libnet_JoinDomain as it's used in proto.h
Jelmer Vernooij [Thu, 13 Jan 2005 15:09:45 +0000 (15:09 +0000)]
r4723: Predefine libnet_JoinDomain as it's used in proto.h
(This used to be commit 041bf4ee7de6026b032e5b4455e092a1ef3b8ee4)

12 years agor4722: Start to add 'net join' to Samba4.
Andrew Bartlett [Thu, 13 Jan 2005 07:50:09 +0000 (07:50 +0000)]
r4722: Start to add 'net join' to Samba4.

Andrew Bartlett
(This used to be commit a9b960609142e15ba5950eb1b22944eb6df18d9c)

12 years agor4721: Changes to libnet_passwd to take advantage of the new easier to call
Andrew Bartlett [Thu, 13 Jan 2005 04:46:53 +0000 (04:46 +0000)]
r4721: Changes to libnet_passwd to take advantage of the new easier to call
RPC client libs, and to make the fallback between the various SAMR
levels easier to manage.

I'm starting to enjoy the structure that libnet has actually, and I'm
about to build 'net join' on that basis (and I didn't want to have to
duplicate the password set code).

Andrew Bartlett
(This used to be commit f1dd179a50d2c9c81b90a621459c93b0d60e2609)

12 years agor4720: Reformat, rename, and convert to enums parts of the LSA IDL specification.
Andrew Bartlett [Wed, 12 Jan 2005 22:57:40 +0000 (22:57 +0000)]
r4720: Reformat, rename, and convert to enums parts of the LSA IDL specification.

Andrew Bartlett
(This used to be commit d360f30948723687ec1504765e52db366f17cfa2)

12 years agor4719: snprintf.c is used outside of samba, so don't use our special types
Andrew Tridgell [Wed, 12 Jan 2005 22:33:28 +0000 (22:33 +0000)]
r4719: snprintf.c is used outside of samba, so don't use our special types
(This used to be commit 8033ef6b710df3b5bb2a249db97986b7d4c2e018)

12 years agor4718: don't use the deprecated __va_copy() unless va_copy() is unavailable
Andrew Tridgell [Wed, 12 Jan 2005 22:30:54 +0000 (22:30 +0000)]
r4718: don't use the deprecated __va_copy() unless va_copy() is unavailable
(This used to be commit 603ef69be075821e3ffe2084bb5cfb0bc9cce180)

12 years agor4717: fixed our usage of VA_COPY to be more standards compliant
Andrew Tridgell [Wed, 12 Jan 2005 22:06:52 +0000 (22:06 +0000)]
r4717: fixed our usage of VA_COPY to be more standards compliant
(This used to be commit 48b52584ab7db747feaf7ad4382bd3877935ee26)

12 years agor4716: add a real ugly hack to get all ldap queries of an
Stefan Metzmacher [Wed, 12 Jan 2005 16:30:36 +0000 (16:30 +0000)]
r4716: add a real ugly hack to get all ldap queries of an
w2k3 dc join working

I just commit that to not lose it if my home box would crash...

you need a hacked.ldb with some stuff in it, I'll explain later

and you need --option="ldapsrv:hacked=yes"

so what is left now is KRB5 support for DCERPC in the server
as the EVENT LOG of w2k3 says...

metze
(This used to be commit d72760d26ffe531e34bcbec623b986761152ae5b)

12 years agor4715: alwys add the distinguishedName attribute
Stefan Metzmacher [Wed, 12 Jan 2005 16:22:32 +0000 (16:22 +0000)]
r4715: alwys add the distinguishedName attribute

the w2k3 dc join needs that

metze
(This used to be commit 29bc75ba28f8c73fe22878948ed43c41faee474c)

12 years agor4714: move the ldb code to the new talloc interface (eg remove _p suffix)
Simo Sorce [Wed, 12 Jan 2005 16:00:01 +0000 (16:00 +0000)]
r4714: move the ldb code to the new talloc interface (eg remove _p suffix)
this helps standalone building of ldb

renew the schema module
split code into functions to improve readability and code reuse

add and modify works correctly but we need a proper testsuite

Simo
(This used to be commit a681ae365ff1b5a2771b42ebd90336651ce1e513)

12 years agor4713: Add initial support for QueryTrustedDomainInfo on LSA.
Andrew Bartlett [Wed, 12 Jan 2005 11:54:11 +0000 (11:54 +0000)]
r4713: Add initial support for QueryTrustedDomainInfo on LSA.
(more info levels to come)

Andrew Bartlett
(This used to be commit 175ae7599ee06d8856ffb8912c7fe4e68ebe5feb)

12 years agor4712: slight tidy up in alter_context server
Andrew Tridgell [Wed, 12 Jan 2005 11:46:43 +0000 (11:46 +0000)]
r4712: slight tidy up in alter_context server
(This used to be commit 20ab5bed34c852509b7f3e4c778ff23f4379b36e)

12 years agor4711: - deprecate talloc_destroy()
Andrew Tridgell [Wed, 12 Jan 2005 11:45:43 +0000 (11:45 +0000)]
r4711: - deprecate talloc_destroy()

- expanded the talloc_realloc() test a little (I was concerned about a
  possible bug, which turned out to be an illusion)

- don't enable gcov by default in Makefile.talloc
(This used to be commit 4ec47cc1083c4cdb780e548177631c5914bf677a)

12 years agor4710: added a smb_composite_savefile() function, and expanded the test suite a little
Andrew Tridgell [Wed, 12 Jan 2005 11:43:18 +0000 (11:43 +0000)]
r4710: added a smb_composite_savefile() function, and expanded the test suite a little
(This used to be commit ef4dbc443dbdebc4160209ed3f23cbb97109c414)

12 years agor4709: fix compiler warnings
Stefan Metzmacher [Wed, 12 Jan 2005 11:30:26 +0000 (11:30 +0000)]
r4709: fix compiler warnings

metze
(This used to be commit 7aa86445e3290021fe40c5c9425ecdbc2dda1618)

12 years agor4708: Comparing with LDAP, it is clear that these 'flags' are in fact the
Andrew Bartlett [Wed, 12 Jan 2005 11:16:04 +0000 (11:16 +0000)]
r4708: Comparing with LDAP, it is clear that these 'flags' are in fact the
POSIX offset for the trusted domain.

Andrew Bartlett
(This used to be commit cd9e795e4004e28dc0184b86f0c44431378fc3ff)

12 years agor4707: w2k3 don't restict passwords on
Stefan Metzmacher [Wed, 12 Jan 2005 10:49:52 +0000 (10:49 +0000)]
r4707: w2k3 don't restict passwords on
netr_ServerPasswordSet and netr_ServerPasswordSet2

so we do now

I also add a torture test for this

metze
(This used to be commit d896ac603a5cf387a10b21e64e2c92ff2626bc4d)

12 years agor4706: Fix the build, after I renamed these elements in the IDL.
Andrew Bartlett [Wed, 12 Jan 2005 10:25:44 +0000 (10:25 +0000)]
r4706: Fix the build, after I renamed these elements in the IDL.

Andrew Bartlett
(This used to be commit 8f47c7b02cc28eda022154796c7341fd63a87cc5)

12 years agor4705: use an enum for reject_reason
Stefan Metzmacher [Wed, 12 Jan 2005 09:57:32 +0000 (09:57 +0000)]
r4705: use an enum for reject_reason

metze
(This used to be commit 57bf3d7a83ede0099f43a1f71026715f22cda68f)

12 years agor4703: Add support for EnumTrustDomain, and expand the testsuite.
Andrew Bartlett [Wed, 12 Jan 2005 07:57:33 +0000 (07:57 +0000)]
r4703: Add support for EnumTrustDomain, and expand the testsuite.

Add my copyright to the SAMR server.

Andrew Bartlett
(This used to be commit 51e94fa26cc602ddca652776c213cd7096f9703a)

12 years agor4702: implment idl, torture test and server code for netr_ServerPasswordSet2()
Stefan Metzmacher [Wed, 12 Jan 2005 07:22:34 +0000 (07:22 +0000)]
r4702: implment idl, torture test and server code for netr_ServerPasswordSet2()

metze
(This used to be commit 7d8ba92da2b8babe7165f105591fd3e5738b2319)

12 years agor4701: remove debugs
Stefan Metzmacher [Wed, 12 Jan 2005 07:19:15 +0000 (07:19 +0000)]
r4701: remove debugs

metze
(This used to be commit 9db0d19413beb4a0a0b48f4223600ff8dff33728)

12 years agor4700: first attempt at a composite async function, smb_composite_loadfile(),
Andrew Tridgell [Wed, 12 Jan 2005 07:03:29 +0000 (07:03 +0000)]
r4700: first attempt at a composite async function, smb_composite_loadfile(),
which combineds ntcreatex, readx and close into a single call that
behaves just like a normal libcli async call.
(This used to be commit 516f68fb054f0717f0429e031aa820776ecc6597)

12 years agor4699: Move the test_EnumTrustDom() test into the test_CreateTrustedDomain
Andrew Bartlett [Wed, 12 Jan 2005 03:19:48 +0000 (03:19 +0000)]
r4699: Move the test_EnumTrustDom() test into the test_CreateTrustedDomain
test.  This way, it must have at least one domain to enumerate.

Andrew Bartlett
(This used to be commit c19f1850ee76db07d4ab5654039bc1f78377994d)

12 years agor4698: - Initial implementation of trusted domains in LSA.
Andrew Bartlett [Wed, 12 Jan 2005 02:40:25 +0000 (02:40 +0000)]
r4698:  - Initial implementation of trusted domains in LSA.

 - Use templates for Secrets and the new trusted domains

 - Auto-add modifiedTime, createdTime and objectGUID to records in the
   samdb layer.

Andrew Bartlett
(This used to be commit 271c8faadfe2d9e0f3d523a1cdc831f5f9e35d19)

12 years agor4695: Leave less memory handing around on long-term TALLOC_CTX.
Andrew Bartlett [Wed, 12 Jan 2005 00:37:13 +0000 (00:37 +0000)]
r4695: Leave less memory handing around on long-term TALLOC_CTX.

Add lsa_Delete() support for secrets.

Andrew Bartlett
(This used to be commit be4cd59f331c1ef38831ee874376d3cd073e2186)

12 years agor4694: 'fix' the behaviour for setting only the old, but not the new secret.
Andrew Bartlett [Tue, 11 Jan 2005 22:16:14 +0000 (22:16 +0000)]
r4694: 'fix' the behaviour for setting only the old, but not the new secret.

(The behaviour is a little odd, but we wanted bug-for-bug, right? :-)

Andrew Bartlett
(This used to be commit 6a09a84320c9ab18568a66efb3839a8dcde834af)

12 years agor4693: Add another test (RPC-MULTIBIND) that should always pass.
Andrew Bartlett [Tue, 11 Jan 2005 20:52:04 +0000 (20:52 +0000)]
r4693: Add another test (RPC-MULTIBIND) that should always pass.

Andrew Bartlett
(This used to be commit 279e4de307b02bec5b64de765fbbb82c0ffdc5e4)

12 years agor4692: Make the client SPNEGO code bail out in a couple more cases.
Andrew Bartlett [Tue, 11 Jan 2005 20:20:27 +0000 (20:20 +0000)]
r4692: Make the client SPNEGO code bail out in a couple more cases.

Andrew Bartlett
(This used to be commit a062ac122c402fb2cf31eb8e76f4077b1f33b8eb)

12 years agor4691: Make the DCE-RPC bind code compleatly generic to the number of passes
Andrew Bartlett [Tue, 11 Jan 2005 20:09:59 +0000 (20:09 +0000)]
r4691: Make the DCE-RPC bind code compleatly generic to the number of passes
that the GENSEC mechanism wishes to select.  It is of course up to the
GENSEC mech and the remote server to actually support this however...

Andrew Bartlett
(This used to be commit 7200a01545e14a8b0c90fadf3c27933dd1f4359f)

12 years agor4690: - add support for async rpc server replies
Stefan Metzmacher [Tue, 11 Jan 2005 16:53:02 +0000 (16:53 +0000)]
r4690: - add support for async rpc server replies

the backend should check for
(dce_call->state_flags & DCESRV_CALL_STATE_FLAG_MAY_ASYNC)
then it's allowed to reply async

then the backend should mark that call as async with
dce_call->state_flags |= DCESRV_CALL_STATE_FLAG_ASYNC;

later it has to manualy set r->out.result
and then send the reply by calling

status = dcesrv_reply(p->dce_call);

NOTE: that ncacn_np doesn't support async replies yet

- implement an async version of echo_TestSleep

- reenable the echo_TestSleep torture test
  (this need to be more strict when we have support for async ncacn_np)

metze
(This used to be commit f0a0dbeb25b034b1333078ca085999359f5f6209)

12 years agor4689: - make talloc_report_depth() public
Stefan Metzmacher [Tue, 11 Jan 2005 15:38:25 +0000 (15:38 +0000)]
r4689: - make talloc_report_depth() public

- add talloc_parent() to return the parent context of a pointer

these are very use full for debuging

metze
(This used to be commit 9b9501bc03ef8d4b53049f6b3531d06ed7ef7f89)

12 years agor4688: don't run male proto for lib/talloc/
Stefan Metzmacher [Tue, 11 Jan 2005 15:37:12 +0000 (15:37 +0000)]
r4688: don't run male proto for lib/talloc/

metze
(This used to be commit 4ab63d547903814318b74ea030bba9da0f36942f)

12 years agor4687: use struct type and location for easier finding
Stefan Metzmacher [Tue, 11 Jan 2005 15:20:55 +0000 (15:20 +0000)]
r4687: use struct type and location for easier finding

metze
(This used to be commit a88aac7a397972c52ca2fb192b58f2a172630a6e)

12 years agor4686: cerate a function to create a socket by specifying an socket_ops struct
Stefan Metzmacher [Tue, 11 Jan 2005 15:19:32 +0000 (15:19 +0000)]
r4686: cerate a function to create a socket by specifying an socket_ops struct

metze
(This used to be commit 894f402b01c8d4e0bef9c29697b8d13e5b9ea150)

12 years agor4685: only remove events when we have them
Stefan Metzmacher [Tue, 11 Jan 2005 15:18:18 +0000 (15:18 +0000)]
r4685: only remove events when we have them

metze
(This used to be commit d2276a9149b14aed459e9492384c0a7563dd154c)

12 years agor4684: the smbsrv code should not know about rpc stuff
Stefan Metzmacher [Tue, 11 Jan 2005 14:32:15 +0000 (14:32 +0000)]
r4684: the smbsrv code should not know about rpc stuff
just vfs_ipc

metze
(This used to be commit f85ebd1e8e19f5ff271dd7d79190fea16d6a98c4)

12 years agor4683: fix the build
Stefan Metzmacher [Tue, 11 Jan 2005 14:29:26 +0000 (14:29 +0000)]
r4683: fix the build

metze
(This used to be commit b020dbec89a85619ae3ee12f4dd0e3828d30ba04)

12 years agor4682: A LDB-based secrets implementation in Samba4.
Andrew Bartlett [Tue, 11 Jan 2005 14:04:58 +0000 (14:04 +0000)]
r4682: A LDB-based secrets implementation in Samba4.

This uses LDB (a local secrets.ldb and the global samdb) to fill out
the secrets from an LSA perspective.

Some small changes to come, but the bulk of the work is now done.

A re-provision is required after this change.

Andrew Bartlett
(This used to be commit ded33033521a6a1c7ea80758c5c5aeeebb182a51)

12 years agor4681: Another entry for structs.h
Andrew Bartlett [Tue, 11 Jan 2005 14:00:49 +0000 (14:00 +0000)]
r4681: Another entry for structs.h

Andrew Bartlett
(This used to be commit a3f3553cbe3cc8c8b39704b7735277e36ca709a0)

12 years agor4680: Make more efficient use of memory in SAMR:
Andrew Bartlett [Tue, 11 Jan 2005 13:59:18 +0000 (13:59 +0000)]
r4680: Make more efficient use of memory in SAMR:
 Avoid a strdup, use a talloc_reference
 Use the shortest term memory context possible

Andrew Bartlett
(This used to be commit 5569db0f94807b7e2418630fbdca03be9c65e838)

12 years agor4679: Remove the void* from samdb. We now use structures without full
Andrew Bartlett [Tue, 11 Jan 2005 13:55:45 +0000 (13:55 +0000)]
r4679: Remove the void* from samdb.  We now use structures without full
declarations all the time, and the struture the void* is hiding here
is even a declared one, so there is no excuse.  This also causes the
compiler to warn on bugs.

Andrew Bartlett
(This used to be commit f40e794902020c5fb6839e6493be9a73416716b0)

12 years agor4678: Add some const to LDB.
Andrew Bartlett [Tue, 11 Jan 2005 13:52:29 +0000 (13:52 +0000)]
r4678: Add some const to LDB.

Andrew Bartlett
(This used to be commit d4da9fb1600dba5daca9acb83f528c8f5f42f0ce)

12 years agor4677: stub.pm must be synced with server.pm
Stefan Metzmacher [Tue, 11 Jan 2005 07:29:58 +0000 (07:29 +0000)]
r4677: stub.pm must be synced with server.pm

metze
(This used to be commit b467635c2dd90dc40e2358b8d18bec238a85786f)

12 years agor4676: NTTIME_1sec is a standard NTTIME for the calling code
Stefan Metzmacher [Tue, 11 Jan 2005 06:47:15 +0000 (06:47 +0000)]
r4676: NTTIME_1sec is a standard NTTIME for the calling code
as it's already converted in the pull/push code

metze
(This used to be commit 0d2286ba56fa8d25244a5554e75b5be24eba28b0)

12 years agor4675: Prevent global warming, and save tridge's sainity by short-cutting the
Andrew Bartlett [Tue, 11 Jan 2005 06:15:11 +0000 (06:15 +0000)]
r4675: Prevent global warming, and save tridge's sainity by short-cutting the
testsuite for all the different flag types.  (We really only need to
know if we are getting the session key crypto stuff right, and one
call can tell us that).

Andrew Bartlett
(This used to be commit 8807498f6d3ff248c4d42bf18db45cfe25bd3b2f)

12 years agor4674: Test SetSecret behaviour for local and global secrets, when setting
Andrew Bartlett [Tue, 11 Jan 2005 06:04:44 +0000 (06:04 +0000)]
r4674: Test SetSecret behaviour for local and global secrets, when setting
only the OLD secret value.

Andrew Bartlett
(This used to be commit 5853af89c8dd5c4d6220f395bcc18708398999af)

12 years agor4673: Fix the IDL for the QuerySecret LSA call.
Andrew Bartlett [Tue, 11 Jan 2005 05:16:43 +0000 (05:16 +0000)]
r4673: Fix the IDL for the QuerySecret LSA call.

This call uses a new IDL type, NTTIME_hyper.  This is 8-byte aligned,
as the name suggests.

Expand the QuerySecret LSA calls in RPC-SAMLOGON and RPC-LSA, to
validate the behaviour of times, and of the old secrets.

Thanks to tridge for spotting the use of HYPER!

Andrew Bartlett
(This used to be commit 1fed79cb0f2ae7940639d08ef99576559d4cd06e)

12 years agor4672: added the "spnego" flag to the binding string docs
Andrew Tridgell [Tue, 11 Jan 2005 04:56:14 +0000 (04:56 +0000)]
r4672: added the "spnego" flag to the binding string docs
(This used to be commit 360aa583e7359a2e653d385a8d3c7977fd9614d1)

12 years agor4671: Expand the RPC-LSA test to set secret values twice.
Andrew Bartlett [Tue, 11 Jan 2005 03:49:29 +0000 (03:49 +0000)]
r4671: Expand the RPC-LSA test to set secret values twice.

Andrew Bartlett
(This used to be commit 357d9114f002a607f80985588bbac150fa40d2bc)

12 years agor4670: abartlet was worried about floating point precision with my first
Andrew Tridgell [Tue, 11 Jan 2005 03:26:26 +0000 (03:26 +0000)]
r4670: abartlet was worried about floating point precision with my first
version - here is one based purely on 64 bit math
(This used to be commit 1ff04b0dc3e680b6288622576bb373359a594c2f)

12 years agor4669: a timeval_to_nttime() function as requested by abartlet. Andrew, its
Andrew Tridgell [Tue, 11 Jan 2005 03:07:53 +0000 (03:07 +0000)]
r4669: a timeval_to_nttime() function as requested by abartlet. Andrew, its
your responsibility to use/test this :-)
(This used to be commit 2107b0cd7661a631952742bae241cb165b05c5f2)

12 years agor4667: Don't follow a NULL pointer for an idle event handler.
Andrew Bartlett [Tue, 11 Jan 2005 02:18:42 +0000 (02:18 +0000)]
r4667: Don't follow a NULL pointer for an idle event handler.

Fix up some header comments.

Andrew Bartlett
(This used to be commit 62005a3924e2af52c7173098b0b38eca14e03609)

12 years agor4664: SPNEGO auth in our rpc server now works, so add it to the battery of
Andrew Tridgell [Tue, 11 Jan 2005 01:57:44 +0000 (01:57 +0000)]
r4664: SPNEGO auth in our rpc server now works, so add it to the battery of
tests in test_rpc.sh
(This used to be commit 69ffbd4cedaddd71fad9bab2375dc634479c0ed6)

12 years agor4663: fixed SPNEGO auth in the rpc server
Andrew Tridgell [Tue, 11 Jan 2005 01:53:14 +0000 (01:53 +0000)]
r4663: fixed SPNEGO auth in the rpc server
(This used to be commit 439cbb9ead2443513ecc84f5638924e056ebdc73)

12 years agor4660: Test what we should return for a secret that does not exist.
Andrew Bartlett [Tue, 11 Jan 2005 01:36:26 +0000 (01:36 +0000)]
r4660: Test what we should return for a secret that does not exist.

Andrew Bartlett
(This used to be commit a17a8fbf9a843c2c9e10940878b43ad8e1583091)

12 years agor4659: Revert -r 4657 committed by mistake, until I review and test the
Andrew Bartlett [Mon, 10 Jan 2005 22:56:51 +0000 (22:56 +0000)]
r4659: Revert -r 4657 committed by mistake, until I review and test the
changes (which were to use the common ARCFOUR code for random number
generation).

Andrew Bartlett
(This used to be commit 50b3f64a8d555941499f41a7f43819474b81d4b8)

12 years agor4658: (grr, commited wrong file last time).
Andrew Bartlett [Mon, 10 Jan 2005 22:53:52 +0000 (22:53 +0000)]
r4658: (grr, commited wrong file last time).

We really should have a seperate structure for this (the ARCFOUR
sbox), but for now, get the declaration right.

Andrew Bartlett
(This used to be commit 2e16f3a8d31954fdfe4a8832637fcd9191ecab96)

12 years agor4657: This really should be made a structure, so we can't get it wrong, but
Andrew Bartlett [Mon, 10 Jan 2005 22:52:01 +0000 (22:52 +0000)]
r4657: This really should be made a structure, so we can't get it wrong, but
in the meantime, get the declaration right...

Andrew Bartlett
(This used to be commit 1c65db94f03457335133210bda488e2e21209f9a)

12 years agor4650: - make more use of bitmap and enum's
Stefan Metzmacher [Mon, 10 Jan 2005 17:28:36 +0000 (17:28 +0000)]
r4650: - make more use of bitmap and enum's
- move some structs out of misc.idl

metze
(This used to be commit b6543a6e3057b5588ec50a2ebf6c7c932209efe6)

12 years agor4649: make more use of bitmap and enum's
Stefan Metzmacher [Mon, 10 Jan 2005 17:27:10 +0000 (17:27 +0000)]
r4649: make more use of bitmap and enum's

metze
(This used to be commit fa798fe1f0c39dfee7d4c86a8cd5924be8a32922)

12 years agor4648: fix netr_ServerPasswordSet() bugs
Stefan Metzmacher [Mon, 10 Jan 2005 16:12:41 +0000 (16:12 +0000)]
r4648: fix netr_ServerPasswordSet() bugs

metze
(This used to be commit 7feface9b77f2be4f592d04a6131348af761a8e8)

12 years agor4647: - use talloc_zero() instead of ZERO_STRUCTP()
Stefan Metzmacher [Mon, 10 Jan 2005 15:56:37 +0000 (15:56 +0000)]
r4647: - use talloc_zero() instead of ZERO_STRUCTP()

- fix uninitialized memory bug found by valgrind

metze
(This used to be commit 1118a1b1bb09c9a369bb9600fbe8ad3523b7e36f)

12 years agor4644: allow DSSETUP on ncacn_ip_tcp
Andrew Tridgell [Mon, 10 Jan 2005 12:56:34 +0000 (12:56 +0000)]
r4644: allow DSSETUP on ncacn_ip_tcp
(This used to be commit 6f2019c307161953291f6bb5401eefaa7edc3857)

12 years agor4643: RPC-ALTERCONTEXT now passes
Andrew Tridgell [Mon, 10 Jan 2005 12:54:44 +0000 (12:54 +0000)]
r4643: RPC-ALTERCONTEXT now passes
(This used to be commit 153e068711623af94f9a53b20d114b254d42c2a3)

12 years agor4642: added support for alter_context in the server for adding new interfaces to...
Andrew Tridgell [Mon, 10 Jan 2005 12:39:42 +0000 (12:39 +0000)]
r4642: added support for alter_context in the server for adding new interfaces to an existing pipe
(This used to be commit b6af57c86829aadc261cd7b79091cef17c15b967)

12 years agor4641: Push a few more details into the schannel ldb, and into the
Andrew Bartlett [Mon, 10 Jan 2005 12:30:13 +0000 (12:30 +0000)]
r4641: Push a few more details into the schannel ldb, and into the
credentials struct it maintains.

Clearly much of this will be replaced with some system to pass and
store the session_info, as that is the 'right way' to handle this.

Andrew Bartlett
(This used to be commit c6fcb33a887fbf0c0b42c3bc331df942a985128c)

12 years agor4640: first stage in the server side support for multiple context_ids on one pipe
Andrew Tridgell [Mon, 10 Jan 2005 12:15:26 +0000 (12:15 +0000)]
r4640: first stage in the server side support for multiple context_ids on one pipe

this stage does the following:

 - simplifies the dcerpc_handle handling, and all the callers of it

 - split out the context_id depenent state into a linked list of established contexts

 - fixed some talloc handling in several rpc servers that i noticed while doing the above
(This used to be commit fde042b3fc609c94e2c7eedcdd72ecdf489cf63b)