ira/wip.git
14 years agor1273: An initial doc about what I'd like to see in the swat for samba4. Please
Vance Lankhaar [Mon, 28 Jun 2004 00:09:53 +0000 (00:09 +0000)]
r1273: An initial doc about what I'd like to see in the swat for samba4. Please
add to it, delete from it, etc. I really want have some discussion about it
before we go ahead and start implementing it.

Vance
(This used to be commit 822d7a4a483b27b458a38aa9bbc0be3a02a3f735)

14 years agor1271: Return spoolss enumprinters info level1 from spoolss.ldb - woot!
Tim Potter [Sun, 27 Jun 2004 12:03:57 +0000 (12:03 +0000)]
r1271: Return spoolss enumprinters info level1 from spoolss.ldb - woot!
(This used to be commit 60e48790dc7ee8a98be1914ff4a2c335d25639a8)

14 years agor1270: Start to break samdb into general bits so we can share code with other
Tim Potter [Sun, 27 Jun 2004 12:03:06 +0000 (12:03 +0000)]
r1270: Start to break samdb into general bits so we can share code with other
similar dbs.
(This used to be commit 1162e2fcff177cbbe84506efea0f79f68ecb233c)

14 years agor1269: Add a 'base' field to the ndr_ofs_list structure which is the base to
Tim Potter [Sun, 27 Jun 2004 12:01:03 +0000 (12:01 +0000)]
r1269: Add a 'base' field to the ndr_ofs_list structure which is the base to
which the offset applies to.  In an array of structures containing
relative members, the offset applies to the start of the array element
being marshalled.  Previously, there was no way to access the relevant
structure start as by the time we have hit buffers, the head of the
offset list will be the last structure being marshalled.

Interestingly enough, this makes relstrs go away.  I think we thought
they were a special case in samba 3 but it turns out they are just
regular relative elements in the idl.  This makes spoolss a lot simpler
than I thought it would be.

I've run the samr and lsa tests and this doesn't seem to break anything.
It looks like security descriptors are the only structures that contain
relative members.

Oh yeah, this will probably require a 'make clean && make' otherwise you
will get bizzare errors.
(This used to be commit d379dcdfd5f41e7cf7668354c3011b8ace190953)

14 years agor1268: varient -> variant
Tim Potter [Sun, 27 Jun 2004 11:06:10 +0000 (11:06 +0000)]
r1268: varient -> variant
(This used to be commit de5984c95602ca67e8ac3139c3aa4330b74266e0)

14 years agor1266: Start to split out EnumPrinters into a separate fn for each info level.
Tim Potter [Sat, 26 Jun 2004 13:28:30 +0000 (13:28 +0000)]
r1266: Start to split out EnumPrinters into a separate fn for each info level.
(This used to be commit 6b24ee38646f3476eaf8eda946488b46180038e2)

14 years agor1264: Make sure to initialize ofs_list when creating new ndr_{push,pull}
Tim Potter [Sat, 26 Jun 2004 11:34:42 +0000 (11:34 +0000)]
r1264: Make sure to initialize ofs_list when creating new ndr_{push,pull}
structures.
(This used to be commit 6a39b17f6d8776ae695dc5c6caa0990ab2733e3c)

14 years agor1250: We no longer use these #defines
Andrew Bartlett [Fri, 25 Jun 2004 02:10:46 +0000 (02:10 +0000)]
r1250: We no longer use these #defines

Andrew Bartlett
(This used to be commit e03195335931194372468bed2d758d4b9f686fe2)

14 years agor1239: move the old msrpc_<gen|parse>() functions to ndr_<push|pull>_format_blob()
Stefan Metzmacher [Thu, 24 Jun 2004 17:07:19 +0000 (17:07 +0000)]
r1239: move the old msrpc_<gen|parse>() functions to ndr_<push|pull>_format_blob()

simular to ndr_<push|pull>_struct_blob()

metze
(This used to be commit b25dd341e0febd550a2936ca484b6fecce2ff8c2)

14 years agor1235: as the pidl code init all output data.
Stefan Metzmacher [Thu, 24 Jun 2004 00:25:38 +0000 (00:25 +0000)]
r1235: as the pidl code init all output data.
we should do it manualy too.

metze
(This used to be commit d3b80fd40a07575c18593523070986b7aed6de92)

14 years agor1234: valgrind found this uninitialised var...
Stefan Metzmacher [Thu, 24 Jun 2004 00:08:15 +0000 (00:08 +0000)]
r1234: valgrind found this uninitialised var...

But I don't know how to fix this correct,
so maybe this needs to be fixed

(tridge: can you please look at this)

metze
(This used to be commit b8b4d0d5bf037c79102709ea995ad8b8d6a9caff)

