samba.git
15 years agor1465: always do a full C prototype, even if its only (void).
Andrew Tridgell [Mon, 12 Jul 2004 13:22:26 +0000 (13:22 +0000)]
r1465: always do a full C prototype, even if its only (void).

this declaration:

int foo();

is *not* the same as this one:

int foo(void);

the first means "I don't know what arguments it takes". The second
means "it takes no arguments"

15 years agor1464: the recent build changes completely lost the speed advantage of using
Andrew Tridgell [Mon, 12 Jul 2004 13:20:50 +0000 (13:20 +0000)]
r1464: the recent build changes completely lost the speed advantage of using
PCH (in fact, it meant that PCH was a slowdown, not a speedup). To
gain speed with PCH you must ensure that the .gch file is compiled
with _exactly_ the same options as the normal object files.

this fixes the .gch build options

15 years agor1463: fix the krb5 build
Stefan Metzmacher [Mon, 12 Jul 2004 13:15:53 +0000 (13:15 +0000)]
r1463: fix the krb5 build

metze

15 years agor1462: GENSEC Kerberos and SPENGO work:
Andrew Bartlett [Mon, 12 Jul 2004 09:11:13 +0000 (09:11 +0000)]
r1462: GENSEC Kerberos and SPENGO work:
 - Spelling - it's SPNEGO, not SPENGO
 - SMB signing - Krb5 logins are now correctly signed
 - SPNEGO - Changes to always tell GENSEC about incoming packets, empty or not.

Andrew Bartlett

15 years agor1461: ntlm_check.c is a server-side peice of code, so it belongs in AUTH.
Andrew Bartlett [Mon, 12 Jul 2004 09:07:10 +0000 (09:07 +0000)]
r1461: ntlm_check.c is a server-side peice of code, so it belongs in AUTH.

Andrew Bartlett

15 years agor1460: Avoid a compile warning.
Andrew Bartlett [Mon, 12 Jul 2004 09:02:09 +0000 (09:02 +0000)]
r1460: Avoid a compile warning.

Andrew Bartlett

15 years agor1458: Add a new configure option, to make it possible to both find errors,
Andrew Bartlett [Mon, 12 Jul 2004 05:50:29 +0000 (05:50 +0000)]
r1458: Add a new configure option, to make it possible to both find errors,
and compile with gtk.

The --enable-developer option was just too noisy with buggy GTK headers.

Andrew Bartlett

15 years agor1457: Add the GSSAPI layer to our gensec_krb5 code.
Andrew Bartlett [Mon, 12 Jul 2004 04:26:50 +0000 (04:26 +0000)]
r1457: Add the GSSAPI layer to our gensec_krb5 code.

Andrew Bartlett

15 years agor1456: Rename this parameter to avoid shadowing a badly-named GTK global.
Andrew Bartlett [Mon, 12 Jul 2004 02:40:38 +0000 (02:40 +0000)]
r1456: Rename this parameter to avoid shadowing a badly-named GTK global.

Andrew Bartlett

15 years agor1455: More Gtk+ updates:
Jelmer Vernooij [Sun, 11 Jul 2004 20:16:02 +0000 (20:16 +0000)]
r1455: More Gtk+ updates:
 - Start working on 'gwsam'
 - Add GtkSelectDomainDialog and GtkSelectHostDialog

15 years agor1454: Today is the day of broken builds, now I get my share ... :-)
Volker Lendecke [Sun, 11 Jul 2004 16:16:02 +0000 (16:16 +0000)]
r1454: Today is the day of broken builds, now I get my share ... :-)

Add a missing file.

Volker

15 years agor1453: Change the RAP client to use the ndr routines for moving bytes around.
Volker Lendecke [Sun, 11 Jul 2004 14:39:25 +0000 (14:39 +0000)]
r1453: Change the RAP client to use the ndr routines for moving bytes around.

Volker

15 years agor1452: Thanks to Volker for spotting that this code was certainly not tested...
Andrew Bartlett [Sun, 11 Jul 2004 12:59:27 +0000 (12:59 +0000)]
r1452: Thanks to Volker for spotting that this code was certainly not tested...

(make sure to actually return the result).

Andrew Bartlett

15 years agor1451: More missing files...
Jelmer Vernooij [Sun, 11 Jul 2004 12:51:01 +0000 (12:51 +0000)]
r1451: More missing files...

