Jelmer Vernooij
08259c1c52
Add iconv_convenience argument to size functions.
2009-01-01 04:45:33 +01:00
Stefan Metzmacher
7516ba860c
s3:pdb_tdb: store the next rid counter in passdb.tdb instead of winbind_idmap.tdb
...
This upgrades the TDBSAM_VERSION to 4 and SAMU_BUFFER_V4.
metze
2008-12-29 21:10:49 +01:00
Stefan Metzmacher
671469ae7e
s3:passdb: add SAMU_BUFFER_V4 with no changes
...
The upgrade is required because of the followin TDBSAM_VERSION
upgrade.
metze
2008-12-29 21:10:49 +01:00
Stefan Metzmacher
0544734309
s3:passdb: make marshalling struct samu from and to a buffer more generic
...
This marshalling isn't specific to tdbsam and it's
ugly to have the related functions in two different files.
metze
2008-12-29 21:10:49 +01:00
Jeremy Allison
94df767f21
More asprintf warning fixes.
...
Jeremy.
2008-12-23 11:45:26 -08:00
Jeremy Allison
aa4abac6b7
Fix more ‘asprintf’, declared with attribute warn_unused_result.
...
Jeremy.
2008-12-23 10:42:25 -08:00
Jeremy Allison
7fd114bab7
Fix more "warning: ignoring return value of ‘asprintf’, declared with
...
attribute warn_unused_result"
Jeremy.
2008-12-23 10:27:24 -08:00
Günther Deschner
9203954428
s3-ldapsam: Fix Bug 5957: do not abort rename process on valid rename script.
...
Guenther
(cherry picked from commit 26139344fd0fac4fdd2a6752628b252fbd9b7450)
(cherry picked from commit 866efa63a26f75bbf17cd4bebf639594e2feafba)
2008-12-09 17:41:26 +01:00
Volker Lendecke
3c98d5bd98
Make memcache_add_talloc NULL out the source pointer
...
This is an orthogonality measure to make clear this pointer now belongs to the
cache.
(cherry picked from commit e6080c6e87d6fe3995b121a772bf3f6343fa666f)
2008-11-14 20:27:46 +01:00
Jeremy Allison
8962be69c7
Make us clean under valgrind --leak-check=full by using 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.
2008-11-06 20:48:13 -08:00
Jeremy Allison
0db0ce4974
Fix bug #5825 - Account locking out doesnt work with an LDAP backend.Based on a problem found by Boyang. Only the pdb_nds backend implements login attempts so this was broken for tdbsam and ldap.
...
Jeremy.
2008-11-06 06:42:04 -08:00
Günther Deschner
992c03a192
s4-lsa: merge lsa_LookupSids/{2,3} from s3 lsa idl.
...
Guenther
2008-10-27 19:33:23 +01:00
Jelmer Vernooij
81fabeff2d
Use libutil genrand.
2008-10-23 18:46:35 +02:00
Jelmer Vernooij
e16e6e9cb0
Use standard types.
2008-10-22 03:41:24 +02:00
Jelmer Vernooij
389cfee579
Use GUID_random.
2008-10-14 02:41:20 +02:00
Jelmer Vernooij
1b99d8fbb5
Use common util_file code.
2008-10-12 17:34:43 +02:00
Volker Lendecke
f3ba7fc0b9
Store a local schannel key in secrets.tdb
2008-10-06 09:54:16 +02:00
Simo Sorce
3fa16da8c7
Revert "Split lookup_name() and create a new functiong called"
...
This reverts commit 8594edf666c29fd4ddf1780da842683dd81483b6.
(This used to be commit ad462e2e2d025a7fc23e7dea32b2b442b528970b)
2008-09-03 14:36:43 -04:00
Simo Sorce
c5894e1477
Merge branch 'v3-devel' of ssh://git.samba.org/data/git/samba into v3-devel
...
(This used to be commit 8e4dca3b9416d9b5e535bda5e4befc073bfc1641)
2008-09-03 11:52:54 -04:00
Jeremy Allison
dc3f6b0861
Fix bug spotted by Simo - don't use legacy if expired entry.
...
Jeremy.
(This used to be commit a7bbd33139c5835cf32efdbe0ef187117699e3e4)
2008-08-26 18:05:34 -07:00
Jeremy Allison
d1f140a9ba
Don't ask winbindd if we got a -ve cache entry.
...
Jeremy.
(This used to be commit 91f85d0dcaa917b7a90a77852f3a778a0ad99c4d)
2008-08-26 16:14:25 -07:00
Simo Sorce
a1de4e988d
Merge branch 'v3-devel' of ssh://git.samba.org/data/git/samba into v3-devel
...
(This used to be commit e038f1cf9fb305fc1e7a4189208e451d30aaa1f0)
2008-08-26 18:56:49 -04:00
Jeremy Allison
95cc5ee395
Fix the build :-(. Ask winbindd if we find a negative cache entry (or should
...
we just call the legacy function ?).
Jeremy.
(This used to be commit 566d3b6e76afeca8e862cb36202a5283b86920e4)
2008-08-26 15:51:56 -07:00
Jeremy Allison
d2f223d83d
Get smbd to look (read-only) into the winbindd cache for uid/gid <--> sid mappings.
...
Jeremy.
(This used to be commit 31ba955d6950420096b9141454aa95b2510a3d9a)
2008-08-26 14:52:11 -07:00
Simo Sorce
5e7655fa27
Split lookup_name() and create a new functiong called
...
lookup_domain_name(). This new function accept separated
strings for domain and name.
(This used to be commit 8594edf666c29fd4ddf1780da842683dd81483b6)
2008-08-17 19:54:41 -04:00
Andrew Tridgell
fe3dd9b3e6
fixed lots of places that paniced on a failed transaction_commit,
...
thinking it was a failure of a transaction cancel
(This used to be commit 22dbe158ed62ae47bbcb41bba3db345294f75437)
2008-08-13 11:54:10 +02:00
Andrew Tridgell
0f41961e4f
first cut at adding full transactions for ctdb to samba3
...
(This used to be commit f91a3e0f7b7737c1d0667cd961ea950e2b93e592)
2008-08-13 11:54:08 +02:00
Karolin Seeger
669afbc291
pdb_interface: Fix typo in debug message.
...
Karolin
(This used to be commit e04da654c0db6b0fb2e2ce9754e5eba80751c14c)
2008-07-29 12:05:40 +02:00
Jeremy Allison
61859a18f0
Add casts to uint32_t to match prototype for sid_append_rid().
...
Jeremy.
(This used to be commit 15004019676a5d860f9d5fbfbecbd31fcec8bf5b)
2008-07-24 12:01:46 -07:00
Jeremy Allison
a4932d6657
Use sys_getgrnam not getgrnam. Pointed out by Herb.
...
Jeremy.
(This used to be commit 43eec6517023e7865618791c231e54cc1b800ceb)
2008-07-24 11:56:49 -07:00
John H Terpstra
b39237d3b3
pdb_ldap: Raise level for debug message to avoid log file flooding.
...
(This used to be commit 9b863a10da8762f715c16f147d6cd1e79422d248)
2008-07-24 09:49:28 +02:00
Karolin Seeger
490b60b500
Use LDAP macros instead of attribute names.
...
Karolin
(This used to be commit 7dae8b04f126d0ac86a452dcf373a690ee687ead)
2008-07-18 15:36:20 +02:00
Karolin Seeger
df15541926
Fix typo.
...
retieve -> retrieve
Karolin
(This used to be commit 37c64130701ab13b6f34998ac17fec2d128c2e08)
2008-07-14 16:40:36 +02:00
Volker Lendecke
e613ecbea5
Revert "Make use of sid_check_is_in_unix_users/groups"
...
This reverts commit cd8e63b2b45402091d6d328b3c6ca593fc19ac92.
(This used to be commit 061e55d4f48d269dc45fad6739e0872501b9433d)
2008-07-11 17:53:25 +02:00
Volker Lendecke
68071e94a5
Revert "Don't scream, better explain a bit in comments"
...
This reverts commit dcc39ed00453a075b23daece2844ca4817bfbfaf.
(This used to be commit 26ca09a3570a0df051d042bef586ea57ad9f198c)
2008-07-11 17:53:25 +02:00
Volker Lendecke
d803fa6e46
Revert "Remove an unused variable"
...
This reverts commit 454cb852e06fa3d8bdd0eebb3ebdb24b3d74ecd0.
(This used to be commit cae8ec3199d5b0ffe0bfb6f15adaa5a12343c763)
2008-07-11 17:53:25 +02:00
Volker Lendecke
90f3da4720
Fix some memleaks regarding trustdom passwords
...
(This used to be commit 3d2913d599a4cd773614110ec7b7493aa7adb547)
2008-07-10 18:25:00 +02:00
Volker Lendecke
ad91d960d0
Fix some uninitialized variable references via ndr_print
...
(This used to be commit 26fb3fea812867f8b0dfe6a1be59e4922ed86e45)
2008-07-10 18:24:54 +02:00
Volker Lendecke
516e381e09
Give a nice error message if trying to join with a non-privileged user
...
(This used to be commit 347772fc39d9c7a96fcc72c9707696cc6abd89d7)
2008-07-10 10:48:15 +02:00
Volker Lendecke
b611fd9550
Remove an unused variable
...
(This used to be commit 454cb852e06fa3d8bdd0eebb3ebdb24b3d74ecd0)
2008-07-03 16:44:13 +02:00
Volker Lendecke
d1635687ae
Don't scream, better explain a bit in comments
...
(This used to be commit dcc39ed00453a075b23daece2844ca4817bfbfaf)
2008-07-03 11:08:51 +02:00
Volker Lendecke
abb42b267b
Make use of sid_check_is_in_unix_users/groups
...
Don't replicate code unnecessarily
(This used to be commit cd8e63b2b45402091d6d328b3c6ca593fc19ac92)
2008-07-03 11:08:51 +02:00
Volker Lendecke
0e7d1aae2f
Fix a memleak in secrets_fetch_afs_key
...
Coverity ID 570
(This used to be commit 0f52dc3f7eae7e87b8a71bd099b99b0b3e76a387)
2008-06-07 08:51:35 +02:00
Volker Lendecke
8c98f5af6f
Fix a memleak in secrets_fetch_trust_account_password_legacy
...
Coverity ID 571
(This used to be commit a551773e34af1c118f77784a285e1b885da8655d)
2008-06-07 08:50:02 +02:00
Volker Lendecke
32452565be
Fix a memleak in fetch_ldap_pw
...
Fix Coverity ID 572, also fix the error check for secrets_fetch failing
(This used to be commit 2663c81a782fd4394a9feaaaa987c7f6d38ca5da)
2008-06-07 08:48:13 +02:00
Michael Adam
6cebad5b67
Remove unused function is_trusted_domain_situation().
...
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)
2008-05-26 16:42:25 +02:00
Michael Adam
6efce4738f
passdb: check for is_dc_trusted_domain_situation() in get_trust_pw_hash().
...
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)
2008-05-26 16:42:24 +02:00
Michael Adam
48026d814b
passdb: add comment explaining logic in get_trust_pw_clear().
...
Michael
(This used to be commit 5f197c659e9c8a573ba5032c7f90c816df45770c)
2008-05-26 16:42:24 +02:00
Michael Adam
a186e598c4
passdb: in get_trust_pw_clear() correctly fail if trusted domains not supported
...
(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)
2008-05-26 16:42:24 +02:00
Michael Adam
4de01a909a
Add function is_dc_trusted_domain_situation().
...
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)
2008-05-26 16:42:24 +02:00