summaryrefslogtreecommitdiffstats
path: root/source3/passdb/secrets.c
Commit message (Collapse)AuthorAgeFilesLines
* libcli/security Provide a common, top level libcli/security/security.hAndrew Bartlett2010-10-121-0/+1
| | | | | | | | | | | | | | This will reduce the noise from merges of the rest of the libcli/security code, without this commit changing what code is actually used. This includes (along with other security headers) dom_sid.h and security_token.h Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
* s3-build: use dbwrap.h only where needed.Günther Deschner2010-08-261-0/+1
| | | | Guenther
* s3-secrets: only include secrets.h when needed.Günther Deschner2010-08-051-0/+1
| | | | Guenther
* s3:dom_sid Global replace of DOM_SID with struct dom_sidAndrew Bartlett2010-05-211-2/+2
| | | | | | | | | | This matches the structure that new code is being written to, and removes one more of the old-style named structures, and the need to know that is is just an alias for struct dom_sid. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3:split secrets.c to put machine account secrets in a new fileAndrew Bartlett2010-05-181-366/+0
| | | | | | | | | | | | | This helps the s3compat effort by allowing these functions to be replaced by functions that query the cli_credentials and secrets.ldb APIs. Also, this changes a couple of DOM_SID to struct dom_sid along the way. Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org>
* s3: Remove use of iconv_convenience.Jelmer Vernooij2010-05-181-3/+3
|
* s3-passdb: Fix typo in debug message.Karolin Seeger2010-03-101-1/+1
| | | | Karolin
* s3-secrets: use autogenerated code for TRUSTED_DOM_PASS struct parsing from ↵Günther Deschner2009-10-291-220/+36
| | | | | | a tdb. Guenther
* s3-passdb: move open_schannel_session_store() to passdb/secrets_schannel.c.Günther Deschner2009-10-281-63/+0
| | | | Guenther
* s3-passdb: add secrets_delete_generic().Günther Deschner2009-10-281-0/+16
| | | | Guenther
* Fix valgrind memory leak in bug #6814 - Fixes for problems reported by valgrindJeremy Allison2009-10-151-0/+1
| | | | Jeremy.
* s3: use enum netr_SchannelType all over the place.Günther Deschner2009-10-131-5/+6
| | | | Guenther
* s3:secrets_schannel: revert to using version 1Stefan Metzmacher2009-09-211-3/+9
| | | | | | | | | | | | | It doesn't really matter if the entries have invalid context in it. Older versions of samba refuse to open the file if the version doesn't match. If we can't parse individual records, we'll fail schannel binds, but the clients are supposed to reestablish the netlogon secure channel by doing ServerReqChallenge/ServerAuthenticate* again. This will just overwrite the old record. metze
* s3-schannel: remove remaining code that was using "struct dcinfo".Günther Deschner2009-08-271-167/+0
| | | | Guenther
* s3-schannel: upgrade old format schannel_store.tdb.Günther Deschner2009-08-271-4/+9
| | | | Guenther
* s3-schannel: add simple wrappers to fetch and store schannel auth info.Günther Deschner2009-08-271-0/+1
| | | | Guenther
* s3-schannel: make open_schannel_session_store() public.Günther Deschner2009-08-271-1/+1
| | | | Guenther
* s3:secrets: use transaction wrapped store in get rand seed.Michael Adam2009-07-291-2/+2
| | | | | | Now secrets.tdb is only writen with transactions. Michael
* Rework Samba3 to use new libcli/auth code (partial)Andrew Bartlett2009-04-141-1/+1
| | | | | | | | | | | This commit is mostly to cope with the removal of SamOemHash (replaced by arcfour_crypt()) and other collisions (such as changed function arguments compared to Samba3). We still provide creds_hash3 until Samba3 uses the credentials code in netlogon server Andrew Bartlett
* Convert Samba3 to use the common lib/util/charset APIAndrew Bartlett2009-04-141-4/+4
| | | | | | | | | | | | This removes calls to push_*_allocate() and pull_*_allocate(), as well as convert_string_allocate, as they are not in the common API To allow transition to a common charcnv in future, provide Samba4-like strupper functions in source3/lib/charcnv.c (the actual implementation remains distinct, but the API is now shared) Andrew Bartlett
* Use libutil genrand.Jelmer Vernooij2008-10-231-2/+2
|
* Use GUID_random.Jelmer Vernooij2008-10-141-1/+1
|
* Store a local schannel key in secrets.tdbVolker Lendecke2008-10-061-0/+25
|
* first cut at adding full transactions for ctdb to samba3Andrew Tridgell2008-08-131-2/+2
| | | | (This used to be commit f91a3e0f7b7737c1d0667cd961ea950e2b93e592)
* Fix a memleak in secrets_fetch_afs_keyVolker Lendecke2008-06-071-0/+2
| | | | | Coverity ID 570 (This used to be commit 0f52dc3f7eae7e87b8a71bd099b99b0b3e76a387)
* Fix a memleak in secrets_fetch_trust_account_password_legacyVolker Lendecke2008-06-071-0/+1
| | | | | Coverity ID 571 (This used to be commit a551773e34af1c118f77784a285e1b885da8655d)
* Fix a memleak in fetch_ldap_pwVolker Lendecke2008-06-071-1/+2
| | | | | Fix Coverity ID 572, also fix the error check for secrets_fetch failing (This used to be commit 2663c81a782fd4394a9feaaaa987c7f6d38ca5da)
* Cleanup size_t return values in callers of convert_string_allocateTim Prouty2008-05-201-4/+5
| | | | | | This patch is the second iteration of an inside-out conversion to cleanup functions in charcnv.c returning size_t == -1 to indicate failure. (This used to be commit 6b189dabc562d86dcaa685419d0cb6ea276f100d)
* Convert dbwrap_trans_delete to NTSTATUSVolker Lendecke2008-04-011-1/+4
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit dead193f46c2b19955ab3e5ac5ba343694f4858a)
* Convert dbwrap_trans_store to NTSTATUSVolker Lendecke2008-04-011-3/+6
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit 5f4de856af1abe63b13059bbe1615cb5877770d0)
* passdb/secrets: add secrets_db_ctx() to get the db_contextStefan Metzmacher2008-04-011-0/+9
| | | | | metze (This used to be commit 986bc7e8b260265da019b67ec751509eb589d24b)
* passdb/secrets: use db_open_trans()Stefan Metzmacher2008-03-271-1/+2
| | | | | | | metze Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit b61b8ca4944f399216d8e67a48ea7d259258b432)
* passdb/secrets: it's enough to use traverse_read() in secrets_trusted_domains()Stefan Metzmacher2008-03-271-1/+1
| | | | | | | metze Signed-off-by: Stefan Metzmacher <metze@samba.org> (This used to be commit 729f7b9ff30e81537a7257daeaa1728c7ae96853)
* Convert secrets.c to use dbwrapVolker Lendecke2008-03-111-128/+93
| | | | (This used to be commit 9d30e5991c6fe77ef5fd505efb756554bbe77256)
* Use a separate tdb for mutexesVolker Lendecke2008-03-101-31/+0
| | | | | | | | Another preparation to convert secrets.c to dbwrap: The dbwrap API does not provide a sane tdb_lock_with_timeout abstraction. In the clustered case the DC mutex is needed per-node anyway, so it is perfectly fine to use a local mutex only. (This used to be commit f94a63cd8f94490780ad9331da229c0bcb2ca5d6)
* Convert secrets_lock_trust_account_password to tallocVolker Lendecke2008-03-101-8/+24
| | | | | This is preparing the conversion of secrets.c to ctdb (This used to be commit 1307f0130c47b8d740d2b7afe7a5d8d1a655e2a2)
* Make use of talloc_asprintf_strupper_m in secrets.cVolker Lendecke2008-03-101-37/+21
| | | | (This used to be commit 3ac4f935c074af768d0b83514f86d010c387817a)
* Avoid some pointless checksVolker Lendecke2008-03-101-12/+0
| | | | | secrets_init() makes sure that the tdb is initialized (This used to be commit 8725dbc8888cf7a1d3d9d1205678fcd3ca3c6350)
* Use talloc_tos() in secrets_initVolker Lendecke2008-03-101-12/+5
| | | | (This used to be commit 27065382d9b692b5885265c9d60ffb7ec7748c38)
* More paranoid checks for secrets_init() success.Günther Deschner2008-02-091-13/+35
| | | | | Guenther (This used to be commit 5e60852bae61be72dee9d5b93c59ac900aba73ae)
* Add secrets_shutdown().Günther Deschner2008-01-071-0/+13
| | | | | Guenther (This used to be commit dd3fbd93b6e5fe8b5e3a3727a64a38d5ae46fcbf)
* Add and use some keystr functions using talloc_tos() in secrets api.Günther Deschner2007-12-191-44/+123
| | | | | Guenther (This used to be commit 6ccbf67a0c6f117978df55d4e2565d34fddf9317)
* Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke2007-12-151-1/+1
| | | | (This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
* Refactor the lagacy part of secrets_fetch_trust_account_password() outMichael Adam2007-12-131-13/+31
| | | | | | | | | into a new function secrets_fetch_trust_account_password_legacy() that does only try to obtain the hashed version of the machine password directly from secrets.tdb. Michael (This used to be commit 91da12b751b3168dc40049f3e90c10d840393efc)
* Remove two unneeded functions.Michael Adam2007-12-131-23/+0
| | | | | | | | | | secrets_store_trust_account_password() and trust_password_delete() are the write access functions to the SECRETS/$MACHINE.ACC/domain keys in secrets.tdb, the md4 hashed machine passwords. These are not used any more: Current code always writes the clear text password. Michael (This used to be commit 4788fe392427901f6b1c505e3a743136ac8a91ca)
* Fix logic and prevent segfaults in secrets trustdom tdb pack code.Michael Adam2007-12-121-14/+14
| | | | | | | | | New size calculation logic in tdb_trusted_dom_pass_pack() and tdb_sid_pack() used accumulated sizes as successive offsets to buffer pointer. Michael (This used to be commit 9c24713b402978e74dc8691be5cab71d8666eb41)
* Fix secrets_store_trusted_domain_password() after pstring removal.Michael Adam2007-12-121-1/+1
| | | | | | | Jeremy, this small "&" sign has given me a headache... :-) Michael (This used to be commit 7590b12a994cc3c5f299ce7f3299c76adad1c599)
* Change tdb_unpack "P" to return a malloc'ed string ratherJeremy Allison2007-12-031-1/+6
| | | | | | | than expect a pstring space to put data into. Fix the (few) callers. Jeremy. (This used to be commit 7722a7d2c63f84b8105aa775b39f0ceedd4ed513)
* More pstring elimination.Jeremy Allison2007-11-201-18/+76
| | | | | Jeremy. (This used to be commit 15074de938539e7a9c527d9a6d81792adc2ac3d0)
* static pstring removalVolker Lendecke2007-11-051-5/+9
| | | | (This used to be commit 5490e2d77233f594a42cb32eda8215014db544e3)