15 years agor1450: Oops.. Missing files :-)
Jelmer Vernooij [Sun, 11 Jul 2004 12:38:27 +0000 (12:38 +0000)]
r1450: Oops.. Missing files :-)

15 years agor1449: Use the config system somewhat better in libcli/auth
Jelmer Vernooij [Sun, 11 Jul 2004 12:15:58 +0000 (12:15 +0000)]
r1449: Use the config system somewhat better in libcli/auth

15 years agor1448: Indent this so proto doesn't pick it up.
Andrew Bartlett [Sun, 11 Jul 2004 12:08:33 +0000 (12:08 +0000)]
r1448: Indent this so proto doesn't pick it up.

Andrew Bartlett

15 years agor1447: Fix compile.
Andrew Bartlett [Sun, 11 Jul 2004 11:52:01 +0000 (11:52 +0000)]
r1447: Fix compile.

Andrew Bartlett

15 years agor1446: Another funciton to avoid in proto.h
Andrew Bartlett [Sun, 11 Jul 2004 11:48:21 +0000 (11:48 +0000)]
r1446: Another funciton to avoid in proto.h

Andrew Bartlett

15 years agor1445: Ensure get_auth_data_from_tkt doesn't get into proto.h
Andrew Bartlett [Sun, 11 Jul 2004 11:45:56 +0000 (11:45 +0000)]
r1445: Ensure get_auth_data_from_tkt doesn't get into proto.h

Andrew Bartlett

15 years agor1443: More changes towards Kerberos in Samba4's GENSEC.
Andrew Bartlett [Sun, 11 Jul 2004 10:47:41 +0000 (10:47 +0000)]
r1443: More changes towards Kerberos in Samba4's GENSEC.

The kerberos context is now tied in life to the GENSEC context.

Andrew Bartlett

15 years agor1442: I was going to rename kerberos.c -> kerberos_kinit.c, but didn't.
Andrew Bartlett [Sun, 11 Jul 2004 10:41:44 +0000 (10:41 +0000)]
r1442: I was going to rename kerberos.c -> kerberos_kinit.c, but didn't.

Fix config.mk...

(oh, and this file is somehow marked as binary...)

Andrew Bartlett

15 years agor1441: Indentation and comment fixes.
Andrew Bartlett [Sun, 11 Jul 2004 10:38:31 +0000 (10:38 +0000)]
r1441: Indentation and comment fixes.

Andrew Bartlett

15 years agor1440: GENSEC improvements:
Andrew Bartlett [Sun, 11 Jul 2004 10:29:54 +0000 (10:29 +0000)]
r1440: GENSEC improvements:
 - Infrustructure for kerberos
 - Don't segfault on un-implemented backend functions
 - Add comments.

Andrew Bartlett

