summaryrefslogtreecommitdiffstats
path: root/source4/kdc/kdc.c
Commit message (Collapse)AuthorAgeFilesLines
* s4-kdc: Fixed the memory context of tstream_bsd_existing()Andreas Schneider2010-02-261-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:kdc remove dead code and commentsSimo Sorce2010-01-281-5/+0
|
* s4:kdc move db functions in their own fileSimo Sorce2010-01-281-0/+1
| | | | | | | | | | Keep all heimdal related plugin code within hdb_samba4.c Move interfaces needed by multiple plugins in db-glue.c Move sequence context in main db context so that we do not depend on db->hdb_dbc in the common code. Remove unnecessary paremeters from function prototypes
* s4:kdc Use better db context structureSimo Sorce2010-01-281-12/+12
| | | | | | | | This allows to use a common structure not tied to hdb_samba4 Also allows to avoid many casts within hdb_samba4 functions This is the first step to abstract samba kdc databse functions so they can be used by the MIT forthcoming plugin.
* s4:windc move windc plugin in its own fileSimo Sorce2010-01-271-0/+1
| | | | | Keep all heimdal related plugin code within wdc-samba4.c Leave only interfaces common to multiple plugins in pac-glue.c
* Fix comment/debug messagesSimo Sorce2010-01-111-4/+4
|
* s4-kdc: Migrate tcp connections to tsocket.Andreas Schneider2010-01-081-89/+188
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4:kdc: the ->process function returns "bool"Stefan Metzmacher2010-01-081-9/+9
| | | | metze
* s4:kdc: use the remote and local address from the stream_connection structStefan Metzmacher2009-12-241-41/+2
| | | | metze
* s4:cleanups More trailing spaces and tabsSimo Sorce2009-12-231-45/+45
|
* s4:kdc: setup the local and remote tsocket_address at accept timeStefan Metzmacher2009-12-191-44/+49
| | | | metze
* s4:kdc: convert UDP based communication to tdgram_contextStefan Metzmacher2009-12-191-176/+136
| | | | metze
* s4-kdc: Migrate to tsocket_address.Andreas Schneider2009-12-151-12/+57
|
* s4:kdc - Merged kdc_tcp_accept() and kpasswdd_tcp_accept().Endi S. Dewata2009-12-011-26/+6
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:kdc - Merged kdc_add_kdc_socket() and kdc_add_kpasswd_socket().Endi S. Dewata2009-12-011-75/+27
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:kdc - Disable KDC port when it's set to 0.Endi S. Dewata2009-12-011-42/+63
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4: Changes the old occurences of "lp_realm" in "lp_dnsdomain" where neededMatthias Dieter Wallnöfer2009-10-141-1/+1
| | | | | | For KERBEROS applications the realm should be upcase (function "lp_realm") but for DNS ones it should be used lowcase (function "lp_dnsdomain"). This patch implements the use of both in the right way.
* s4-server: kill main daemon if a task fails to initialiseAndrew Tridgell2009-09-181-14/+14
| | | | | | When one of our core tasks fails to initialise it can now ask for the server as a whole to die, rather than limping along in a degraded state.
* s4:kerberos Add 'net export keytab' command for wireshark decryptionAndrew Bartlett2009-07-281-9/+0
| | | | | | | | | | | | It is much easier to do decryption with wireshark when the keytab is available for every host in the domain. Running 'net export keytab <keytab name>' will export the current (as pointed to by the supplied smb.conf) local Samba4 doamin. (This uses Heimdal's 'hdb' keytab and then the existing hdb-samba4, and so has a good chance of keeping working in the long term). Andrew Bartlett
* s4:kdc Push context to hdb_samba4 by way of the 'name' of the DBAndrew Bartlett2009-07-271-5/+10
| | | | | | | | | | | This overloads the 'name' part of the keytab name to supply a context pointer, and so avoids 3 global variables! To do this, we had to stop putting the entry for kpasswd into the secrets.ldb. (I don't consider this a big loss, and any entry left there by an upgrade will be harmless). Andrew Bartlett
* s4:kdc Tidy up hdb_samba4 some moreAndrew Bartlett2009-07-271-19/+11
| | | | | | | | | This removes the last use of the prefix hdb_ldb and makes it clear that we pass in 3 global variables to get state information into hdb_samba4 when used as a keytab. (And that they belong to hdb_samba4, not to the KDC) Andrew Bartlett
* s4:heimdal: import lorikeet-heimdal-200906080040 (commit ↵Andrew Bartlett2009-06-121-2/+4
| | | | | | | | | | | 904d0124b46eed7a8ad6e5b73e892ff34b6865ba) Also including the supporting changes required to pass make test A number of heimdal functions and constants have changed since we last imported a tree (for the better, but inconvenient for us). Andrew Bartlett
* s4:kdc: use krb5_data_free()Stefan Metzmacher2009-03-261-1/+1
| | | | metze
* s4:service_stream: s/private/private_dataStefan Metzmacher2009-02-021-4/+4
| | | | metze
* s4:irpc: avoid c++ reserved word 'private'Stefan Metzmacher2009-02-011-1/+1
| | | | metze
* s4:kdc: avoid c++ reserved word 'private'Stefan Metzmacher2009-02-011-6/+7
| | | | metze
* s4:lib/tevent: rename structsStefan Metzmacher2008-12-291-3/+3
| | | | | | | | | | | | | | | | | | | | list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
* s4:kdc: pass down event_context explicitStefan Metzmacher2008-12-291-0/+2
| | | | metze
* Ensure the hdb_method structure is not on the stack.Andrew Bartlett2008-10-201-5/+5
| | | | | | | We supply this to krb5 as a plugin, so we must keep it around as long as the krb5_context. Andrew Bartlett
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* Rename hdb_ldb to hdb_samba4 and load as a plugin into the kdc.Andrew Bartlett2008-09-291-1/+16
| | | | | | | | | | This avoids one more custom patch to the Heimdal code, and provides a more standard way to produce hdb plugins in future. I've renamed from hdb_ldb to hdb_samba4 as it really is not generic ldb. Andrew Bartlett
* This torture test and skipping of the server-side check was bogus.Andrew Bartlett2008-09-221-3/+1
| | | | | | | The IDL is declared to force the MessageType to 3 on output, so we instead checked the same thing 255 times... Andrew Bartlett
* s4: allways initialize the process model before it's usedStefan Metzmacher2008-09-221-1/+1
| | | | metze
* Update copyrightAndrew Bartlett2008-09-051-1/+1
| | | | (This used to be commit edea162a0e11f03b4b6069388abbca099f097386)
* Implement NETLOGON PAC verfication on the server-sideAndrew Bartlett2008-09-031-0/+112
| | | | | | | | This is implemented by means of a message to the KDC, to avoid having to link most of the KDC into netlogon. Andrew Bartlett (This used to be commit 82fcd7941f5c54da2d994c8bd99dd8d86299a296)
* kdc: we don't need any *_locl.h header from heimdal in the kdcStefan Metzmacher2008-06-041-4/+1
| | | | | metze (This used to be commit feca16dd6d03730b4a67adf5d912ba2d5e1a3025)
* Specify event_context to ldb_wrap_connect explicitly.Jelmer Vernooij2008-04-171-1/+1
| | | | (This used to be commit b4e1ae07a284c044704322446c94351c2decff91)
* Merge lorikeet-heimdal -r 787 into Samba4 tree.Andrew Bartlett2008-03-191-3/+3
| | | | | Andrew Bartlett (This used to be commit d88b530522d3cef67c24422bd5182fb875d87ee2)
* Remove yet more uses of global_loadparm.Jelmer Vernooij2008-02-211-1/+4
| | | | (This used to be commit e01c1e87c0fe9709df7eb5b863f7ce85564174cd)
* Remove useless layer of indirection, where every service calledAndrew Bartlett2008-02-041-11/+1
| | | | | | | | task_service_init() manually. Now this is called from service.c for all services. Andrew Bartlett (This used to be commit 9c9a4731cafd0dcf6c8523a7b06759cd4f14e4db)
* Rework service init functions to pass down service name. This isAndrew Bartlett2008-02-041-1/+1
| | | | | | | | needed to change prefork behaviour based on what service is being started. Andrew Bartlett and David Disseldorp (This used to be commit 0d830580e3539c96da3aa6c72fafe6eacd7a74a0)
* r26672: Janitorial: Remove uses of global_loadparm.Jelmer Vernooij2008-01-051-3/+7
| | | | (This used to be commit 18cd08623eaad7d2cd63b82ea5275d4dfd21cf00)
* r26402: Require a talloc context in libnetif.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit a35e51871bbf1ab33fc316fa59e597b722769c50)
* r26401: Don't cache interfaces context in libnetif.Jelmer Vernooij2007-12-211-6/+11
| | | | (This used to be commit 9f975417cc66bfd4589da38bfd23731dbe0e6153)
* r26325: Remove use of global_loadparm in netif.Jelmer Vernooij2007-12-211-3/+3
| | | | (This used to be commit e452cb28594f23add7c00247ed39e8323aea78a6)
* r26313: Fix more uses of static loadparm.Jelmer Vernooij2007-12-211-2/+6
| | | | (This used to be commit 6fd0d9d3b75546d08c24c513e05b1843d5777608)
* r26274: Some syntax fixes, remove more global_loadparm instances.Jelmer Vernooij2007-12-211-1/+2
| | | | (This used to be commit 3809113d86dbd35b906356a05bb481a1e2bfe4b7)
* r26237: Add loadparm context to the server service interface.Jelmer Vernooij2007-12-211-0/+1
| | | | (This used to be commit 1386c5c92505a950c65411b8af74d703ce023f95)
* r26233: Pass loadparm context when creating krb5 contexts.Jelmer Vernooij2007-12-211-1/+1
| | | | (This used to be commit 7780bf285fdfc30f89409d0436bad0d4b6de5cd4)
* r26229: Set loadparm context as opaque pointer in ldb, remove more uses of ↵Jelmer Vernooij2007-12-211-5/+5
| | | | | | global_loadparm. (This used to be commit 37d05fdc7b0e6b3211ba6ae56b1b5da30a6a392a)