summaryrefslogtreecommitdiff
path: root/source4/param/secrets.h
Commit message (Collapse)AuthorAgeFilesLines
* Rely on /dev/urandomVolker Lendecke2015-10-131-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | This removes quite a bit of code. All reasonable systems have /dev/urandom these days. Linux, Solaris and the BSDs do. In case we find a system without /dev/urandom, we will have to go hunting in other libraries. The main reason for this is speed: On Ubuntu 14.04 doing direct reads from /dev/urandom is 2-3 times faster than our md4 based code. On virtualized FreeBSD 10 the difference is even larger. My first approach was to use fopen/fread. It was even faster, but less than twice as fast. So I thought we could save the additional complexity when having to deal with throwing away buffers when forking and the additional memory footprint per process. With this simple generate_random_buffer it will be easier to adapt new syscalls to get randomness. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Tue Oct 13 04:25:39 CEST 2015 on sn-devel-104
* s4-param: Use a unique header nameAndrew Bartlett2012-07-151-3/+3
|
* s4-param Rename secrets_init() -> randseed_init()Andrew Bartlett2011-05-031-1/+2
| | | | | | | | | This only sets up the random number generator callback these days, so use a different database for that. (All secrets data in Samba4 is in secrets.ldb) Andrew Bartlett
* s4:param/secrets.h - fix "enum netr_SchannelType" include correctlyMatthias Dieter Wallnöfer2010-11-271-1/+2
|
* s4-param Refactor secrets code to not require an event context.Andrew Bartlett2010-10-111-2/+1
| | | | | | | | A new event context is constructed by LDB when required for secrets.ldb This will be essentially unused, as LDB on TDB will only trigger 'fake' events, and blocks on transactions and lock operations anyway. Andrew Bartlett
* s4-kerberos Move 'set key into keytab' code out of credentials.Andrew Bartlett2010-09-241-0/+4
| | | | | | | | This code never really belonged in the credentials layer, and is easier done with direct access to the ldb_message that is in secrets.ldb. Andrew Bartlett
* s4-secrets: fetch secure channel type with domain SIDAndrew Tridgell2010-09-151-0/+2
| | | | | | The secure channel type is needed to work out what DC to connect to Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:param Modify secrets_get_domain_sid to give more useful errorsAndrew Bartlett2010-02-181-1/+5
| | | | | | | | | This also moves the calls to secrets_get_domain_sid back into winbind_task_init(), so that we can terminate with a much more detailed error message. (The previous message was simply NT_STATUS_CANT_ACCESS_DOMAIN_INFO). Andrew Bartlett
* s4:secrets Look for LDAP secret with a name that is indexedAndrew Bartlett2009-10-231-1/+1
| | | | This avoids a very common unindexed lookup
* 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:secrets: remove unused structureStefan Metzmacher2008-12-061-7/+0
| | | | metze
* Add a standard filter for finding the LDAP secrets.Andrew Bartlett2008-07-151-0/+1
| | | | (This used to be commit 28c784966809d634e8497e0716b30bad018467b4)
* Make up the right dependencies now that ldb depends on libeventsSimo Sorce2008-06-141-2/+3
| | | | (This used to be commit 3b8eec7ca334528cad3cdcd5e3fc5ee555d8d0e0)
* Add context pointer to secrets functions.Jelmer Vernooij2008-04-011-2/+1
| | | | (This used to be commit 873941d8a8dca8e7ace83f9af9939e4264f78c96)
* r26250: Avoid global_loadparm in a couple more places.Jelmer Vernooij2007-12-211-3/+3
| | | | (This used to be commit 2c6b755309fdf685cd0b0564272bf83038574a43)
* r26205: Pass loadparm_context to secrets_db_connect() rather than using ↵Jelmer Vernooij2007-12-211-3/+3
| | | | | | global context. (This used to be commit 5718b6cfee86ddfc9cf405c98c68ba848df4d9d7)
* r25028: Fix more warnings.Jelmer Vernooij2007-10-101-1/+14
| | | | (This used to be commit 3aa7ee4a0d8837471deeaa1c5a1f4a0d2a14aa6e)
* r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit 5c9b19271e0e3ad897499707003ce4703ffa4870)
* r23796: main COPYING file for samba4, plus some formatting varientsAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 76c6bfdeb51b5673bbabe0ca3d8bff3b74a327ee)
* r19573: Move secrets.o into param/ (subsystems haven't been integrated yet).Jelmer Vernooij2007-10-101-0/+40
(This used to be commit 8143de855c0b65346b2d8e59ecdb78952927de4a)