15 years agor1439: Once we are authenticated, always return NT_STATUS_OK. (Makes SPENGO
Andrew Bartlett [Sun, 11 Jul 2004 10:26:50 +0000 (10:26 +0000)]
r1439: Once we are authenticated, always return NT_STATUS_OK. (Makes SPENGO
easier to code, as it may return an 'ok' with an empty blob).

Andrew Bartlett

15 years agor1438: Record the principal name we are sent in the SPENGO mechListMIC in a
Andrew Bartlett [Sun, 11 Jul 2004 10:20:42 +0000 (10:20 +0000)]
r1438: Record the principal name we are sent in the SPENGO mechListMIC in a
seperate char *, not a DATA_BLOB.

This allows us to tell if we were sent a string here, or a real MIC.

15 years agor1437: Intermediate commit of krb5 for GENSEC.
Andrew Bartlett [Sun, 11 Jul 2004 10:16:36 +0000 (10:16 +0000)]
r1437: Intermediate commit of krb5 for GENSEC.

The session key in the client is wrong, we don't do signing/sealing
and we are sending raw Kerberos, not GSSAPI.

But it's a start, and if we continue to have to call Krb5 directly,
this will be the basis.

I also intend to provide an alternate implementation, using just
GSSAPI.

Andrew Bartlett

15 years agor1436: Move GENSEC across to config.mk
Andrew Bartlett [Sun, 11 Jul 2004 10:07:51 +0000 (10:07 +0000)]
r1436: Move GENSEC across to config.mk

Andrew Bartlett

15 years agor1435: talloc_steal is very useful - add a function to do it with a DATA_BLOB
Andrew Bartlett [Sun, 11 Jul 2004 06:51:58 +0000 (06:51 +0000)]
r1435: talloc_steal is very useful - add a function to do it with a DATA_BLOB

Andrew Bartlett

15 years agor1434: Merge this function in from Samba 3.0, but use a mem_ctx rather than
Andrew Bartlett [Sun, 11 Jul 2004 06:50:31 +0000 (06:50 +0000)]
r1434: Merge this function in from Samba 3.0, but use a mem_ctx rather than
an fstring.

Andrew Bartlett

15 years agor1433: Properly use GtkTreeView:
Jelmer Vernooij [Sun, 11 Jul 2004 01:42:16 +0000 (01:42 +0000)]
r1433: Properly use GtkTreeView:
 - When a key is selected the values are immediately shown in gregedit
 - Only allow deleting jobs if one is selected.

15 years agor1432: - Move the various Gtk-specific parts from the registry code into a directory...
Jelmer Vernooij [Sun, 11 Jul 2004 01:01:48 +0000 (01:01 +0000)]
r1432: - Move the various Gtk-specific parts from the registry code into a directory gtk/
- Move common "Samba-Gtk" code into gtk/common/ ("Connect to RPC pipe"-dialog, etc)
- Add a new utility 'gwcrontab' that can currently list, delete and add 'atsvc' jobs. It still displays times and dates as integers though, will fix that later.

Some screenshots available at:
 http://samba.org/~jelmer/gwcrontab/

15 years agor1429: enable spnego in smbclient too.
Stefan Metzmacher [Sat, 10 Jul 2004 10:24:58 +0000 (10:24 +0000)]
r1429: enable spnego in smbclient too.

metze

15 years agor1426: Fix some of my silly compile errors...
Andrew Bartlett [Fri, 9 Jul 2004 23:38:13 +0000 (23:38 +0000)]
r1426: Fix some of my silly compile errors...

Andrew Bartlett

15 years agor1423: Make sure to destory the mem_ctx.
Andrew Bartlett [Fri, 9 Jul 2004 13:33:10 +0000 (13:33 +0000)]
r1423: Make sure to destory the mem_ctx.

Andrew Bartlett

15 years agor1422: StrnCaseCmp now needs to be non-static.
Andrew Bartlett [Fri, 9 Jul 2004 13:08:00 +0000 (13:08 +0000)]
r1422: StrnCaseCmp now needs to be non-static.

Andrew Bartlett

15 years agor1421: fix a uninitialized var (thanks valgrind:-)
Stefan Metzmacher [Fri, 9 Jul 2004 12:29:33 +0000 (12:29 +0000)]
r1421: fix a uninitialized var (thanks valgrind:-)

add a view debug messages

metze

15 years agor1420: be more strict reject if the context has the wrong type
Stefan Metzmacher [Fri, 9 Jul 2004 12:28:38 +0000 (12:28 +0000)]
r1420: be more strict reject if the context has the wrong type

metze

15 years agor1419: spnego inside of dcerpc using alter_context/alter_context_resp
Stefan Metzmacher [Fri, 9 Jul 2004 12:26:34 +0000 (12:26 +0000)]
r1419: spnego inside of dcerpc using alter_context/alter_context_resp
instead of auth3

metze

15 years agor1418: Merge Samba 3.0's recent kerberos changes into Samba4. None of this
Andrew Bartlett [Fri, 9 Jul 2004 11:46:42 +0000 (11:46 +0000)]
r1418: Merge Samba 3.0's recent kerberos changes into Samba4.  None of this
is used yet.

Andrew Bartlett

15 years agor1409: if we have no user name don't use extended security
Stefan Metzmacher [Thu, 8 Jul 2004 18:32:53 +0000 (18:32 +0000)]
r1409: if we have no user name don't use extended security

the capabilities in the union smb_sesssetup should be used to decide
if we can use extented security

metze

15 years agor1406: I got spnego in the smb client working
Stefan Metzmacher [Thu, 8 Jul 2004 18:03:14 +0000 (18:03 +0000)]
r1406: I got spnego in the smb client working

so I set 'use spnego = True'

metze

15 years agor1403: commit volkers initial RAP torture test
Stefan Metzmacher [Thu, 8 Jul 2004 16:41:10 +0000 (16:41 +0000)]
r1403: commit volkers initial RAP torture test

we'll try to autogenerate the specific calls in future by pidl
and create a new subsystem for the rap lib

after that the server side will be added

metze

15 years agor1402: we should prompt for a password if it's not given by -U
Stefan Metzmacher [Thu, 8 Jul 2004 16:35:50 +0000 (16:35 +0000)]
r1402: we should prompt for a password if it's not given by -U

metze

15 years agor1377: add examples for config.mk sections
Stefan Metzmacher [Wed, 7 Jul 2004 13:35:15 +0000 (13:35 +0000)]
r1377: add examples for config.mk sections

so you want/need to use the new build system
just look at the top of build/smb_build/public.m4

and look at the examples in the rest of the tree

metze

15 years agor1374: Fix signed/unsigned warnings (actually found by g++) after unsigned int
Tim Potter [Wed, 7 Jul 2004 01:02:54 +0000 (01:02 +0000)]
r1374: Fix signed/unsigned warnings (actually found by g++) after unsigned int
changes in r1018.

15 years agor1372: Remove the 'default' case from the SPENGO state machine, and fix up
Andrew Bartlett [Tue, 6 Jul 2004 23:20:23 +0000 (23:20 +0000)]
r1372: Remove the 'default' case from the SPENGO state machine, and fix up
some compiler warnings that allowed us to see.

Andrew Bartlett

15 years agor1367: SPNEGO know uses gensec_subcontext_start() in all places
Stefan Metzmacher [Tue, 6 Jul 2004 18:53:12 +0000 (18:53 +0000)]
r1367: SPNEGO know uses gensec_subcontext_start() in all places

metze

15 years agor1366: handle the case where the client need to send the negTokenInit before
Stefan Metzmacher [Tue, 6 Jul 2004 18:07:00 +0000 (18:07 +0000)]
r1366: handle the case where the client need to send the negTokenInit before
getting something from the server.
(this is needed by SPNEGO in dcerpc)

metze

15 years agor1365: in SPNEGO_SERVER_TARG we should not check the spnego_negResult
Stefan Metzmacher [Tue, 6 Jul 2004 17:58:56 +0000 (17:58 +0000)]
r1365: in SPNEGO_SERVER_TARG we should not check the spnego_negResult
because the client don't send this

metze

15 years agor1364: the SPNEGO_SERVER_TARG state is different from the SPNEGO_CLIENT_TARG
Stefan Metzmacher [Tue, 6 Jul 2004 17:53:44 +0000 (17:53 +0000)]
r1364: the SPNEGO_SERVER_TARG state is different from the SPNEGO_CLIENT_TARG

the client checks but not send spnego_negResult

metze

15 years agor1363: add SPNEGO_NONE_RESULT as spnego_negResult value
Stefan Metzmacher [Tue, 6 Jul 2004 17:46:47 +0000 (17:46 +0000)]
r1363: add SPNEGO_NONE_RESULT as spnego_negResult value
this should indicate that we don't send a spnego_negResult t all over the wire

metze

15 years agor1360: - remove unused state SPNEGO_CLIENT_SEND_MECHS
Stefan Metzmacher [Tue, 6 Jul 2004 15:03:31 +0000 (15:03 +0000)]
r1360: - remove unused state SPNEGO_CLIENT_SEND_MECHS

- remove unsed gensec_user forward, it's done by the gensec layer know

metze

15 years agor1359: fix uninit var - found by valgrind
Stefan Metzmacher [Tue, 6 Jul 2004 14:42:07 +0000 (14:42 +0000)]
r1359: fix uninit var - found by valgrind

metze

15 years agor1358: Re-indent the SPENGO implementation, and work on the basis of a
Andrew Bartlett [Tue, 6 Jul 2004 03:02:33 +0000 (03:02 +0000)]
r1358: Re-indent the SPENGO implementation, and work on the basis of a
switch, rather than a series of if statements.

Also start to use the GENSEC subcontexts, and add some comments
explaining some of the 'odd' logic in parts.

I'll probably break these out into subfunctions soon.

Thanks to metze for getting me to do this :-)

