1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-01 05:47:28 +03:00

10891 Commits

Author SHA1 Message Date
Martin Pool
481b4e6d6c Doxygen janitor
(This used to be commit 9af07173152c5e861d13b33a8d4aee8167a50b66)
2003-02-28 04:21:55 +00:00
Martin Pool
f5f59e866e Doxygen janitor: fix parameter names, grammar, tag names.
(This used to be commit 42d9ec28cd55dbcfda546c84fb842938aeda544d)
2003-02-28 04:17:30 +00:00
Martin Pool
4125dfca83 Doxygen janitor: rpc_resolve_dc parameter is spelled "trust_passwd"
(This used to be commit 9dbc3dcfe0bccf1f76930ae86970b48ba5ed1e91)
2003-02-28 04:11:28 +00:00
Martin Pool
22d482dade Doxygen janitor: check_domain_match parameter is spelled
"auth_context".
(This used to be commit 571c3ce19344276aac1af56d2f69fcc5523f36eb)
2003-02-28 04:09:58 +00:00
Martin Pool
7ca743713b Fix comment typo
(This used to be commit d2fd52c1b50f2d1abad84668911b04c72fdc4b8d)
2003-02-28 04:06:56 +00:00
Martin Pool
290098e39e Remove reference to "mainpage.dox" and CodingStandards, which have
been removed.

Put subdirectory names in file list, so we get lib/util_chr.c, not
just util_chr.c.
(This used to be commit aa2efaab1ffc77bec051cd206000951c72adeccc)
2003-02-28 03:59:47 +00:00
Martin Pool
921e569ed5 Add a comment about the meaning of samba's internal character set and
how this interacts with it.
(This used to be commit eb876ee9cf24eda04e0856899b232d060c669c0c)
2003-02-28 03:51:25 +00:00
Martin Pool
37e39f5be4 Add simple test harness that exposes StrCaseCmp for testing.
(This used to be commit ab77beca041595bc3bd70de3a6e1b49159a4964b)
2003-02-28 03:34:18 +00:00
Jim McDonough
db47e9450a cleanup some compiler warnings
(This used to be commit 87cebe797f06fab4a5d0077fd78b2183ff7333a5)
2003-02-28 03:29:03 +00:00
Jim McDonough
a001b706bd Improve net ads lookup:
- More info is printed
- (grand)child domains handled properly

Thanks to Anthony Liguori (aliguori@us.ibm.com)
(This used to be commit 3dbcb4d93f7c192eb2ccea5941a3843b5de1190e)
2003-02-28 03:21:22 +00:00
Jeremy Allison
9f0ae6fad2 *Excellent* patch from Michael Steffens <michael_steffens@hp.com> to limit
the unix domain sockets used by winbindd (also solves FD_SETSIZE problem
in winbindd to boot !). Adds a "last_access" field to winbindd connections,
and will close the oldest idle connection once the number of open connections
goes over WINBINDD_MAX_SIMULTANEOUS_CLIENTS (defined in local.h as 200
currently).
Jeremy.
(This used to be commit a82caefda49396641e8650db8a7ef51752ba6c41)
2003-02-28 00:26:20 +00:00
Gerald Carter
17c417e6e6 don't forget the NULL
(This used to be commit f80610120483c929afbec83d2b8649cb3e5111b0)
2003-02-27 23:52:37 +00:00
Gerald Carter
3a7d807ec9 and the winner of "i should have just written it in assembly
is..."

don't use pstrcpy() when you are not dealing with pstrings.
(This used to be commit 7d547f50f914747291acc71fd3544ad92ce91f0e)
2003-02-27 23:24:26 +00:00
Gerald Carter
dc1cd583cb don't pass NULL pointers to strcmp()
(This used to be commit 6631984b12a3f74b93f7031c433dd81d6586a5df)
2003-02-27 21:37:54 +00:00
Gerald Carter
97e7d2ffae additional fix for CR 601
* distinguish WinXP from Win2k
  * add a 1/3 of a second delay in OpenPrinter
    in order to trigger a LAN/WAN optimization in
    2k clients.
