summaryrefslogtreecommitdiffstats
path: root/source/passdb
Commit message (Collapse)AuthorAgeFilesLines
* Use sys_getgrnam not getgrnam. Pointed out by Herb.Jeremy Allison2008-07-251-5/+5
| | | | | Jeremy. (cherry picked from commit 2518197d7f3833b5d85fe42b05b51d89fa69eb75)
* pdb_ldap: Raise level for debug message to avoid log file flooding.John H Terpstra2008-07-241-1/+1
| | | | | (cherry picked from commit 9b863a10da8762f715c16f147d6cd1e79422d248) (cherry picked from commit 1c3187fd250e5219197206cb7c7345ea9d649e74)
* Fix some uninitialized variable references via ndr_printVolker Lendecke2008-07-161-1/+3
| | | | (cherry picked from commit 43891c397849ccc9c64e5252b6c0350beb754087)
* Give a nice error message if trying to join with a non-privileged userVolker Lendecke2008-07-161-1/+1
| | | | (cherry picked from commit 088a6f42476782267c50f0a5ea029db0eede6cdd)
* Fix typo.Karolin Seeger2008-07-141-1/+1
| | | | | | | | retieve -> retrieve Karolin (cherry picked from commit 37c64130701ab13b6f34998ac17fec2d128c2e08) (cherry picked from commit cacd84b86d14740ebb5e285d5882063aea5cd866)
* Manually port Steven Dannenman fix for using the correct machine domain whenGerald W. Carter2008-06-091-3/+3
| | | | | | | | | | | | | looking up trust credentials in our tdb. commit fd0ae47046d37ec8297396a2733209c4d999ea91 Author: Steven Danneman <sdanneman@isilon.com> Date: Thu May 8 13:34:49 2008 -0700 Use machine account and machine password from our domain when contacting trusted domains. (cherry picked from commit 69b37ae60757075a0712149c5f97f17ee22c2e41) (cherry picked from commit 8a64988fc45aff15359caf16f28ff1712bbe6d5f)
* 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)
* Fix a panic in the [ug]id2sid valgrind bug fixVolker Lendecke2008-05-061-4/+6
| | | | | Always, always run "make test" before pushing stuff :-) (cherry picked from commit 7fa2f4f9b2a17eb5a3ba787cc90b22afbe6c3c5c)
* Fix a valgrind bug in the new [ug]id2sid cacheVolker Lendecke2008-05-061-6/+6
| | | | | | When we're given a SID, it is not always padded with zeros. Only look at the initialized parts in the SID. (cherry picked from commit 90c37a7c2cdac3de0b75f889d63f5fe1b87a48e3)
* Fix a memleak -- Coverity ID 222Volker Lendecke2008-05-051-1/+2
| | | | | (cherry picked from commit a40781bafa3a8f0c7737164bca6cf74b0a452e72) (cherry picked from commit 86cabcad74ac06d888f2a352a2bef3abea1ed85c)
* pdb_tdb: fix the upgrade code, db_traverse returns the number of records!Stefan Metzmacher2008-04-211-1/+3
| | | | | metze (cherry picked from commit baaf571d540ace5119c528fd35bceab335bd6741)
* 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)
* pdb_tdb: use != 0 instead off == -1 for dbwrap functionsStefan Metzmacher2008-04-121-1/+1
| | | | | metze (cherry picked from commit d4826a01369c00b5e83cd62c2412a4eb826e216d)
* passdb: guard pdb_generate_sam_sid() with a transactionStefan Metzmacher2008-04-121-2/+24
| | | | | | | This prevents possible races with some dbwrap backends metze (cherry picked from commit 9322442510d9c2cf16c25f5109fe81b277c44881)
* passdb/secrets: add secrets_db_ctx() to get the db_contextStefan Metzmacher2008-04-121-0/+9
| | | | | metze (cherry picked from commit 986bc7e8b260265da019b67ec751509eb589d24b)
* pdb_tdb: use db_open_trans()Stefan Metzmacher2008-04-121-1/+1
| | | | | | | metze Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 9925cc01a2a4739d6cde5991eb0d0b79ae13353b)
* pdb_tdb: use db_sam->transaction_start(db_sam) != 0 consistentStefan Metzmacher2008-04-121-1/+1
| | | | | | | metze Signed-off-by: Stefan Metzmacher <metze@samba.org> (cherry picked from commit 3bf9ab640e9a79157fcfee0b5d0cde5badc92755)
* 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)
* Coverity fixesMarc VanHeyningen2008-03-182-6/+14
| | | | (cherry picked from commit 3fc85d22590550f0539215d020e4411bf5b14363)
* Convert pdb_tdb to use dbwrapVolker Lendecke2008-03-181-318/+316
| | | | (cherry picked from commit 948ab77863b12b1b0bd1c970004b84b9bb1bb2fa)
* Fix bug 4901Volker Lendecke2008-03-181-3/+8
| | | | (cherry picked from commit 1dd8fa9a521046f1de8173ac00224706c5249665)
* 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)
* Fix crash bug in pdb_init_ldapsam().Günther Deschner2008-03-041-2/+2
| | | | | | | Karolin, this needs to be in 3-2-stable. Guenther (cherry picked from commit 0d73bde6de4391e7aec862424762473441fa0905)
* Fix some warningsVolker Lendecke2008-02-251-1/+4
| | | | warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result
* Change ldap search filter. This function is also used to search machine ↵Karolin Seeger2008-02-191-2/+2
| | | | | | accounts which may be located in a different ou. This is an extension to e71a48bb80cee85afcccacbce2884c0d600f4d72. Karolin
* Use netr_SamInfo3 in remaining places.Günther Deschner2008-02-172-2/+2
| | | | Guenther
* nsswitch: convert winbind_env_set(), winbind_on() and winbind_off() into macrosStefan Metzmacher2008-02-131-2/+2
| | | | metze
* Add get_logon_hours_from_pdb() (inspired by samba4).Günther Deschner2008-02-121-0/+23
| | | | Guenther
* Change ldap search filter. This function is also used to search machine ↵Karolin Seeger2008-02-111-1/+1
| | | | | | accounts which may be organized in a different ou. Karolin
* More paranoid checks for secrets_init() success.Günther Deschner2008-02-091-13/+35
| | | | Guenther
* Fix typo.Karolin Seeger2008-02-081-1/+1
| | | | Karolin
* Don't return true on talloc fail.Jeremy Allison2008-02-051-0/+12
| | | | Jeremy.
* Fix valgrind errorsVolker Lendecke2008-02-041-1/+17
| | | | | | | We need to keep the names around on the search. Probably a tdb_move would do it here as well, but RPC is not the fastest thing on earth anyway... Thanks to Günther for pointing that out to me!
* Remove a staticVolker Lendecke2008-02-041-4/+1
| | | | | I very much doubt that this is called enough to justify a global. If this turns out to be a hot code path, we might reconsider :-)
* Fix lookup_sids to detect unix_groups and unix_users domain sids.Michael Adam2008-01-251-0/+10
| | | | | | | This fixes panics in wbcLookupRids when 1-2-22 was passed as a domain sid. Michael
* Add a debug message: show the sid lookup_sid() was called for.Michael Adam2008-01-251-0/+2
| | | | Michael
* Add a debug message to lookup_rids() printing the domain SID.Michael Adam2008-01-251-0/+3
| | | | | | | This is to ease debugging. I sporadically get panics that are apparently due to NULL domain sid passed to lookup_rids somewhere. Michael
* Fix CID 469. new_acct can't be NULL here.Jeremy Allison2008-01-121-2/+1
| | | | Jeremy.
* Fix memleak in ldapsam_rename_sam_account() found by IBM checker.Michael Adam2008-01-091-1/+1
| | | | | | The check for out of memory was the wrong way round. Michael
* Convert add_sid_to_array() add_sid_to_array_unique() to return NTSTATUS.Michael Adam2008-01-091-7/+11
| | | | Michael
* Add secrets_shutdown().Günther Deschner2008-01-071-0/+13
| | | | Guenther