Andrew Bartlett

15 years agor1357: Work on GENSEC:
Andrew Bartlett [Tue, 6 Jul 2004 02:59:05 +0000 (02:59 +0000)]
r1357: Work on GENSEC:

 - Add the concept of a 'subcontext' into gensec, so that the spengo
   code doesn't have to figure out how to make one.
   (A subcontext inherits the username, domain, password (or callback)
   from the main context).

 - Add comments to some other routines, and explain a bit about what
   the various 'start' functions are for.

Andrew Bartlett

15 years agor1356: Fix logic bugs in ntlm_auth.
Andrew Bartlett [Tue, 6 Jul 2004 02:56:26 +0000 (02:56 +0000)]
r1356: Fix logic bugs in ntlm_auth.

Andrew Bartlett

15 years agor1355: Add const (I missed this when I changed the function prototype earlier)
Andrew Bartlett [Tue, 6 Jul 2004 02:54:06 +0000 (02:54 +0000)]
r1355: Add const (I missed this when I changed the function prototype earlier)

Andrew Bartlett

15 years agor1354: Make it clear that the first gensec_update takes a NULL data_blob.
Andrew Bartlett [Tue, 6 Jul 2004 02:20:45 +0000 (02:20 +0000)]
r1354: Make it clear that the first gensec_update takes a NULL data_blob.