(This used to be commit 96570699d1b715f47c35aa211da6ec18f6fc4109)
2003-02-27 21:21:02 +00:00
Martin Pool
5c82d3f00a Doxygen janitor
(This used to be commit 67bf36c69d19463c28066b276d74ac4784b26bed)
2003-02-27 05:53:25 +00:00
Jelmer Vernooij
42b4caa632 Remove documentation for obsolete parameters, but add a note in 'upgrading-to-3.0'
(This used to be commit e37b69f33410844b55bcca07e95d0a76aa48a7de)
2003-02-27 02:28:26 +00:00
Jelmer Vernooij
742dcedfa2 We now use <anchor/> instead of just <anchor> (strict XML syntax)
(This used to be commit 7c00fff475e15a9e9d5c3d2c8394a2cdc1b90cac)
2003-02-27 02:17:54 +00:00
Jelmer Vernooij
d21b15ff57 - Rename 'modules = ' to 'preload modules = '
- Add smb_probe_module()
- Add init_modules()
- Call these functions
(This used to be commit f8f21653225792c0001d183c6efe8b7d89a0785d)
2003-02-27 01:54:41 +00:00
Andrew Bartlett
d62f60f53a Fix possible memory leak on failure.
(This used to be commit 052ebc44cde8d31571ed1edb602794349825be11)
2003-02-27 01:05:12 +00:00
Jeremy Allison
f6f76ad5ed Fix to allow blocking lock notification to be done rapidly (no wait
for smb -> smb lock release). Adds new PENDING_LOCK type to lockdb
(does not interfere with existing locks).
Jeremy.
(This used to be commit 22fc0d48ff2052b4274c65f85050c58b235bf4e4)
2003-02-27 00:43:23 +00:00
Andrew Bartlett
20d0bb2310 Add -Wwrite-strings to our --enable-developer settings.
We have compiled relitivly 'clean' with this setting since I did a massive
cleanup last month.  This should help us stay that way.

Andrew Bartlett
(This used to be commit 284479bf388f5e39d9be78eeb1ac6cdd001fb8df)
2003-02-26 12:31:17 +00:00
Andrew Bartlett
ca80787248 Netlogon-unigroup changes needed for the winbind RID-to-SID conversion.
This changes the cache format, which will simply invalidate existing entries,
leaving them dead in the cache.

