Michael Adam
7590b12a99
Fix secrets_store_trusted_domain_password() after pstring removal.
...
Jeremy, this small "&" sign has given me a headache... :-)
Michael
2007-12-12 09:47:28 -08:00
Jeremy Allison
52dc5eaef2
Remove the char[1024] strings from dynconfig. Replace
...
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
2007-12-10 11:30:37 -08:00
Jeremy Allison
ec003f3936
Remove next_token - all uses must now be next_token_talloc.
...
No more temptations to use static length strings.
Jeremy.
2007-12-07 17:32:32 -08:00
Jeremy Allison
7722a7d2c6
Change tdb_unpack "P" to return a malloc'ed string rather
...
than expect a pstring space to put data into.
Fix the (few) callers.
Jeremy.
2007-12-03 14:54:06 -08:00
Jeremy Allison
6cae4b5fa1
Remove unused prototype for smbldap_get_single_pstring().
...
Don't use pstr_sprintf() on an fstring - change to talloc.
Jeremy.
2007-11-27 22:22:35 -08:00
Michael Adam
03673f2cd6
Use the proper boolean constants - the type has been
...
changed from BOOL to bool.
Michael
2007-11-27 16:36:06 +01:00
Volker Lendecke
8bcd2df841
Fix bug 5055
2007-11-26 15:28:13 +01:00
Volker Lendecke
5b4ba4bfc5
Improve debug message
...
Fix bug 5056, thanks to debian package maintainer
2007-11-26 14:36:30 +01:00
Jeremy Allison
f652fe2bdb
Remove pstrings from pam_smbpass - make local_password_change
...
return malloced strings.
Jeremy.
2007-11-21 17:42:52 -08:00
Jeremy Allison
15074de938
More pstring elimination.
...
Jeremy.
2007-11-20 17:18:16 -08:00
Jeremy Allison
00760451b6
Remove smbldap_get_single_pstring() and all pstrings
...
from pdb_ldap.c. I don't have an LDAP passdb setup here,
so I'm going to need some help on testing this.
Jeremy.
2007-11-14 16:05:42 -08:00
Stefan Metzmacher
fc98c19048
remove faked_create_user() BUILD_FARM hack as we have nss_wrapper now
...
metze
2007-11-09 09:53:02 +01:00
Volker Lendecke
5490e2d772
static pstring removal
2007-11-05 03:16:58 +01:00
Gerald (Jerry) Carter
d6cdbfd875
Patch 2 of 3 from Debian Samba packagers:
...
The point is doing the following associations:
- non discardable state data (all TDB files that may need to be backed
up) go to statedir
- shared data (codepage stuff) go to codepagedir
The patch *does not change* the default location for these
directories. So, there is no behaviour change when applying it.
The main change is for samba developers who have to think when dealing
with files that previously pertained to libdir whether they:
- go in statedir
- go in codepagedir
- stay in libdir
2007-11-01 15:53:44 -04:00
Jeremy Allison
25bbc9a661
Ensure temporary memory is freed - pointed out by "Li, Ying (ESG)" <ying.li2@hp.com>.
...
We aren't currently leaking memory, but are leaving it around for
longer than we need to.
Jeremy.
2007-10-26 17:58:28 -07:00
Jeremy Allison
f35a266b3c
RIP BOOL. Convert BOOL -> bool. I found a few interesting
...
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
2007-10-18 17:40:25 -07:00
Gerald (Jerry) Carter
5c6c8e1fe9
[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
2007-10-10 15:34:30 -05:00
Gerald Carter
611fdd95a5
r25401: BUG 4982: Don't delete lanman hashes on invalid logins when
...
using the "lanman auth = no". Tested by Guenter Kukkukk.
2007-10-10 12:31:02 -05:00
Jeremy Allison
fe30a523df
r25165: Use talloc_asprintf_append_buffer with an unmodified
...
string.
Jeremy.
2007-10-10 12:30:47 -05:00
Michael Adam
6c3c20e6c4
r25092: Add support for storing trusted domain passwords in LDAP for
...
passdb backend = ldapsam.
Along with reproducing the functionality of the secrets.tdb
code, I have prepared the handling of the previous trust password
(in case we are contacting a dc which does not yet know of a recent
password change). This information has still to be propagated
to the outside, but this requires a change of the api and also
a change of the secrets.tdb code.
Michael
2007-10-10 12:30:39 -05:00
Michael Adam
9c03cdf3a4
r25091: Start adding support for storing trusted domain passwords in LDAP
...
(for passdb backen = ldapsam). At a first step, add the hooks,
calling the secrets_ functions.
Michael
2007-10-10 12:30:39 -05:00
Michael Adam
2e99e141c3
r24991: Kill all those lots of trailing whitespaces from secrets.c.
...
These red bars in vi really hurt my eyes... :-o
Michael
2007-10-10 12:30:31 -05:00
Michael Adam
b9e76a479e
r24990: Kill an incredible amount of trailing whitespaces...
...
Further reformat get_trust_pw to conform to coding rules.
Michael
2007-10-10 12:30:31 -05:00
Andrew Tridgell
87c91e4362
r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
2007-10-10 12:28:27 -05:00
Andrew Tridgell
b0132e94fc
r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
2007-10-10 12:28:22 -05:00
Jeremy Allison
407e6e695b
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
2007-10-10 12:28:20 -05:00
Jeremy Allison
f3bb102c24
r23688: Fix bug #4759 reported by Raul <ismell@ismell.org>.
...
"N" is not a valid format entry for ber_printf, should be "n"
Jeremy.
2007-10-10 12:23:45 -05:00
Günther Deschner
e744efa1ee
r23630: Found out what LSA_LOOKUP_NAMES level 5 means:
...
only query transitive forest trusts.
Guenther
2007-10-10 12:23:38 -05:00
James Peach
171dc060e2
r23510: Tidy calls to smb_panic by removing trailing newlines. Print the
...
failed expression in SMB_ASSERT.
2007-10-10 12:23:23 -05:00
Gerald Carter
bcc8a3290a
r23244: Fix loop with nscd and NSS recusive calls.
...
> Here's the problem I hit:
>
> getgrnam("foo") -> nscd -> NSS -> winbindd ->
> winbindd_passdb.c:nam_to_sid() -> lookup_global_sam_name() ->
> getgrnam("foo") -> nscd -> ....
>
> This is in the SAMBA_3_0 specifically but in theory could happen
> SAMBA_3_0_25 (or 26) for an unknown group.
>
> The attached patch passes down enough state for the
> name_to_sid() call to be able to determine the originating
> winbindd cmd that came into the parent. So we can avoid
> making more NSS calls if the original call came in trough NSS
> so we don't deadlock ? But you should still service
> lookupname() calls which are needed for example when
> doing the token access checks for a "valid groups" from
> smb.conf.
>
> I've got this in testing now. The problem has shown up with the
> DsProvider on OS X and with nscd on SOlaris and Linux.
2007-10-10 12:22:58 -05:00
Gerald Carter
3c9fb1c6f3
r23194: cherry pick two fixes from SAMBA_3_0_26
...
* strptime() failure check
* make legcacy sid/uid/gid calls static
2007-10-10 12:22:53 -05:00
Gerald Carter
6af4c1a73c
r23192: Remove fallback to looking up group mappings by the
...
Unix name after discussion with Simo.
2007-10-10 12:22:53 -05:00
Simo Sorce
2d636ad2a3
r23051: sid_to_[ug]id fixes for smbd
2007-10-10 12:22:17 -05:00
Gerald Carter
3d48a7e72d
r23046: Few missing merges from cleaning out the Centeris winbindd tree.
...
Nothing of major interest. Will fix a few problems with one way trusts.
2007-10-10 12:22:17 -05:00
Jeremy Allison
4e1a0b2549
r23005: If we're running on a system where time_t is 8 bytes
...
we have to take care to preserve the "special" values
for Windows of 0x80000000 and 0x7FFFFFFF when casting
between time_t and uint32. Add conversion functions
(and use them).
Jeremy.
2007-10-10 12:22:13 -05:00
Gerald Carter
51aac0fcb4
r22977: Trim noise by removing redundant WARNING log message that
...
would flood at log level 2. We know when we're using the legacy
mapping code anyways since it will log an informative msg.
2007-10-10 12:22:12 -05:00
Volker Lendecke
3d3d61687e
r22844: Introduce const DATA_BLOB data_blob_null = { NULL, 0, NULL }; and
...
replace all data_blob(NULL, 0) calls.
2007-10-10 12:22:01 -05:00
Volker Lendecke
590d2164b3
r22786: Some cleanup by Karolin Seeger: Remove unused pdb_find_alias, and change
...
return values of some alias-releated pdb functions from BOOL to NTSTATUS
Thanks :-)
2007-10-10 12:21:57 -05:00
Volker Lendecke
2c5b951eba
r22767: Argl. Typed in 'svn ci' in the wrong branch. Revert.
2007-10-10 12:21:55 -05:00
Volker Lendecke
fb6ac8a5b2
r22766: Merge from 3_0:
...
r22412 | obnox | 2007-04-20 14:23:36 +0200 (Fr, 20 Apr 2007) | 5 lines
Add a "deletelocalgroup" subcommand to net sam.
Thanks to Karolin Seeger <ks@sernet.de>.
2007-10-10 12:21:55 -05:00
James Peach
bbc102172a
r22631: Remove the possibility of sid_check_is_domain and
...
sid_check_is_in_our_domain getting out of sync.
2007-10-10 12:19:51 -05:00
Volker Lendecke
d4c5d5ffb3
r22613: Fix an uninitialized variable warning
2007-10-10 12:19:50 -05:00
Jeremy Allison
8968808c3b
r22589: Make TALLOC_ARRAY consistent across all uses.
...
Jeremy.
2007-10-10 12:19:49 -05:00
Volker Lendecke
1c0ceb5fe2
r22125: Fix a warning
2007-10-10 12:19:14 -05:00
Jeremy Allison
f3ffb3f984
r22096: become_root_uid_only() is unneeded - it's only used in
...
messages.c. Refactor to use become_root() instead and
make it local to messages.c
Jeremy.
2007-10-10 12:19:11 -05:00
Gerald Carter
fc1aeee52d
r22066: Ensure that winbind can resolve SIDs in the S-1-22-{1,2}
...
domain to a uid.gid using the idmap_passdb backend.
2007-10-10 12:19:09 -05:00
Stefan Metzmacher
3a28443079
r22009: change TDB_DATA from char * to unsigned char *
...
and fix all compiler warnings in the users
metze
2007-10-10 12:19:00 -05:00
Stefan Metzmacher
fa322f0cc9
r22001: change prototype of dump_data(), so that it takes unsigned char * now,
...
which matches what samba4 has.
also fix all the callers to prevent compiler warnings
metze
2007-10-10 12:18:59 -05:00
Stefan Metzmacher
5a5579d842
r21983: make use of tdb_*_bystring() and string_term_tdb_data()
...
to avoid creating the TDB_DATA struct from strings "by hand"
metze
2007-10-10 12:18:56 -05:00
Stefan Metzmacher
9ebaa4c573
r21982: make use of tdb_*_bystring() and string_term_tdb_data()
...
to avoid creating the TDB_DATA struct from strings "by hand"
metze
2007-10-10 12:18:55 -05:00