Andrew Bartlett

15 years agor1353: Fix compile with new ASN1 peek code.
Andrew Bartlett [Tue, 6 Jul 2004 02:18:24 +0000 (02:18 +0000)]
r1353: Fix compile with new ASN1 peek code.

Andrew Bartlett

15 years agor1352: Add a 'peek' function to our ASN1 code, so we can safely perform the
Andrew Bartlett [Tue, 6 Jul 2004 01:28:12 +0000 (01:28 +0000)]
r1352: Add a 'peek' function to our ASN1 code, so we can safely perform the
various switches without looking one byte past te end of the buffer.

15 years agor1351: add derpc spengo wrapper
Stefan Metzmacher [Tue, 6 Jul 2004 01:16:57 +0000 (01:16 +0000)]
r1351: add derpc spengo wrapper
not yet used and not working because of bugs in the gensec spnego code

metze

15 years agor1350: - init nt_status- found by valgrind
Stefan Metzmacher [Tue, 6 Jul 2004 01:03:36 +0000 (01:03 +0000)]
r1350: - init nt_status- found by valgrind

- set auth_type = DCERPC_AUTH_TYPE_SPNEGO

metze

15 years agor1349: don't segfault with empty data_blob
Stefan Metzmacher [Tue, 6 Jul 2004 01:01:39 +0000 (01:01 +0000)]
r1349: don't segfault with empty data_blob

metze

15 years agor1348: get gensec backend by OID instead of name
Stefan Metzmacher [Tue, 6 Jul 2004 00:22:27 +0000 (00:22 +0000)]
r1348: get gensec backend by OID instead of name

metze

15 years agor1347: - remove typedef
Stefan Metzmacher [Tue, 6 Jul 2004 00:15:39 +0000 (00:15 +0000)]
r1347: - remove typedef

- pass down gensec_user to the sub context

- if segfault when mechType is NULL

metze

15 years agor1346: revert my last spnego changes
Stefan Metzmacher [Tue, 6 Jul 2004 00:09:10 +0000 (00:09 +0000)]
r1346: revert my last spnego changes

metze

15 years agor1345: add extended security spnego support to the smb client
Stefan Metzmacher [Mon, 5 Jul 2004 23:28:49 +0000 (23:28 +0000)]
r1345: add extended security spnego support to the smb client
code

set lp_use_spnego = False, because I can't get it working yet
but I commit it so others can help me

metze

15 years agor1344: add gensec_start_mech_by_name()
Stefan Metzmacher [Mon, 5 Jul 2004 23:26:07 +0000 (23:26 +0000)]
r1344: add gensec_start_mech_by_name()

some gensec spnego fixes
(NULL pointer and length checks)

metze

15 years agor1343: formating
Stefan Metzmacher [Mon, 5 Jul 2004 23:23:01 +0000 (23:23 +0000)]
r1343: formating

metze