14 years agor1233: -move smb related code to smb_server/*
Stefan Metzmacher [Wed, 23 Jun 2004 23:44:50 +0000 (23:44 +0000)]
r1233: -move smb related code to smb_server/*
-move process_model code to smbd/process_model.c
-remove some used code

metze
(This used to be commit 10dd8487290a2876253ce69033e374d23b42e704)

14 years agor1229: the name of the protocol should be in first place of a function name
Stefan Metzmacher [Wed, 23 Jun 2004 15:32:44 +0000 (15:32 +0000)]
r1229: the name of the protocol should be in first place of a function name

rename <read|write|free>_spnego_data() into
spnego_<read|write|free>_data

metze
(This used to be commit 3f57c8f596eb6ad31a024acaf60fefcfd28d8387)

14 years agor1228: use int64_t instead of long long
Stefan Metzmacher [Wed, 23 Jun 2004 15:22:41 +0000 (15:22 +0000)]
r1228: use int64_t instead of long long

(jra: please use: void, char int, uint_t, [u]int<8|16|32|64>_t types in new code)

metze
(This used to be commit 626bb153c45405f93a96bc5019241af506fac163)

14 years agor1227: use uint64_t instead of unsigned long long
Stefan Metzmacher [Wed, 23 Jun 2004 15:19:22 +0000 (15:19 +0000)]
r1227: use uint64_t instead of unsigned long long

metze
(This used to be commit 238acc5acf026d341186ed2debcf5d131f2dde96)

14 years agor1226: Return dummy information for two printers. Note that ndr_push_array()
Tim Potter [Wed, 23 Jun 2004 07:31:09 +0000 (07:31 +0000)]
r1226: Return dummy information for two printers.  Note that ndr_push_array()
can be used here - neat!
(This used to be commit 5d0013438e6f838da44e6c7e74e4c49d477da3f1)

14 years agor1211: Some output from rpcclient -c enumprinters to remind me what a relative
Tim Potter [Mon, 21 Jun 2004 14:13:34 +0000 (14:13 +0000)]
r1211: Some output from rpcclient -c enumprinters to remind me what a relative
string looks like.  I'm not sure relstrs can be shoehorned into the ndr
code as easily as adding a LIBNDR_STR flag.
(This used to be commit e216c6a707ee3927d4187962774d59828550e380)

14 years agor1210: A skeleton spoolssdb, based on samdb.
Tim Potter [Mon, 21 Jun 2004 06:55:01 +0000 (06:55 +0000)]
r1210: A skeleton spoolssdb, based on samdb.
(This used to be commit 487211f1ae105fd1972fecf521654dab81175c86)

14 years agor1208: Return some dummy printer information for the EnumPrinters RPC.
Tim Potter [Sun, 20 Jun 2004 11:34:26 +0000 (11:34 +0000)]
r1208: Return some dummy printer information for the EnumPrinters RPC.
rpcclient enumprinters prints this information OK.

Some minor cut&paste cleanups.
(This used to be commit 1c749a3a348a2df477808d4fcc5377832bffa5e9)

14 years agor1207: Add spoolss to the list of endpoint servers.
Tim Potter [Sun, 20 Jun 2004 11:33:06 +0000 (11:33 +0000)]
r1207: Add spoolss to the list of endpoint servers.
(This used to be commit 2b9f364ed052c43b6074da9f5f03908ac81840f3)

14 years agor1206: Give the spoolss pipe an endpoint.
Tim Potter [Sun, 20 Jun 2004 11:29:08 +0000 (11:29 +0000)]
r1206: Give the spoolss pipe an endpoint.

Make PrinterInfo1 struct public so we can call the push function in
spoolss_EnumPrinters().
(This used to be commit f4309f3ced337cf5d968f62e80adee1eb75201af)

14 years agor1205: Whoops - this should fix the build.
Tim Potter [Sun, 20 Jun 2004 10:48:00 +0000 (10:48 +0000)]
r1205: Whoops - this should fix the build.
(This used to be commit e21f324937df2fe70b693112bd0b6fe6575d70ed)

14 years agor1204: decrpc -> dcerpc
Tim Potter [Sun, 20 Jun 2004 10:00:32 +0000 (10:00 +0000)]
r1204: decrpc -> dcerpc
(This used to be commit a5e3a26fc9a7e2c616302ed3b4a021f5755a4a13)

14 years agor1201: Skeleton versions of OpenPrinterEx() and ClosePrinter() to get the hang
Tim Potter [Sun, 20 Jun 2004 07:36:26 +0000 (07:36 +0000)]
r1201: Skeleton versions of OpenPrinterEx() and ClosePrinter() to get the hang
of things.
(This used to be commit 3e79a6219eca3b96fe04d66b6cdfb11400c1771d)

14 years agor1200: Add 'gensec', our generic security layer.
Andrew Bartlett [Sun, 20 Jun 2004 00:58:09 +0000 (00:58 +0000)]
r1200: Add 'gensec', our generic security layer.

This layer is used for DCERPC security, as well as ntlm_auth at this
time.  It expect things like SASL and the CIFS layer to use it as
well.

The particular purpose of this layer is to introduce SPENGO, which
needs generic access to the actual implementation mechanisms.

Schannel, due to it's 'interesting' setup properties is in GENSEC, but
is only in the RPC code.

Andrew Bartlett
(This used to be commit 902af49006fb8cfecaadd3cc0c10e2e542083fb1)

14 years agor1199: Make talloc_asprintf_append() work on a NULL source string as if it were
Andrew Bartlett [Sun, 20 Jun 2004 00:54:17 +0000 (00:54 +0000)]
r1199: Make talloc_asprintf_append() work on a NULL source string as if it were
just a alloc_asprintf().

(makes it easier to use in a loop)

Andrew Bartlett
(This used to be commit 5816d09c47252d2ee8732722b3cc44ea865b8fcc)

14 years agor1198: Merge the Samba 3.0 ntlm_auth, including the kerberos and SPENGO parts.
Andrew Bartlett [Sat, 19 Jun 2004 08:15:41 +0000 (08:15 +0000)]
r1198: Merge the Samba 3.0 ntlm_auth, including the kerberos and SPENGO parts.

I have moved the SPNEGO and Kerberos code into libcli/auth, and intend
to refactor them into the same format as NTLMSSP.

Andrew Bartlett
(This used to be commit 58da78a7460d5d0a4abee7d7b84799c228e6bc0b)

14 years agor1197: Fix my build breakage, variables at the top of a block only...
Andrew Bartlett [Sat, 19 Jun 2004 04:31:12 +0000 (04:31 +0000)]
r1197: Fix my build breakage, variables at the top of a block only...

Andrew Bartlett
(This used to be commit 57ca89eab37b9d3dd83124d9d0f5a526aca0979f)

14 years agor1196: Remove unused pstring/fstring functions.
Andrew Bartlett [Sat, 19 Jun 2004 04:22:49 +0000 (04:22 +0000)]
r1196: Remove unused pstring/fstring functions.

Andrew Bartlett
(This used to be commit 4f06bf4ab8cc61aec730f84766306119eb976c57)

14 years agor1189: Now that we use a common 'base' return structure for the SamLogon
Andrew Bartlett [Fri, 18 Jun 2004 13:27:37 +0000 (13:27 +0000)]
r1189: Now that we use a common 'base' return structure for the SamLogon
call, avoid code duplication in the torture suite.

Andrew Bartlett
(This used to be commit b6128c2a9d8e23dad0b14106f45a0638655d6cd7)

14 years agor1188: Use generated pidl template for this file and return DCESRV_FAULT instead
Tim Potter [Fri, 18 Jun 2004 12:11:41 +0000 (12:11 +0000)]
r1188: Use generated pidl template for this file and return DCESRV_FAULT instead
of a bogus WERROR.
(This used to be commit 261531ce0a7f33eda5358319312877dc85386edb)

14 years agor1187: * Remove testing hack (actually check signatures on NTLM2).
Andrew Bartlett [Fri, 18 Jun 2004 11:59:52 +0000 (11:59 +0000)]
r1187: * Remove testing hack (actually check signatures on NTLM2).

* Remove unreached counter increment

* Print the correct NTLMSSP key.
(This used to be commit b96700695479c19c7b2c190616420762409fdf0d)

14 years agor1186: Clarify why this is a 'bogus' negitive test. If we pass it, we may
Andrew Bartlett [Fri, 18 Jun 2004 11:58:43 +0000 (11:58 +0000)]
r1186: Clarify why this is a 'bogus' negitive test.  If we pass it, we may
still be broken.

Andrew Bartlett
(This used to be commit da5f311732d626c500dc5eaf6d457fee49e2da99)

14 years agor1185: Hey look an endpoint for the spoolss pipe!
Tim Potter [Fri, 18 Jun 2004 07:34:28 +0000 (07:34 +0000)]
r1185: Hey look an endpoint for the spoolss pipe!

Doesn't do much at the moment except compile.
(This used to be commit ed9c4d7d70041879fa5005222f6cf84af558abef)

14 years agor1174: Remove $var_prefix parameter for all functions. We don't need it for
Tim Potter [Thu, 17 Jun 2004 12:12:26 +0000 (12:12 +0000)]
r1174: Remove $var_prefix parameter for all functions.  We don't need it for
ethereal.
(This used to be commit bf8e255d2e53fe50c2d37065aac8c6582712f0b0)

14 years agor1173: A quick little test to show that we cannot bind twice to a single endpoint.
Andrew Bartlett [Thu, 17 Jun 2004 00:31:24 +0000 (00:31 +0000)]
r1173: A quick little test to show that we cannot bind twice to a single endpoint.

Andrew Bartlett
(This used to be commit e12ad47c69098b6865f5b10527aa44ff322e4b18)

14 years agor1170: Remove bogus part of previous commit - session keys, even in NTLMSSP
Andrew Bartlett [Wed, 16 Jun 2004 13:59:52 +0000 (13:59 +0000)]
r1170: Remove bogus part of previous commit - session keys, even in NTLMSSP
 are variable length.

Remove extra casts

Andrew Bartlett
(This used to be commit 84f86b83f88cea5564347f3aa623be2d9feeb4b3)

14 years agor1169: Some more updates to the NTLMSSP NTLM2 code:
Andrew Bartlett [Wed, 16 Jun 2004 13:53:40 +0000 (13:53 +0000)]
r1169: Some more updates to the NTLMSSP NTLM2 code:
 - implement key weakening
 - don't create large 'hashes' when we only want a key (signing subkeys)
 - make more useful debugs.

NTLM2 is still off by default, till I figure out how to do NTLM2 signing.

Andrew Bartlett
(This used to be commit 079c2654851536b0a7918d408ac9597abbab8fd2)

14 years agor1168: fixed a little-endian/big-endian mixup in the rpc server code
Andrew Tridgell [Wed, 16 Jun 2004 12:44:15 +0000 (12:44 +0000)]
r1168: fixed a little-endian/big-endian mixup in the rpc server code
(This used to be commit 9b397356ae1daa7bc1984e196020ea62725f542c)

14 years agor1167: Misc cleanups:
Tim Potter [Wed, 16 Jun 2004 09:32:01 +0000 (09:32 +0000)]
r1167: Misc cleanups:

  - shorten COL_INFO message
  - make parser error messages prettier
  - separate variable declarations from function body with newline
  - only generate variables for requests/responses when they have the
    in/out property
(This used to be commit 53313775a872d5c2f78f214573fd5933af5c205c)

14 years agor1166: Convert (commented out) ndr_pull_error() calls into proto_tree_add_text()
Tim Potter [Wed, 16 Jun 2004 07:33:28 +0000 (07:33 +0000)]
r1166: Convert (commented out) ndr_pull_error() calls into proto_tree_add_text()
calls so egregious parse errors are displayed in the ethereal gui.
(This used to be commit 904de85c88f8a122cee67bfa175c5e45e7d9c62f)

14 years agor1165: fixed handling of SMBtrans replies that should return STATUS_BUFFER_OVERFLOW...
Andrew Tridgell [Wed, 16 Jun 2004 06:49:24 +0000 (06:49 +0000)]
r1165: fixed handling of SMBtrans replies that should return STATUS_BUFFER_OVERFLOW when more data is present.
(This used to be commit 0e557fe85748558affd20a58455c4b75fee69e27)

14 years agor1164: Whoops - remove debugging printfs and Data::Dumper reference.
Tim Potter [Wed, 16 Jun 2004 05:03:50 +0000 (05:03 +0000)]
r1164: Whoops - remove debugging printfs and Data::Dumper reference.

Give unions their own subtree as well as structures.
(This used to be commit d3183d781ed62de756840c85742ae4f887c45251)

14 years agor1163: Add const.
Andrew Bartlett [Wed, 16 Jun 2004 04:41:32 +0000 (04:41 +0000)]
r1163: Add const.

Andrew Bartlett
(This used to be commit 4a445fce7fcc09049b97bcde61fa5ed1a945757d)

14 years agor1162: Give each struct it's own subtree in the ethereal gui. Much more
Tim Potter [Wed, 16 Jun 2004 03:58:42 +0000 (03:58 +0000)]
r1162: Give each struct it's own subtree in the ethereal gui.  Much more
readable!
(This used to be commit 1d29a4fd874a963c53546825d657b47ee3af085b)

14 years agor1161: Include a few more self-check NTLMSSP examples.
Andrew Bartlett [Wed, 16 Jun 2004 02:08:30 +0000 (02:08 +0000)]
r1161: Include a few more self-check NTLMSSP examples.

Andrew Bartlett
(This used to be commit 81678f8dc6fc7ef7218c7fad2b2766355927f21c)

14 years agor1160: Some minor cosmetic fixes to make the generated code look nicer.
Tim Potter [Wed, 16 Jun 2004 02:03:32 +0000 (02:03 +0000)]
r1160: Some minor cosmetic fixes to make the generated code look nicer.
(This used to be commit a6c95fbd6f7205574182ab4a38f0f061435fda6e)

14 years agor1159: Implement functions to dissect 64-bit values (nttime, hyper_t, int64,
Tim Potter [Wed, 16 Jun 2004 01:35:49 +0000 (01:35 +0000)]
r1159: Implement functions to dissect 64-bit values (nttime, hyper_t, int64,
uint64).

Rename parameter e_ndr to ndr.
(This used to be commit 80bc9c9c598ebb2caa8dee745087f4b80ea8536e)

14 years agor1158: Fix bug in dissection of array count. Arrays mostly work now with the
Tim Potter [Wed, 16 Jun 2004 01:34:19 +0000 (01:34 +0000)]
r1158: Fix bug in dissection of array count.  Arrays mostly work now with the
exception of a union related bug.
(This used to be commit 80f1445507165a4b6805cd346b83fe57e576c71d)

14 years agor1153: We can now dissect security descriptors.
Tim Potter [Tue, 15 Jun 2004 09:34:10 +0000 (09:34 +0000)]
r1153: We can now dissect security descriptors.
(This used to be commit c194f2cf073585d8a9dbc6a6e746dd1cbf7c67b7)

14 years agor1152: Checkin of workarea. The parser can now dissect a big chunk of the samr
Tim Potter [Tue, 15 Jun 2004 06:56:34 +0000 (06:56 +0000)]
r1152: Checkin of workarea.  The parser can now dissect a big chunk of the samr
operations.  Security descriptors and unions are still left to do.
(This used to be commit f29fb9a3fc3b9b36518c4bff49e9c030a8a921ba)

14 years agor1151: fixed fill-in of force_password_change field in auth_sam
Andrew Tridgell [Tue, 15 Jun 2004 05:21:28 +0000 (05:21 +0000)]
r1151: fixed fill-in of force_password_change field in auth_sam
(This used to be commit 9135f14540ded30892dc1f944aec1e8979a476e1)

14 years agor1150: - fixed interactive sam logon in the rpc server
Andrew Tridgell [Tue, 15 Jun 2004 03:53:21 +0000 (03:53 +0000)]
r1150: - fixed interactive sam logon in the rpc server

- added a torture test for interactive login in smbtorture

These changes allow winxp to perform an interactive login (a login on
the winxp console) against a Samba4 DC. Our netlogon server code is
still filling in many of the fields incorrectly, but it fills in
enough that winxp can login.
(This used to be commit db9ea488b047b5f0f7538fd75fb7dde8277eb06b)

14 years agor1149: fixed the handling of NDR_SET_VALUES in the debug print of rpc structures...
Andrew Tridgell [Tue, 15 Jun 2004 03:51:04 +0000 (03:51 +0000)]
r1149: fixed the handling of NDR_SET_VALUES in the debug print of rpc structures in the generated rpc server code
(This used to be commit 60838a0f94ef2b2f27a6f1b3c413481e94c69602)

14 years agor1148: fixed a minor formatting error in generated code
Andrew Tridgell [Tue, 15 Jun 2004 03:50:22 +0000 (03:50 +0000)]
r1148: fixed a minor formatting error in generated code
(This used to be commit 0a67b9c324fb4fd74de0f3c12e55de6972b88cdd)

14 years agor1147: Support enumerating values
Jelmer Vernooij [Mon, 14 Jun 2004 13:56:52 +0000 (13:56 +0000)]
r1147: Support enumerating values
(This used to be commit 3af8419fa4053a3b2887e91b4bda5c93327efad4)

14 years agor1146: initially zero server info
Andrew Tridgell [Mon, 14 Jun 2004 13:22:03 +0000 (13:22 +0000)]
r1146: initially zero server info
(This used to be commit c1aeaf97b39e1769bd43b21225094bb5128eaab4)

14 years agor1145: added server support for logon level 5 in sam logon
Andrew Tridgell [Mon, 14 Jun 2004 13:21:37 +0000 (13:21 +0000)]
r1145: added server support for logon level 5 in sam logon
(This used to be commit cb3d3b5e51dc9d52854c922b0c50686284ac8f1b)

14 years agor1144: added logon level 5 for sam logon
Andrew Tridgell [Mon, 14 Jun 2004 13:21:11 +0000 (13:21 +0000)]
r1144: added logon level 5 for sam logon
(This used to be commit eb13fc6c3b482d49a2cfaf13d290f1e54a2f1865)

14 years agor1143: fixed spelling of sAMAccountName
Andrew Tridgell [Mon, 14 Jun 2004 13:20:33 +0000 (13:20 +0000)]
r1143: fixed spelling of sAMAccountName
(This used to be commit aadfbcee76a9181a540620f3b0827a3268b63a0e)

14 years agor1142: I think this should fix the interactive logins for tridge - don't take
Andrew Bartlett [Mon, 14 Jun 2004 12:31:04 +0000 (12:31 +0000)]
r1142: I think this should fix the interactive logins for tridge - don't take
sizeof() a pointer...

Andrew Bartlett
(This used to be commit c1019e6df6aa4fcce7dc2ccbd404a4254ab5d1fb)

14 years agor1141: - consolidated the netr_SamInfo structures using a netr_SamBaseInfo
Andrew Tridgell [Mon, 14 Jun 2004 12:06:53 +0000 (12:06 +0000)]
r1141: - consolidated the netr_SamInfo structures using a netr_SamBaseInfo
  structure (andrew, this is the type of structure consolidation I think
  you were asking about. It's possible here in NDR as it isn't in the
  top level fn code)

- added validation level 6 in sam logon

With these changes I can successfully authentication smbclient to a
winxp server, with the winxp server using a Samba4 ADS DC for account
auth
(This used to be commit 705205083a6e2430c420f44436a1d1ff8826bc73)

14 years agor1140: added IDL and test code for validation level 6 in sam logon
Andrew Tridgell [Mon, 14 Jun 2004 11:33:28 +0000 (11:33 +0000)]
r1140: added IDL and test code for validation level 6 in sam logon
(This used to be commit c8541098436d2cd83538375889560405ecb50034)

14 years agor1139: added IDL and server code for netr_LogonSamLogonWithFlags()
Andrew Tridgell [Mon, 14 Jun 2004 09:31:47 +0000 (09:31 +0000)]
r1139: added IDL and server code for netr_LogonSamLogonWithFlags()
(This used to be commit 4eac7340d8d7a109bed8fe7bb7cf663d6e7f0a56)

14 years agor1138: allow for a user in no groups
Andrew Tridgell [Mon, 14 Jun 2004 09:30:54 +0000 (09:30 +0000)]
r1138: allow for a user in no groups
(This used to be commit f9c1e12594e58b7e663ca099929eab8867b82a0c)

14 years agor1137: - added torture test for netr_LogonGetDomainInfo() call
Andrew Tridgell [Mon, 14 Jun 2004 08:15:31 +0000 (08:15 +0000)]
r1137: - added torture test for netr_LogonGetDomainInfo() call
(This used to be commit fdf6e4169d531c4a7d4e1b937abd3eb3af03c860)

14 years agor1136: - added IDL for netr_LogonGetDomainInfo()
Andrew Tridgell [Mon, 14 Jun 2004 08:12:50 +0000 (08:12 +0000)]
r1136: - added IDL for netr_LogonGetDomainInfo()

- added workstation to auth_session_info in rpc servers

- added session key fetch hook in crypto backends in dcesrv

- store and fetch seed as well as a session key in schannel ldb

- when a client uses schannel to setup a netlogon pipe connection we
  also need to setup the credentials from the schannel negotiation so
  credentials chaining works

- added server side netr_LogonGetDomainInfo() call
(This used to be commit a35459387de3b6a422c5af6f658338fc7e4314b0)

14 years agor1135: - allow integer function numbers in ndrdump
Andrew Tridgell [Mon, 14 Jun 2004 08:07:26 +0000 (08:07 +0000)]
r1135:  - allow integer function numbers in ndrdump

 - dump unused data in ndrdump
(This used to be commit 65c5590bd0cd23c65a94786846740180c7f175ba)

14 years agor1134: added a TODO regarding schannel credentials
Andrew Tridgell [Mon, 14 Jun 2004 07:28:05 +0000 (07:28 +0000)]
r1134: added a TODO regarding schannel credentials
(This used to be commit 17dacf494ac25bb6d9f6dea8cb81968ea2b84c55)

14 years agor1133: - add ndr_pull_ptr() as a separate call instead of ndr_pull_uint32()
Andrew Tridgell [Mon, 14 Jun 2004 07:27:22 +0000 (07:27 +0000)]
r1133: - add ndr_pull_ptr() as a separate call instead of ndr_pull_uint32()
  (useful for debugging IDL)

- fixed a couple of places that auto-generate incorrect printf style arguments
  for ndr_pull_error()
(This used to be commit ad3324a79ce030df4c5ed46408e662b46588f89f)

14 years agor1132: add a PRINTF_ATTRIBUTE to ndr_pull_error() to catch printf style coding errors
Andrew Tridgell [Mon, 14 Jun 2004 07:25:38 +0000 (07:25 +0000)]
r1132: add a PRINTF_ATTRIBUTE to ndr_pull_error() to catch printf style coding errors
(This used to be commit f0940f19129f0f2eccc3bb5130b8d2dd0b60f83f)

14 years agor1131: remove an error msg for failing to open unexpected.tdb
Andrew Tridgell [Mon, 14 Jun 2004 07:24:52 +0000 (07:24 +0000)]
r1131: remove an error msg for failing to open unexpected.tdb
(This used to be commit ae393c2ed6b6039d28bb02d5e5104a6d25368ce6)

14 years agor1130: remove some pointless debug messages
Andrew Tridgell [Mon, 14 Jun 2004 07:24:13 +0000 (07:24 +0000)]
r1130: remove some pointless debug messages
(This used to be commit 260be3fbef5a198621274cfe0c0250f292d819ca)

14 years agor1129: Remove unused function.
Andrew Bartlett [Mon, 14 Jun 2004 06:49:18 +0000 (06:49 +0000)]
r1129: Remove unused function.

Andrew Bartlett
(This used to be commit 4d23b9e039872273f3ef433d94d24759bcb87c30)

14 years agor1123: Make all lp_ string functions return 'const char *'.
Andrew Bartlett [Sun, 13 Jun 2004 23:50:55 +0000 (23:50 +0000)]
r1123: Make all lp_ string functions return 'const char *'.

Fix other 'const' warnings in the torture code.

Andrew Bartlett
(This used to be commit 5d39d7497f189da15d659b3f83b7314026040a15)

14 years agor1119: Saner keyboard shortcuts
Jelmer Vernooij [Sat, 12 Jun 2004 17:51:22 +0000 (17:51 +0000)]
r1119: Saner keyboard shortcuts
(This used to be commit 971941acc7e75da89b1bdc612fd476a7f6124dcb)

14 years agor1118: Read-only enumeration of keys in the LDB backend works now :-)
Jelmer Vernooij [Sat, 12 Jun 2004 15:12:23 +0000 (15:12 +0000)]
r1118: Read-only enumeration of keys in the LDB backend works now :-)
(This used to be commit 456f97eed05047b20acceb50708b47209c37ca20)

14 years agor1113: Test for wildcards in chkpath.
Jeremy Allison [Thu, 10 Jun 2004 23:17:22 +0000 (23:17 +0000)]
r1113: Test for wildcards in chkpath.
Jeremy.
(This used to be commit 14cf961b7f8d273604e53ba9a889bb18cd8054d8)

14 years agor1100: Comment out functions that we now get from other sources (misc.idl and
Tim Potter [Thu, 10 Jun 2004 07:04:02 +0000 (07:04 +0000)]
r1100: Comment out functions that we now get from other sources (misc.idl and
lsarpc.idl).

Add stub for ndr_pull_relative() function.
(This used to be commit b3bc3d2ef41e2c5948a05d0c10591befdb2444a5)

14 years agor1099: Set $module variable to name of module.
Tim Potter [Thu, 10 Jun 2004 06:56:36 +0000 (06:56 +0000)]
r1099: Set $module variable to name of module.

Only generate code for module registration if we could find a UUID.

Tweaks to get [relative] compiling.
(This used to be commit 19442e07d080f4965ece5eacd8724e325266ec0c)

14 years agor1098: Extended raw chkpath to catch regressions.
Jeremy Allison [Thu, 10 Jun 2004 01:08:54 +0000 (01:08 +0000)]
r1098: Extended raw chkpath to catch regressions.
Jeremy.
(This used to be commit 37d1fa1684b4cca125ae2cf6039f8b12e7ae1b89)

14 years agor1091: Added in timing tests for deferred opens. Added extra debug info to signing
Jeremy Allison [Wed, 9 Jun 2004 00:07:59 +0000 (00:07 +0000)]
r1091: Added in timing tests for deferred opens. Added extra debug info to signing
mistakes.
Jeremy.
(This used to be commit 5c3a2417cfe1bdbdfb35d933d49f77f6696790b3)

14 years agor1086: Add defer open test to check timeout on sharing violation open.
Jeremy Allison [Tue, 8 Jun 2004 19:25:26 +0000 (19:25 +0000)]
r1086: Add defer open test to check timeout on sharing violation open.
This has found some signing errors in the Samba3.0 implementation
of the deferred open code. Still working on these...
Jeremy
(This used to be commit 0068cb12ef91515a95f17a1be7dfbc83fbb89eba)

14 years agor1083: Generate prototypes for structs and unions marked "public" in the idl.
Tim Potter [Tue, 8 Jun 2004 12:33:47 +0000 (12:33 +0000)]
r1083: Generate prototypes for structs and unions marked "public" in the idl.

Delete various hacks to work around not doing this before.
(This used to be commit 5c3c3d3e72d8dd5d995a5bc5b2c7d7217b7c0432)

14 years agor1080: Make sure to initialise all the returned elements in the SamLogon
Andrew Bartlett [Mon, 7 Jun 2004 22:17:51 +0000 (22:17 +0000)]
r1080: Make sure to initialise all the returned elements in the SamLogon
reply also initialise the LM session key, when we have it (was failing
because the auth code was setting it's length wrong).

Andrew Bartlett
(This used to be commit de97d9df224f769953e850a276515923a830839c)

14 years agor1078: the dxesrv_crypto_* implementations should now explicit set
Stefan Metzmacher [Mon, 7 Jun 2004 21:34:32 +0000 (21:34 +0000)]
r1078: the dxesrv_crypto_* implementations should now explicit set
the dce_conn->auth_state.session_info
( the ntlmssp one works fine, but the schannel one isn't implemented yet)

this is also set by the ntvfs_ipc backend on the endpoint connect.

metze
(This used to be commit ad3dd1789e9f124493519cb4731d9f5a563fd051)

14 years agor1077: fix segfault in schannel over ncacn_ip_tcp
Stefan Metzmacher [Mon, 7 Jun 2004 21:30:17 +0000 (21:30 +0000)]
r1077: fix segfault in schannel over ncacn_ip_tcp

metze
(This used to be commit 9e9a52692ebe9d47f1a08740ea1dcb8f46041211)

14 years agor1073: import DYNEXP flags to smb_build
Stefan Metzmacher [Mon, 7 Jun 2004 18:31:38 +0000 (18:31 +0000)]
r1073: import DYNEXP flags to smb_build

and use @{$SMB_BUILD_CTX->{BUILD_ENV}{LD}{DYNEXP}} for the flags

I'll use this for all vars which are currently using AC_SUBST(),
so we can skip Makefile.in...

(this should fix the build on us4...)

metze
(This used to be commit 798cbed5a328bd773447f1ee0b4f6ea751062e7e)

14 years agor1068: make the dcerpc client side auth/crypto code much more generic
Stefan Metzmacher [Mon, 7 Jun 2004 12:30:22 +0000 (12:30 +0000)]
r1068: make the dcerpc client side auth/crypto code much more generic

metze
(This used to be commit 1706ff88a72c6578a109c2cf24f2f009812c3892)

14 years agor1067: fix compiler warnings
Stefan Metzmacher [Mon, 7 Jun 2004 12:17:29 +0000 (12:17 +0000)]
r1067: fix compiler warnings

metze
(This used to be commit e5d338821e590c49947a18a5d5c361122571988d)

14 years agor1066: fix compiler warning
Stefan Metzmacher [Mon, 7 Jun 2004 12:07:08 +0000 (12:07 +0000)]
r1066: fix compiler warning

metze
(This used to be commit 6f8b51e290d44a7c4e039dc6e93c7911a0316009)

14 years agor1065: some header file cleanups
Stefan Metzmacher [Mon, 7 Jun 2004 12:06:26 +0000 (12:06 +0000)]
r1065: some header file cleanups

smb.h should end with only smb protocol specific stuff in it

metze
(This used to be commit fda8e59f3d057bf849598f96f78f50f62d8514fe)

14 years agor1064: Remove the unused userdom_struct from the user_context struct
Andrew Bartlett [Mon, 7 Jun 2004 09:16:36 +0000 (09:16 +0000)]
r1064: Remove the unused userdom_struct from the user_context struct

Andrew Bartlett
(This used to be commit e975f63a2d5adadfba8d5e53c4817286e08b7e1d)

14 years agor1063: userdom_struct dies!
Andrew Bartlett [Mon, 7 Jun 2004 09:08:39 +0000 (09:08 +0000)]
r1063: userdom_struct dies!

(Cleanup unused header definitions)

Andrew Bartlett
(This used to be commit 5941873f558c2af6ab5ef64e468acc8fab96ac01)

14 years agor1062: fix typo, found by valgrind
Stefan Metzmacher [Mon, 7 Jun 2004 09:01:40 +0000 (09:01 +0000)]
r1062: fix typo, found by valgrind

metze
(This used to be commit f65cba9047c6a206e5aaade15b157e07fe4c8bd2)

14 years agor1061: The start of the SamLogon call for the NETLOGON pipe.
Andrew Bartlett [Mon, 7 Jun 2004 08:54:49 +0000 (08:54 +0000)]
r1061: The start of the SamLogon call for the NETLOGON pipe.

Changes:

- Check for a valid 'pipe_state' in netr_ServerAuthenticate3 before
  we dereference it

- removes the expansionroom[7] in the netr_SamInfo* structs to 7
individual elements.
- renames netr_SamInfo -> netr_SamInfo2
          netr_SamInfo2 -> netr_SamInfo3
  - Having the thing we always called an 'info3' being 'netr_SamInfo2'
    was just too confusing.

- Expand and fill in extra details about users from the SAM, into
  the server_info, for processing into the SamLogon reply.

- Add a dum_sid_dup() function to duplicate a struct dom_sid

The SamLogon code currently does not return supplementary groups, and is
only tested with Samba4 smbtorture.

Andrew Bartlett
(This used to be commit 6c92563b7961f15fc74b02601e105d5e1d04f04d)

14 years agor1060: check for an invalid session key in samr_set_password()
Andrew Tridgell [Mon, 7 Jun 2004 08:50:21 +0000 (08:50 +0000)]
r1060: check for an invalid session key in samr_set_password()
(This used to be commit 5a90187c2cb7521cb7931355e5cf2f11d55a4ad0)

14 years agor1059: add dcesrv_crypto_schannel_session_info() dummy function.
Stefan Metzmacher [Mon, 7 Jun 2004 07:07:27 +0000 (07:07 +0000)]
r1059: add dcesrv_crypto_schannel_session_info() dummy function.

every backend must implement all functions!

metze
(This used to be commit d62c0661f9234418478873dfc9ba244bdf5c36c0)

14 years agor1058: The start of work on the SamLogon call for NETLOGON.
Andrew Bartlett [Mon, 7 Jun 2004 03:46:32 +0000 (03:46 +0000)]
r1058: The start of work on the SamLogon call for NETLOGON.

This starts to store information about the user in the server_info
struct - like the account name, the full name etc.

Also, continue to make the names of the structure elements in the
logon reply more consistant with those in the SAMR pipe.

Andrew Bartlett
(This used to be commit 3ccd96bd945e0fd95e42c69ad8ff07055af2e62b)

14 years agor1057: added rpc packet logging for packets that generate rpc faults. This
Andrew Tridgell [Mon, 7 Jun 2004 03:13:38 +0000 (03:13 +0000)]
r1057: added rpc packet logging for packets that generate rpc faults. This
makes it much easier to develop the IDL for new requests, especially
for sealed pipes, where ethereal cannot easily extract the data.
(This used to be commit 0cde043592d2d2439cf0cd8bf113545e78be5dfd)