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 8594edf666
.
(This used to be commit ad462e2e2d
)
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 8e4dca3b94
)
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 a7bbd33139
)
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 91f85d0dca
)
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 e038f1cf9f
)
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 566d3b6e76
)
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 31ba955d69
)
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 8594edf666
)
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 22dbe158ed
)
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 f91a3e0f7b
)
2008-08-13 11:54:08 +02:00
Karolin Seeger
669afbc291
pdb_interface: Fix typo in debug message.
...
Karolin
(This used to be commit e04da654c0
)
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 1500401967
)
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 43eec65170
)
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 9b863a10da
)
2008-07-24 09:49:28 +02:00
Karolin Seeger
490b60b500
Use LDAP macros instead of attribute names.
...
Karolin
(This used to be commit 7dae8b04f1
)
2008-07-18 15:36:20 +02:00
Karolin Seeger
df15541926
Fix typo.
...
retieve -> retrieve
Karolin
(This used to be commit 37c6413070
)
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 cd8e63b2b4
.
(This used to be commit 061e55d4f4
)
2008-07-11 17:53:25 +02:00
Volker Lendecke
68071e94a5
Revert "Don't scream, better explain a bit in comments"
...
This reverts commit dcc39ed004
.
(This used to be commit 26ca09a357
)
2008-07-11 17:53:25 +02:00
Volker Lendecke
d803fa6e46
Revert "Remove an unused variable"
...
This reverts commit 454cb852e0
.
(This used to be commit cae8ec3199
)
2008-07-11 17:53:25 +02:00
Volker Lendecke
90f3da4720
Fix some memleaks regarding trustdom passwords
...
(This used to be commit 3d2913d599
)
2008-07-10 18:25:00 +02:00
Volker Lendecke
ad91d960d0
Fix some uninitialized variable references via ndr_print
...
(This used to be commit 26fb3fea81
)
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 347772fc39
)
2008-07-10 10:48:15 +02:00
Volker Lendecke
b611fd9550
Remove an unused variable
...
(This used to be commit 454cb852e0
)
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 dcc39ed004
)
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 cd8e63b2b4
)
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 0f52dc3f7e
)
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 a551773e34
)
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 2663c81a78
)
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 0a24c038b7
)
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 aa1b8287f4
)
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 5f197c659e
)
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 0b26bcd3be
)
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 a284c88435
)
2008-05-26 16:42:24 +02:00
Gerald W. Carter
b72fc49f44
Manually port Steven Dannenman fix for using the correct machine domain when
...
looking up trust credentials in our tdb.
commit fd0ae47046
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 69b37ae607
)
2008-05-23 15:19:58 -05:00
Tim Prouty
fb37f15600
Cleanup size_t return values in callers of convert_string_allocate
...
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 6b189dabc5
)
2008-05-20 22:40:13 +02:00
Volker Lendecke
3643aa9a63
Fix a panic in the [ug]id2sid valgrind bug fix
...
Always, always run "make test" before pushing stuff :-)
(This used to be commit 1444db8be1
)
2008-05-06 13:56:21 +02:00
Volker Lendecke
1fe90d8d04
Fix a valgrind bug in the new [ug]id2sid cache
...
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 8717085dba
)
2008-05-06 12:16:02 +02:00
Volker Lendecke
2b3d03d6f1
Remove unix_homedir from struct user_struct
...
This makes pdb_get_unix_homedir unused. I wonder if that was ever really used...
(This used to be commit 36bfd32f1f
)
2008-05-05 18:28:58 +02:00
Stefan Metzmacher
625f2d6c23
pdb_tdb: fix the upgrade code, db_traverse returns the number of records!
...
metze
(This used to be commit baaf571d54
)
2008-04-15 00:25:11 +02:00
Volker Lendecke
16198dc51e
Convert dbwrap_trans_delete to NTSTATUS
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit dead193f46
)
2008-04-01 14:04:22 +02:00
Volker Lendecke
fcdfff1cc8
Convert dbwrap_trans_store to NTSTATUS
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 5f4de856af
)
2008-04-01 14:04:22 +02:00
Stefan Metzmacher
8957f6b0cf
pdb_tdb: use != 0 instead off == -1 for dbwrap functions
...
metze
(This used to be commit d4826a0136
)
2008-04-01 14:04:20 +02:00
Stefan Metzmacher
663eb087e6
passdb: guard pdb_generate_sam_sid() with a transaction
...
This prevents possible races with some dbwrap backends
metze
(This used to be commit 9322442510
)
2008-04-01 14:04:20 +02:00
Stefan Metzmacher
a5f3911d70
passdb/secrets: add secrets_db_ctx() to get the db_context
...
metze
(This used to be commit 986bc7e8b2
)
2008-04-01 14:04:20 +02:00
Stefan Metzmacher
dbd2e3860d
pdb_tdb: use db_open_trans()
...
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 9925cc01a2
)
2008-03-27 18:14:57 +01:00
Stefan Metzmacher
7d413b8bee
pdb_tdb: use db_sam->transaction_start(db_sam) != 0 consistent
...
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit 3bf9ab640e
)
2008-03-27 18:14:57 +01:00
Stefan Metzmacher
4b2ce410a5
passdb/secrets: use db_open_trans()
...
metze
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit b61b8ca494
)
2008-03-27 18:14:57 +01:00