15 years agor1342: When fixing _lsa_lookupsids in samba3 I wanted to find out the number of SIDs
Volker Lendecke [Mon, 5 Jul 2004 20:33:17 +0000 (20:33 +0000)]
r1342: When fixing _lsa_lookupsids in samba3 I wanted to find out the number of SIDs
w2k3 can handle in a single request. With the samba3 client rpc libs I can do
about 21000 SIDs in a single request. test_many_LookupSIDs with 10000 SIDs
fails on the subsequent request with a NET_WRITE_FAULT. Maybe the Samba4 DCE
people want to take a look at this -- I don't see the problem.

Bug fix: SID components should be treated as unsigned when parsing

Volker

15 years agor1337: use sess->nt1. in sesssetup_nt1 :-)
Stefan Metzmacher [Mon, 5 Jul 2004 07:49:00 +0000 (07:49 +0000)]
r1337: use sess->nt1. in sesssetup_nt1 :-)

metze

15 years agor1336: check the vuid in old style sessionsetup too
Stefan Metzmacher [Mon, 5 Jul 2004 07:29:14 +0000 (07:29 +0000)]
r1336: check the vuid in old style sessionsetup too

metze

15 years agor1335: NT_STATUS_INTERNAL_DB_CORRUPTION
Stefan Metzmacher [Mon, 5 Jul 2004 07:24:14 +0000 (07:24 +0000)]
r1335: NT_STATUS_INTERNAL_DB_CORRUPTION
should cause DEBUG(0,(...));

metze

15 years agor1334: remove unused stuff
Stefan Metzmacher [Mon, 5 Jul 2004 07:15:12 +0000 (07:15 +0000)]
r1334: remove unused stuff

metze

15 years agor1323: allow '-' in IDENTIFIERS
Stefan Metzmacher [Thu, 1 Jul 2004 22:39:25 +0000 (22:39 +0000)]
r1323: allow '-' in IDENTIFIERS

accept '--' comments

implement the
<name> DEFINITIONS ::=

BEGIN
...
END

syntax

metze

15 years agor1321: find the '::=' directly by th lexer
Stefan Metzmacher [Thu, 1 Jul 2004 21:57:51 +0000 (21:57 +0000)]
r1321: find the '::=' directly by th lexer

metze

15 years agor1313: Split up OpenPrinterEx into functions to handle opening printers and print
Tim Potter [Thu, 1 Jul 2004 04:17:26 +0000 (04:17 +0000)]
r1313: Split up OpenPrinterEx into functions to handle opening printers and print
servers.

15 years agor1310: one more #line statement
Stefan Metzmacher [Wed, 30 Jun 2004 20:41:56 +0000 (20:41 +0000)]
r1310: one more #line statement

metze

15 years agor1309: use #line 1 "filename.pl"
Stefan Metzmacher [Wed, 30 Jun 2004 20:04:19 +0000 (20:04 +0000)]
r1309: use #line 1 "filename.pl"
(for better bug tracking)

when generating config.smb_build.pl

metze

15 years agor1308: move smb_panic() to lib/fault.c
Stefan Metzmacher [Wed, 30 Jun 2004 19:46:28 +0000 (19:46 +0000)]
r1308: move smb_panic() to lib/fault.c

merge the backtrace stuff from 3.0

metze

15 years agor1307: remove unused stuff from pasn1
Stefan Metzmacher [Wed, 30 Jun 2004 18:10:25 +0000 (18:10 +0000)]
r1307: remove unused stuff from pasn1

metze

15 years agor1306: commit the first steps of my ASN.1 compiler
Stefan Metzmacher [Wed, 30 Jun 2004 17:35:26 +0000 (17:35 +0000)]
r1306: commit the first steps of my ASN.1 compiler

called 'pasn1', it works like 'pidl'

and we may can autogenerate ASN.1 code out of it.
(NOTE: the complete LDAP ASN.1 definition is in the RFC 2251,
 and maybe some others too :-)

I'm not completly shure if we'll use it in future,
but I commit it so that it won't be lost...

metze

15 years agor1305: Grrr, fix my build breakage...
Andrew Bartlett [Wed, 30 Jun 2004 02:05:26 +0000 (02:05 +0000)]
r1305: Grrr, fix my build breakage...

Declare variables at the start of a block.

Andrew Bartlett

15 years agor1294: A nice, large, commit...
Andrew Bartlett [Tue, 29 Jun 2004 09:40:10 +0000 (09:40 +0000)]
r1294: A nice, large, commit...

This implements gensec for Samba's server side, and brings gensec up
to the standards of a full subsystem.