Andrew Bartlett
(This used to be commit 3fc179362ea849db23490b971a9f64f943e7f7f8)
2003-02-26 12:23:03 +00:00
Andrew Bartlett
cee64b5353 Kill RID-only and domain+RID madness from winbind.
Now we deal with SIDs in almost all of winbind (a couple of limited exceptions
remain, but I'm looking into them - they use non-winbind structs ATM).

This has particular benifits in returning out-of-domain SIDs for group
membership (Need to look into this a bit more) as well as general code quality.

This also removes much of the complexity from the idmap interface, which now
only deals with mapping IDs, not with SID->domain translations.

Breifly tested, but needs more.  Fixes some valgrind-found bugs from my
previous commit.

Winbind cache chagned to using SID strings in some places, as I could not
follow exactly how to save and restore multiple packed sids properly.

Andrew Bartlett
(This used to be commit 9247cf08c40f016a924d600ac906cfc6a7016777)
2003-02-26 12:21:01 +00:00
Martin Pool
f7bb698298 init_valid_table: Fix a memory leak that would lose the
dynamically-created valid table every time the configuration was
reloaded.
(This used to be commit e42b237d980461caf2dd2a8f82c17bf674facb7d)
2003-02-26 06:19:16 +00:00
Tim Potter
b906a9df75 Merge from appliance:
>Another hopeful fix for CR#1168.  Change the RPC used in querying
>domain users from QueryDispInfo to EnumDomainUsers.  Hopefully this
>will fix the random dropouts that keep occuring when listing large
>domains.
>
>My thought is that since QueryDispInfo is only used in the NT user
>manager it may have a bug with large domains.  A more commonly used
>RPC may not have such problems.
(This used to be commit 0501b7d0b12fa8063ffe6a9d4ecc3391d0c2f45d)
2003-02-26 00:52:41 +00:00
Tim Potter
f9d577ac09 Fix compiler warning.
(This used to be commit 0308f24ad209a28799b36d041be2dc2be2b2dac8)
2003-02-25 23:35:25 +00:00
Tim Potter
991f6cc3c1 More const fixes and flow on fixes from yesterday's const-fest.
(This used to be commit 018733eedd7897e6811e8461c07e3acf418c0e09)
2003-02-25 23:34:57 +00:00
Tim Potter
7d581bebd4 Fix unused variable warning when ENCTYPE_ARCFOUR_HMAC is not defined.
(This used to be commit 92abafa62894a125c5a09fc92f5056e4d8b51089)
2003-02-25 23:30:46 +00:00
Tim Potter
64e53c9b22 Fix breakage done by myself yesterday.
(This used to be commit f4492de2d668082df6ae06933d12a3cfe120d403)
2003-02-25 23:28:28 +00:00
Gerald Carter
7c7d796b6d Progress on CR 601
cache the printer_info_2 with the open printer handle.
cache is invalidated on a mod_a_printer() call **on that smbd**.

Yes, this means that the window for admins to step on each other
from different clients just got larger, but since handles a generally
short lived this is probably ok.
(This used to be commit 33c7b7522504fb15989f32add8e9a087c8d9d0fa)
2003-02-25 20:51:23 +00:00
Tim Potter
3a2f56cb63 Fixed up some const related compiler warnings.
(This used to be commit 923425e497112c5d1e2e569da6c13dcd02b6a8af)
2003-02-25 06:24:13 +00:00
Andrew Bartlett
589371e1d5 After some comments from tridge, clean the new usergroups code into a helper
function.

Andrew Bartlett
(This used to be commit 212a52b3d2ca39fcea2990f9293754b08e9b68e4)
2003-02-25 05:49:24 +00:00
Andrew Bartlett
bf095b8372 For some reason some attributes in ADS do not appear (and are not available)
in general searches, but only if searching for the DN only.

In my case, it was the tokenGroups attribute that caused me trouble, hence
this patch.

Andrew Bartlett
(This used to be commit 8a0cc4c2beb5d6ad7e44bf47bf0f9ec4a3ffdb96)
2003-02-25 03:30:39 +00:00
Andrew Bartlett
d116f2c884 tokenGroups are SIDs, so dump them as such.
(This used to be commit 43f07e9de70ad9993265e28a54239caba0121ab6)
2003-02-25 02:23:19 +00:00
Andrew Bartlett
f803c32376 Fix a really nasty bug where some users in AD domains (particularly child
domains) would not have the tokenGroups or memberOf attributes filled in.

This would cause a user to have no supplementary group membership.

Detect this by the fact that the primaryGid must be present in the tokenGroups,
and if it isn't (ie, if there is no tokenGroups at all), do a server-side
search on all groups using the 'member' attribute and the user's DN.

Andrew Bartlett
(This used to be commit a074f74e627e1d947a76bcf3a39e3c5df4d4ffe5)
2003-02-25 02:20:46 +00:00
Andrew Bartlett
c5871a1893 Whenever we have a password, use the in-memory ccache. This fixes a bug where
we were overwriting the user's ccache with the machine password (the -P option).

Andrew Bartlett
(This used to be commit 231d2f84ef36b30be98baf3b56ebf4a5cd8dad11)
2003-02-24 22:25:19 +00:00
Andrew Bartlett
79aaa35ea5 Clean up non-krb5 breakages from my modifications to luke howard's patch.
Andrew Bartlett
(This used to be commit 32fd0c49009e38022523cc5c14567dd55de08206)
2003-02-24 21:07:03 +00:00
Andrew Bartlett
05262ea49a Finish removing setenv replacements from smbwrapper.
(This used to be commit 059ac2d839bf258408490f5ceb786a47cb5acb58)
2003-02-24 11:24:27 +00:00
Andrew Bartlett
426cd68f74 Move off-by-one buggy malloc()/safe_strcpy() combination to strdup() instead.
Andrew Bartlett
(This used to be commit c26881633d8a7f6d9b9ed9c6a97ce2b45bf2b317)
2003-02-24 11:23:15 +00:00
Andrew Bartlett
0e6dbeb273 typo
(This used to be commit a47dee787413daaf0b550a47bbd78125490c356e)
2003-02-24 11:16:27 +00:00
Andrew Bartlett
eb64538dba Patch from Luke Howard to add mutual kerberos authentication, and SMB session
keys for kerberos authentication.

Andrew Bartlett
(This used to be commit 8b798f03dbbdd670ff9af4eb46f7b0845c611e0f)
2003-02-24 11:09:21 +00:00
Andrew Bartlett
2f0c70efb2 setenv takes 3 arguments...
(This used to be commit 6d18f64ef518cbb3d522cf1f92dc5cbc2e2cb642)
2003-02-24 10:35:24 +00:00
Andrew Bartlett
9c6d78c54c If it's a pstring, use pstrcpy().
(This used to be commit 34fb5f0b1a6281b3aa7782edb3fcb82cc4ec4877)
2003-02-24 09:46:01 +00:00
Andrew Bartlett
2295c0cf29 Fix off-by-one bugs, and move to strdup() rather than malloc()/strcpy().
Andrew Bartlett
(This used to be commit aa486355e282b891b299d63cc07431f32213b1b8)
2003-02-24 09:10:41 +00:00
Tim Potter
6fa6b607c9 Quieten compiler warning.
(This used to be commit eb5d1a72dc9dc35997d39f8778ee98163b8cce32)
2003-02-24 04:59:15 +00:00
Martin Pool
5b5453e6c7 Merge documentation from 3_0.
(This used to be commit 5002555a9719987ccdc887ffff64ea8d02c9881d)
2003-02-24 04:42:24 +00:00
Andrew Bartlett
12f2ebf7f0 Always initialise
(This used to be commit ff2b5b2f85f2d9dade67077cea1b68719cf65352)
2003-02-24 03:45:02 +00:00
Tim Potter
e25aa22a8f Merge:
> Exit path cleanup for cli_samr_enum_dom_users()
(This used to be commit 655c1e03519d4fa174a85534c165bdd1ce163ae8)
2003-02-24 02:12:39 +00:00
Andrew Bartlett
ded88da1ea Add const
(This used to be commit ffaa608be01d72075942ca3aff2325c6364e0556)
2003-02-24 02:11:32 +00:00