summaryrefslogtreecommitdiffstats
path: root/source/passdb/secrets.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix a memleak in fetch_ldap_pwVolker Lendecke2008-06-091-1/+2
| | | | | | Fix Coverity ID 572, also fix the error check for secrets_fetch failing (cherry picked from commit 2663c81a782fd4394a9feaaaa987c7f6d38ca5da) (cherry picked from commit 56447baf3bca6cc7110420d84188291f6c785daf)
* Fix a memleak in secrets_fetch_trust_account_password_legacyVolker Lendecke2008-06-091-0/+1
| | | | | | Coverity ID 571 (cherry picked from commit a551773e34af1c118f77784a285e1b885da8655d) (cherry picked from commit 682ec284b189e12de4fff9f000b12960a69d90cb)
* Fix a memleak in secrets_fetch_afs_keyVolker Lendecke2008-06-091-0/+2
| | | | | | Coverity ID 570 (cherry picked from commit 0f52dc3f7eae7e87b8a71bd099b99b0b3e76a387) (cherry picked from commit fb708dafb052dae7733657487ac73a533750f6f9)
* Convert dbwrap_trans_delete to NTSTATUSVolker Lendecke2008-04-121-1/+4
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit dead193f46c2b19955ab3e5ac5ba343694f4858a)
* Convert dbwrap_trans_store to NTSTATUSVolker Lendecke2008-04-121-3/+6
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 5f4de856af1abe63b13059bbe1615cb5877770d0)
* passdb/secrets: add secrets_db_ctx() to get the db_contextStefan Metzmacher2008-04-121-0/+9
| | | | | metze (cherry picked from commit 986bc7e8b260265da019b67ec751509eb589d24b)
* passdb/secrets: use db_open_trans()Stefan Metzmacher2008-04-121-1/+2
| | | | | | | metze Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit b61b8ca4944f399216d8e67a48ea7d259258b432)
* passdb/secrets: it's enough to use traverse_read() in secrets_trusted_domains()Stefan Metzmacher2008-04-121-1/+1
| | | | | | | metze Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 729f7b9ff30e81537a7257daeaa1728c7ae96853)
* Convert secrets.c to use dbwrapVolker Lendecke2008-03-181-128/+93
| | | | (cherry picked from commit 9d30e5991c6fe77ef5fd505efb756554bbe77256)
* Use a separate tdb for mutexesVolker Lendecke2008-03-181-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. (cherry picked from commit f94a63cd8f94490780ad9331da229c0bcb2ca5d6)
* Convert secrets_lock_trust_account_password to tallocVolker Lendecke2008-03-181-8/+24
| | | | | This is preparing the conversion of secrets.c to ctdb (cherry picked from commit 1307f0130c47b8d740d2b7afe7a5d8d1a655e2a2)
* Make use of talloc_asprintf_strupper_m in secrets.cVolker Lendecke2008-03-181-37/+21
| | | | (cherry picked from commit 3ac4f935c074af768d0b83514f86d010c387817a)
* Avoid some pointless checksVolker Lendecke2008-03-181-12/+0
| | | | | secrets_init() makes sure that the tdb is initialized (cherry picked from commit 8725dbc8888cf7a1d3d9d1205678fcd3ca3c6350)
* Use talloc_tos() in secrets_initVolker Lendecke2008-03-181-12/+5
| | | | (cherry picked from commit 27065382d9b692b5885265c9d60ffb7ec7748c38)
* More paranoid checks for secrets_init() success.Günther Deschner2008-02-091-13/+35
| | | | Guenther
* Add secrets_shutdown().Günther Deschner2008-01-071-0/+13
| | | | Guenther
* Add and use some keystr functions using talloc_tos() in secrets api.Günther Deschner2007-12-191-44/+123
| | | | Guenther
* Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke2007-12-151-1/+1
|
* 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
* 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
* 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
* 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
* 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.
* More pstring elimination.Jeremy Allison2007-11-201-18/+76
| | | | Jeremy.
* static pstring removalVolker Lendecke2007-11-051-5/+9
|
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-29/+29
| | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy.
* [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.samba-misc-tags/initial-v3-2-testGerald (Jerry) Carter2007-10-101-51/+36
|
* r24991: Kill all those lots of trailing whitespaces from secrets.c.Michael Adam2007-10-101-72/+72
| | | | | | These red bars in vi really hurt my eyes... :-o Michael
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
|
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | Jeremy.
* r22125: Fix a warningVolker Lendecke2007-10-101-1/+1
|
* r22009: change TDB_DATA from char * to unsigned char *Stefan Metzmacher2007-10-101-13/+13
| | | | | | and fix all compiler warnings in the users metze
* r21981: as we use tdb_trans_store(), we should also use tdb_trans_delete()Stefan Metzmacher2007-10-101-1/+1
| | | | metze
* r21831: Back out r21823 for a while, this is going into a bzr tree first.Volker Lendecke2007-10-101-20/+1
| | | | Volker
* r21823: Let secrets_store_machine_password() also store the account name. ↵Volker Lendecke2007-10-101-1/+20
| | | | | | | | | Not used yet, the next step will be a secrets_fetch_machine_account() function that also pulls the account name to be used in the appropriate places. Volker
* r21819: Wrap all steps in secrets_store_machine_password into one singleVolker Lendecke2007-10-101-12/+50
| | | | | | transaction. Succeed all or store nothing. Volker
* r21818: Remove some unused codeVolker Lendecke2007-10-101-23/+0
|
* r20824: Send access to the trusted domain passwords through the pdb backend, ↵Volker Lendecke2007-10-101-41/+0
| | | | | | | | | | so that in the next step we can store them in LDAP to be replicated across DCs. Thanks to Michael Adam <ma@sernet.de> Volker
* r20644: Make some functions static, thanks to Michael Adam <ma@sernet.de> ↵Volker Lendecke2007-10-101-3/+3
| | | | for the hint.
* r20116: Start merging in the work done to create the new idmap subsystem.Simo Sorce2007-10-101-0/+42
| | | | Simo.
* r18654: Rename "struct uuid" => "struct GUID" for consistency.Jelmer Vernooij2007-10-101-8/+8
|
* r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison2007-10-101-21/+172
| | | | | | | to do the upper layer directories but this is what everyone is waiting for.... Jeremy.
* r16197: Fix Klocwork id 1338Volker Lendecke2007-10-101-2/+3
|
* r16076: Fix for machine password timeout overflow from Shlomi YaakobovichJeremy Allison2007-10-101-1/+1
| | | | | <Shlomi@exanet.com>. Jeremy.
* r15888: Fix bug #3804 from jason@ncac.gwu.eduJeremy Allison2007-10-101-2/+2
| | | | | Invalid comparisons. Jeremy.
* r15101: Little step towards getting Samba4 tdb into 3: tdb_lock_bystring ↵Volker Lendecke2007-10-101-2/+2
| | | | | | | | | does not have the timeout argument in Samba4. Add a new routine tdb_lock_bystring_with_timeout. Volker
* r14103: Fix a memleak found by valgrind (!!)Volker Lendecke2007-10-101-0/+1
|
* r14102: Fix Coverity bug # 70Volker Lendecke2007-10-101-0/+4
|
* r14088: Fix Coverity bug #20. Don't deref possible null.Jeremy Allison2007-10-101-6/+9
| | | | Jeremy.
* r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()Gerald Carter2007-10-101-11/+11
| | | | macro which sets the freed pointer to NULL.