This means that use of the subsystem is by gensec_* functions, not
function pointers in structures (this is internal).  This causes
changes in all the existing gensec users.

Our RPC server no longer contains it's own generalised security
scheme, and now calls gensec directly.

Gensec has also taken over the role of auth/auth_ntlmssp.c

An important part of gensec, is the output of the 'session_info'
struct.  This is now reference counted, so that we can correctly free
it when a pipe is closed, no matter if it was inherited, or created by
per-pipe authentication.

The schannel code is reworked, to be in the same file for client and
server.

ntlm_auth is reworked to use gensec.

The major problem with this code is the way it relies on subsystem
auto-initialisation.  The primary reason for this commit now.is to
allow these problems to be looked at, and fixed.

There are problems with the new code:
- I've tested it with smbtorture, but currently don't have VMware and
  valgrind working (this I'll fix soon).
- The SPNEGO code is client-only at this point.
- We still do not do kerberos.

Andrew Bartlett

15 years agor1293: Indent
Andrew Bartlett [Tue, 29 Jun 2004 09:23:37 +0000 (09:23 +0000)]
r1293: Indent

Andrew Bartlett

15 years agor1292: Add const to the subsystem/module registration code.
Andrew Bartlett [Tue, 29 Jun 2004 09:20:18 +0000 (09:20 +0000)]
r1292: Add const to the subsystem/module registration code.

Add some 'multi init' code, until we get a better set of infrustructure.

Andrew Bartlett

15 years agor1291: rename struct smbsrv_context to smbsrv_connection
Stefan Metzmacher [Tue, 29 Jun 2004 07:40:14 +0000 (07:40 +0000)]
r1291: rename struct smbsrv_context to smbsrv_connection
because this is the connection state per transport layer (tcp)
connection

I also moved the substructs directly into smbsrv_connection,
because they don't need a struct name and we should allway pass the complete
smbsrv_connection struct into functions

metze

15 years agor1286: rename struct tcon_context to smbsrv_tcon
Stefan Metzmacher [Mon, 28 Jun 2004 11:10:24 +0000 (11:10 +0000)]
r1286: rename struct tcon_context to smbsrv_tcon

metze

15 years agor1281: move include/context.h to smb_server/smb_server.h
Stefan Metzmacher [Mon, 28 Jun 2004 08:45:27 +0000 (08:45 +0000)]
r1281: move include/context.h to smb_server/smb_server.h

metze

15 years agor1280: rename struct request_context to smbsrv_request
Stefan Metzmacher [Mon, 28 Jun 2004 08:39:00 +0000 (08:39 +0000)]
r1280: rename struct request_context to smbsrv_request

metze

15 years agor1279: rename struct tcon_context to smbsrv_tcon
Stefan Metzmacher [Mon, 28 Jun 2004 08:27:36 +0000 (08:27 +0000)]
r1279: rename struct tcon_context to smbsrv_tcon

metze

15 years agor1278: rename struct user_context to smbsrv_user
Stefan Metzmacher [Mon, 28 Jun 2004 07:54:32 +0000 (07:54 +0000)]
r1278: rename struct user_context to smbsrv_user

metze

15 years agor1277: rename struct server_context to smbsrv_ontext
Stefan Metzmacher [Mon, 28 Jun 2004 07:41:15 +0000 (07:41 +0000)]
r1277: rename struct server_context to smbsrv_ontext
because I need server_context fot the generic server infastructure

metze

15 years agor1276: Return data for enumprinters level 2 and 5.
Tim Potter [Mon, 28 Jun 2004 07:12:45 +0000 (07:12 +0000)]
r1276: Return data for enumprinters level 2 and 5.

15 years agor1275: Make spoolss_PrinterInfo2 and spoolss_PrinterInfo5 public so we can
Tim Potter [Mon, 28 Jun 2004 07:03:14 +0000 (07:03 +0000)]
r1275: Make spoolss_PrinterInfo2 and spoolss_PrinterInfo5 public so we can
use them in the enumprinters server code.

15 years agor1274: revert -r 1239 as discussed with abartlet
Stefan Metzmacher [Mon, 28 Jun 2004 06:46:27 +0000 (06:46 +0000)]
r1274: revert -r 1239 as discussed with abartlet

metze

15 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

15 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!

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