summaryrefslogtreecommitdiffstats
path: root/source3/passdb
Commit message (Collapse)AuthorAgeFilesLines
* Make us clean under valgrind --leak-check=full by using ↵Jeremy Allison2008-11-063-4/+4
| | | | | | | | | | talloc_autofree_context() instead of NULL. Remove the code in memcache that does a TALLOC_FREE on stored pointers. That's a disaster waiting to happen. If you're storing talloc'ed pointers, you can't know their lifecycle and they should be deleted when their parent context is deleted, so freeing them at some arbitrary point later will be a double-free. Jeremy.
* Fix bug #5825 - Account locking out doesnt work with an LDAP backend.Based ↵Jeremy Allison2008-11-061-1/+3
| | | | | | on a problem found by Boyang. Only the pdb_nds backend implements login attempts so this was broken for tdbsam and ldap. Jeremy.
* s4-lsa: merge lsa_LookupSids/{2,3} from s3 lsa idl.Günther Deschner2008-10-271-4/+4
| | | | Guenther
* Use libutil genrand.Jelmer Vernooij2008-10-231-2/+2
|
* Use standard types.Jelmer Vernooij2008-10-221-8/+8
|
* Use GUID_random.Jelmer Vernooij2008-10-141-1/+1
|
* Use common util_file code.Jelmer Vernooij2008-10-121-3/+3
|
* Store a local schannel key in secrets.tdbVolker Lendecke2008-10-061-0/+25
|
* Revert "Split lookup_name() and create a new functiong called"Simo Sorce2008-09-031-93/+78
| | | | | This reverts commit 8594edf666c29fd4ddf1780da842683dd81483b6. (This used to be commit ad462e2e2d025a7fc23e7dea32b2b442b528970b)
* Merge branch 'v3-devel' of ssh://git.samba.org/data/git/samba into v3-develSimo Sorce2008-09-031-4/+38
|\ | | | | | | (This used to be commit 8e4dca3b9416d9b5e535bda5e4befc073bfc1641)
| * Fix bug spotted by Simo - don't use legacy if expired entry.Jeremy Allison2008-08-261-4/+4
| | | | | | | | | | Jeremy. (This used to be commit a7bbd33139c5835cf32efdbe0ef187117699e3e4)
| * Don't ask winbindd if we got a -ve cache entry.Jeremy Allison2008-08-261-4/+38
| | | | | | | | | | Jeremy. (This used to be commit 91f85d0dcaa917b7a90a77852f3a778a0ad99c4d)
* | Merge branch 'v3-devel' of ssh://git.samba.org/data/git/samba into v3-develSimo Sorce2008-08-261-33/+63
|\| | | | | | | (This used to be commit e038f1cf9fb305fc1e7a4189208e451d30aaa1f0)
| * Fix the build :-(. Ask winbindd if we find a negative cache entry (or shouldJeremy Allison2008-08-261-5/+17
| | | | | | | | | | | | we just call the legacy function ?). Jeremy. (This used to be commit 566d3b6e76afeca8e862cb36202a5283b86920e4)
| * Get smbd to look (read-only) into the winbindd cache for uid/gid <--> sid ↵Jeremy Allison2008-08-261-33/+51
| | | | | | | | | | | | | | mappings. Jeremy. (This used to be commit 31ba955d6950420096b9141454aa95b2510a3d9a)
* | Split lookup_name() and create a new functiong calledSimo Sorce2008-08-171-78/+93
|/ | | | | | lookup_domain_name(). This new function accept separated strings for domain and name. (This used to be commit 8594edf666c29fd4ddf1780da842683dd81483b6)
* fixed lots of places that paniced on a failed transaction_commit,Andrew Tridgell2008-08-131-4/+5
| | | | | thinking it was a failure of a transaction cancel (This used to be commit 22dbe158ed62ae47bbcb41bba3db345294f75437)
* first cut at adding full transactions for ctdb to samba3Andrew Tridgell2008-08-132-3/+3
| | | | (This used to be commit f91a3e0f7b7737c1d0667cd961ea950e2b93e592)
* pdb_interface: Fix typo in debug message.Karolin Seeger2008-07-291-1/+1
| | | | | Karolin (This used to be commit e04da654c0db6b0fb2e2ce9754e5eba80751c14c)
* Add casts to uint32_t to match prototype for sid_append_rid().Jeremy Allison2008-07-241-4/+4
| | | | | Jeremy. (This used to be commit 15004019676a5d860f9d5fbfbecbd31fcec8bf5b)
* Use sys_getgrnam not getgrnam. Pointed out by Herb.Jeremy Allison2008-07-241-1/+1
| | | | | Jeremy. (This used to be commit 43eec6517023e7865618791c231e54cc1b800ceb)
* pdb_ldap: Raise level for debug message to avoid log file flooding.John H Terpstra2008-07-241-1/+1
| | | | (This used to be commit 9b863a10da8762f715c16f147d6cd1e79422d248)
* Use LDAP macros instead of attribute names.Karolin Seeger2008-07-181-20/+19
| | | | | Karolin (This used to be commit 7dae8b04f126d0ac86a452dcf373a690ee687ead)
* Fix typo.Karolin Seeger2008-07-141-1/+1
| | | | | | | retieve -> retrieve Karolin (This used to be commit 37c64130701ab13b6f34998ac17fec2d128c2e08)
* Revert "Make use of sid_check_is_in_unix_users/groups"Volker Lendecke2008-07-111-16/+11
| | | | | This reverts commit cd8e63b2b45402091d6d328b3c6ca593fc19ac92. (This used to be commit 061e55d4f48d269dc45fad6739e0872501b9433d)
* Revert "Don't scream, better explain a bit in comments"Volker Lendecke2008-07-111-8/+10
| | | | | This reverts commit dcc39ed00453a075b23daece2844ca4817bfbfaf. (This used to be commit 26ca09a3570a0df051d042bef586ea57ad9f198c)
* Revert "Remove an unused variable"Volker Lendecke2008-07-111-0/+1
| | | | | This reverts commit 454cb852e06fa3d8bdd0eebb3ebdb24b3d74ecd0. (This used to be commit cae8ec3199d5b0ffe0bfb6f15adaa5a12343c763)
* Fix some memleaks regarding trustdom passwordsVolker Lendecke2008-07-101-3/+15
| | | | (This used to be commit 3d2913d599a4cd773614110ec7b7493aa7adb547)
* Fix some uninitialized variable references via ndr_printVolker Lendecke2008-07-101-1/+3
| | | | (This used to be commit 26fb3fea812867f8b0dfe6a1be59e4922ed86e45)
* Give a nice error message if trying to join with a non-privileged userVolker Lendecke2008-07-101-1/+1
| | | | (This used to be commit 347772fc39d9c7a96fcc72c9707696cc6abd89d7)
* Remove an unused variableVolker Lendecke2008-07-031-1/+0
| | | | (This used to be commit 454cb852e06fa3d8bdd0eebb3ebdb24b3d74ecd0)
* Don't scream, better explain a bit in commentsVolker Lendecke2008-07-031-10/+8
| | | | (This used to be commit dcc39ed00453a075b23daece2844ca4817bfbfaf)
* Make use of sid_check_is_in_unix_users/groupsVolker Lendecke2008-07-031-11/+16
| | | | | Don't replicate code unnecessarily (This used to be commit cd8e63b2b45402091d6d328b3c6ca593fc19ac92)
* 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)
* Remove unused function is_trusted_domain_situation().Michael Adam2008-05-261-6/+0
| | | | | | | | This combined check has been replaced by is_dc_trusted_domain_situation() which does not check for lp_allow_trusted_domains(). Michael (This used to be commit 0a24c038b7bc6edef0021eb121a072cc7e8f9165)
* passdb: check for is_dc_trusted_domain_situation() in get_trust_pw_hash().Michael Adam2008-05-261-1/+1
| | | | | | | | Before fetching legacy password hash, check for trusted domain situation, but also fail if trusted domain support is not enabled. Michael (This used to be commit aa1b8287f44f47f23bd4158112d0a132df04426c)
* passdb: add comment explaining logic in get_trust_pw_clear().Michael Adam2008-05-261-2/+16
| | | | | Michael (This used to be commit 5f197c659e9c8a573ba5032c7f90c816df45770c)
* passdb: in get_trust_pw_clear() correctly fail if trusted domains not supportedMichael Adam2008-05-261-1/+5
| | | | | | | | | | (but trusted domain situation was found) This completes the fix for bugs #5425 and #5451 by Steven Dannemann, in that now no special cases are left uncovered. Michael (This used to be commit 0b26bcd3becb869319bca48bbf244c18b6e8e3dd)
* Add function is_dc_trusted_domain_situation().Michael Adam2008-05-261-3/+7
| | | | | | | | This is like is_trusted_domain_situation() except that it does not check for lp_allow_trusted_domains(). Michael (This used to be commit a284c8843528972904d142b573f1170a08c97751)
* Manually port Steven Dannenman fix for using the correct machine domain whenGerald W. Carter2008-05-231-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. (This used to be commit 69b37ae60757075a0712149c5f97f17ee22c2e41)
* Cleanup size_t return values in callers of convert_string_allocateTim Prouty2008-05-202-28/+59
| | | | | | 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)
* Fix a panic in the [ug]id2sid valgrind bug fixVolker Lendecke2008-05-061-4/+6
| | | | | Always, always run "make test" before pushing stuff :-) (This used to be commit 1444db8be1de00a3e9c805f1accd8f1f4670d729)
* 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. (This used to be commit 8717085dba832cfe6d7b807a10f779e495adc326)
* Remove unix_homedir from struct user_structVolker Lendecke2008-05-051-8/+0
| | | | | This makes pdb_get_unix_homedir unused. I wonder if that was ever really used... (This used to be commit 36bfd32f1ff878e827db91e9bf233719ecca5b01)
* pdb_tdb: fix the upgrade code, db_traverse returns the number of records!Stefan Metzmacher2008-04-151-1/+3
| | | | | metze (This used to be commit baaf571d540ace5119c528fd35bceab335bd6741)
* 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)
* pdb_tdb: use != 0 instead off == -1 for dbwrap functionsStefan Metzmacher2008-04-011-1/+1
| | | | | metze (This used to be commit d4826a01369c00b5e83cd62c2412a4eb826e216d)