1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-12 20:58:37 +03:00

921 Commits

Author SHA1 Message Date
Volker Lendecke
3b015a4cc7 r2470: Fix bug 1797: winbind and nmbd ignored "-l" option.
Thanks to Igor Zhbanov bsg@uniyar.ac.ru.

Volker
(This used to be commit 8a28475a0b7659cb0cdefe57edf801d9958c3755)
2007-10-10 10:52:44 -05:00
Jeremy Allison
1d886507be r2451: Fix from Henrik Nordstrom <hno@squid-cache.org> to allow
winbindd to return the correct number of groups when the
groups array must be enlarged.
Jeremy.
(This used to be commit bcc769de4d60205209633887f2fb2f0ab6088cae)
2007-10-10 10:52:43 -05:00
Gerald Carter
848317b004 r2450: don't limit the number of groups returned by winbindd_getgroups()
(This used to be commit 4ba98cb469ad938bbc2e46cffaa48cc1c46b8e4e)
2007-10-10 10:52:43 -05:00
Volker Lendecke
5bfd4d2007 r2440: Use sys_fork instead of fork for the dual daemon so that we get the
correct debug pid in the logfiles.

Volker
(This used to be commit 410d2c3ebba71434ad92d4572fec64eea7b952cd)
2007-10-10 10:52:43 -05:00
Volker Lendecke
82110e77da r2378: Remove two confusing #defines
(This used to be commit 639cb4ced6b6c08b0665890c815f2e1361e7879f)
2007-10-10 10:52:41 -05:00
Volker Lendecke
3a1d169864 r2351: Fix use of an uninitialized variable. valgrind is sooo useful.
Volker
(This used to be commit 11f617eafd5512dab89bc363662f8e6953c359d4)
2007-10-10 10:52:40 -05:00
Volker Lendecke
7f53bb13da r2340: Solve the problem of user sids ending up with gid's and vice versa: This
belongs into winbind itself, not into wbinfo.

Volker
(This used to be commit 75e5c13d5d4c1da9bbb60f4e93183995c05a89ac)
2007-10-10 10:52:40 -05:00
Jeremy Allison
39a9c5dcc6 r2265: Volkers change to HEAD looks very good. Commit message
from HEAD follows :
While torturing winbind a bit I found the following unfortunate behaviour:

Sending multiple requests at a high rate for a slow operation exposed that no
response comes back until the last request in the queue has been
processed. This is an unfortunate result of serially going through all sockets> that have shown to be readable or writable. All client sockets become readable> at the same time, none of them is writable. We go through them, read the
request, process the complete request. Before we enter the select system call
the next time all requests have to have completed.

This patch optimizes this by first looking at the sockets for writability. A
write on a socket that came back from select does not block, so this
additional loop might have a non-zero cost, but it can't prevent other
operations from proceeding.

After a possibly long-running winbindd_process() we directly start select()
again. To avoid starvation the currently processed client is demoted to be the> last one in the list of clients.

Jeremy.
(This used to be commit bfdeb22c69d09eb73305b6034fa6d0ec67275789)
2007-10-10 10:52:38 -05:00
Tim Potter
516753896a r2264: Fix for #1741. Define a struct nss_groupsbymem (thanks lukeh!) for
HPUX 11 which doesn't have one of its own.
(This used to be commit 3d275d1eee9644651dcbb61a342648e878fe3506)
2007-10-10 10:52:38 -05:00
Gerald Carter
0138c08516 r2177: use the correct counter when copying group rids from the user_info3 struct; patch from Dimitri van der Spek <dwspek@aboveit.nl>
(This used to be commit aa89806deb9d4c9cbd23ccdd41bb98346e395078)
2007-10-10 10:52:34 -05:00
Gerald Carter
ed5fd7117e r2086: fix bug with winbindd_getpwnam() caused by Microsoft DC's not filling in the username in the user_info3
(This used to be commit 4703a71fa88dff8bdc932f6c9af3a9d25a88938f)
2007-10-10 10:52:31 -05:00
Volker Lendecke
8e309cc7c7 r2001: Fix bug 1622. Thanks to Qiao Yang for the patch and Sven Thomsen for testing
it.

Volker
(This used to be commit 0a3413fbe378bc378aea7ffe9a6af8b65ce49f4a)
2007-10-10 10:52:27 -05:00
Günther Deschner
167299e17f r1971: move counter.
Guenther
(This used to be commit 74287178d208fd2f5b152314a3b797dcfea698a7)
2007-10-10 10:52:26 -05:00
Günther Deschner
f1fd211e80 r1967: Fix a couple of krb5-DEBUG-messages.
Guenther
(This used to be commit 86a61c86a49a7e4d67e61201458c9b0229fb0825)
2007-10-10 10:52:25 -05:00
John Terpstra
9e20bb59fb r1942: Add missing semicolon.
(This used to be commit a0b80033c997d50562f66686e79a58fc9603217d)
2007-10-10 10:52:24 -05:00
Günther Deschner
33b2bc4930 r1888: Bring the same level of "required_membership"-functionality that
ntlm_auth uses, to pam_winbindd as well.

This allows to make successfull authentication via PAM dependent on
SID-membership. At the moment, both ntlm_auth and pam_winbindd.so accept
user/group-names or sid-strings - as discussed, recursive membership
(e.g. local aliases) will be added later.

Guenther
(This used to be commit 7494569655f8d112a0c883a2748a1012bb64ad3a)
2007-10-10 10:52:23 -05:00
Günther Deschner
6fb06bbc1a r1887: Fix deadlock loop in winbind's required_membership_sid-verification.
Guenther
(This used to be commit a0a6d7d72f2a24c422db255acf6c439a9b0921df)
2007-10-10 10:52:23 -05:00
Volker Lendecke
ab8139381e r1658: Expand aliases for getusersids as well.
Volker
(This used to be commit d5060c30e38b46b322615f0e0b465fbf73ed5245)
2007-10-10 10:52:17 -05:00
Jeremy Allison
bfe33c64d9 r1613: Patch from Tom Shaw <tomisfaraway@gmail.com> to use
winbindd_fill_pwent consistently.
Jeremy.
(This used to be commit 8d355b9b9ddd6edf15c70977f5a719b549a56378)
2007-10-10 10:52:16 -05:00
Andrew Bartlett
2e6f3398d6 r1583: Patch by Fabien Chevalier <fabien.chevalier@supelec.fr>
We may not have any interfaces up at all, so initialise the return variable.

Fixes Debian bug #252591

Andrew Bartlett
(This used to be commit 35aabae9d9bf66ef2c8eb4e07a850c606d8236d2)
2007-10-10 10:52:15 -05:00
Volker Lendecke
d810ffe58e r1562: Make winbind for -S (sid->uid) and -Y (sid->gid) check whether the sid
requested actually is of type asked for. I've come across more than one
installation where a group sid had ended up as a uid in idmap and vice
versa. This just closes one possible for this misconfiguration, people
are actually using wbinfo.

Volker
(This used to be commit acfbd34025c2fde3d6a3e582c120c2b9de8ed39b)
2007-10-10 10:52:15 -05:00
Richard Sharpe
0804e231e4 r1557: Add sigchld handling to winbindd. Next step is to have the child restarted if
need be. We should also make sure the main line know we no longer have a child.
(This used to be commit e3dc7934b50c8578d70fc01688a07bd369a7cf30)
2007-10-10 10:52:14 -05:00
Volker Lendecke
a94fca7839 r1532: Remove unused structure element
(This used to be commit 128951cfe43e364970ec5760230a6450f54ae86d)
2007-10-10 10:52:14 -05:00
Andrew Bartlett
9d0783bf21 r1492: Rework our random number generation system.
On systems with /dev/urandom, this avoids a change to secrets.tdb for every fork().

For other systems, we now only re-seed after a fork, and on startup.
No need to do it per-operation.  This removes the 'need_reseed'
parameter from generate_random_buffer().

Andrew Bartlett
(This used to be commit 36741d3cf53a7bd17d361251f2bb50851cdb035f)
2007-10-10 10:52:13 -05:00
Jeremy Allison
569177a194 r1317: Patch from Joe Meadows "Joe Meadows" <jameadows@webopolis.com> to
add a timeout to the ldap open calls. New parameter, ldap timeout
added.
Jeremy.
(This used to be commit e5b3094c4cc75eb07f667dd1aeb73921ed7366ac)
2007-10-10 10:52:06 -05:00
Volker Lendecke
33c2230524 r1297: Yes, it does survive valgrind for my tests :-)
Check in the 'winbind proxy only' mode -- no new parameter required :-)

If you don't set idmap uid or idmap gid, winbind will not do idmap stuff, it
will only proxy the netlogon request and thus speed up the authentication of
domain users.

Volker
(This used to be commit 29235f0c69035376ad7ac27b08a59069fa151102)
2007-10-10 10:52:05 -05:00
Andrew Bartlett
c8f63452b8 r1127: Finding trusted domains is not so important as to require a DEBUG(1).
Andrew Bartlett
(This used to be commit 999b2501a14d1f611f6bfe1f800a852825a21526)
2007-10-10 10:51:57 -05:00
Gerald Carter
9dbf2e2419 r991: Allow winbindd to use the domain trust account password
for setting up an schannel connection.  This solves the problem
of a Samba DC running winbind, trusting a native mode AD domain,
and needing to enumerate AD users via wbinfo -u.
(This used to be commit e9f109d1b38e0b0adec9b7e9a907f90a79d297ea)
2007-10-10 10:51:53 -05:00
Volker Lendecke
4e1b26db34 r989: Calling sid_to_gid from within winbind makes no sense, as this calls
winbind_sid_to_gid. For the consistency check, local_sid_to_gid must set the
name_type it found.

Volker
(This used to be commit 5070c1b68f2add16916ba3135984f6e70bbe42cf)
2007-10-10 10:51:52 -05:00
Volker Lendecke
b24835c155 r988: When adding local aliases' gids to the user token, don't do a idmap_sid_to_gid
on the user sid. This might lead to a user SID entered as a GID in the idmap.

Volker
(This used to be commit 98e10d149710d9b70404e77a4bc0560c2e48aeaf)
2007-10-10 10:51:52 -05:00
Jeremy Allison
bafcb57f11 r914: Fix from "Jerome Borsboom" <j.borsboom@erasmusmc.nl> to ensure
correct sid type returned for builtin sids.
Jeremy.
(This used to be commit 14cf55abb8239e7c90f8891565ac7ed8c51423eb)
2007-10-10 10:51:48 -05:00
Jeremy Allison
8fd6298df0 r698: Now wb pipe is non-blocking remember to read in non-blocking mode...
Jeremy.
(This used to be commit 3399727864f3aa8981f022254dfed622fcb50c49)
2007-10-10 10:51:34 -05:00
Jeremy Allison
758e36a9bb r651: Patch from kawasa_r@itg.hitachi.co.jp to connect to winbind
pipe in non-blocking mode to prevent process hang.
Jeremy.
(This used to be commit dece22de8e0bd18ee5a152dea7f682ae04e5cba0)
2007-10-10 10:51:32 -05:00
Jeremy Allison
7d9019432f r565: Uninitialized data fixes from kawasa_r@itg.hitachi.co.jp.
Jeremy.
(This used to be commit c23a73324b335e42877551283b274f6d12f2c1a7)
2007-10-10 10:51:29 -05:00
Jeremy Allison
675ecdd5ba r539: Mem leak fixes from kawasa_r@itg.hitachi.co.jp
Jeremy.
(This used to be commit 8fe47b0bf27a8ae690ab0fcff377c8fc12919f43)
2007-10-10 10:51:28 -05:00
Jeremy Allison
835eaa42ca r538: Mem leak fix from kawasa_r@itg.hitachi.co.jp
Jeremy.
(This used to be commit 4cbcd164147d25286fe8dd460c6123e961c4f657)
2007-10-10 10:51:28 -05:00
Jeremy Allison
7b258d284f r535: Another memleak fix from kawasa_r@itg.hitachi.co.jp
Jeremy.
(This used to be commit 2d52562691d59b44546225454f6fff5b64552de8)
2007-10-10 10:51:27 -05:00
Gerald Carter
ce55cf1b82 r395: BUG 1232: patch from landonf@opendarwin.org (Landon Fuller) to fix
user/group enumeration on systems whose libc does not call setgrent()
before trying to enumerate users (i.e. FreeBSD 5.2)
(This used to be commit 8106d8097258eae260ed834399881bf0be9b515b)
2007-10-10 10:51:21 -05:00
Gerald Carter
43fb4632c6 r376: BUG 1288: resolve any machine netbios name (0x00) and not just servers (0x20)
(This used to be commit d96929b5b1d8d149ac023a30964925952587c258)
2007-10-10 10:51:20 -05:00
Gerald Carter
829f10ba51 r333: other half of fix for winbindd crask from gd@suse.de
(This used to be commit f902d52c82c31d38157d4f1c77c27ee1c395afc3)
2007-10-10 10:51:20 -05:00
Volker Lendecke
c271c86180 r319: Fix a segfault in winbind. Thanks to Guenther Deschner for his valgrind log
:-)

Volker
(This used to be commit 91296a6003417e8704114ea63511c2c9201da122)
2007-10-10 10:51:18 -05:00
Gerald Carter
f7cf0aaa6f r294: checking in volker's winbindd patches; tested on domain members (Samba and AD) as well as on a Samba DC
(This used to be commit 157d53782d6a7d0b7e30676a674ff2a25a15369c)
2007-10-10 10:51:17 -05:00
Gerald Carter
ae2e649074 r288: combination of BUG 1081 and patch from J. Klinger -- added remove_duplicate_gids() to smbd and winbindd
(This used to be commit 95c68103ea9dbd02651e26fcaa15dd054b157529)
2007-10-10 10:51:16 -05:00
Richard Sharpe
0374be5d93 r248: Add support for printing out the MAC address on nmblookup.
(This used to be commit bf9f02be5fc1d09c8c08c78c3f2df23b2099ba4f)
2007-10-10 10:51:16 -05:00
Gerald Carter
42bdc37e94 r197: mistaken merge from trunk
(This used to be commit 6b18012dc8fe92a296c46a12214622d56e1f3fd8)
2007-10-10 10:51:13 -05:00
Gerald Carter
142f5604b5 r195: adding files to ignore list
(This used to be commit 1501d58b8e23d0c9ae51514773d0429886fa9d58)
2007-10-10 10:51:13 -05:00
Andrew Bartlett
1560755556 r175: Move this comment to the right place...
Andrew Bartlett
(This used to be commit e5bbb086b2aeb826121d7fef88fcfaa49d876ea4)
2007-10-10 10:51:12 -05:00
Volker Lendecke
4e71cb7c48 r153: Fix memleak
(This used to be commit fbeff419913b01bf0e814ada6ec55d56fe90f179)
2007-10-10 10:51:11 -05:00
Volker Lendecke
63cb534a9d r139: Apply some const
(This used to be commit 3eab8ed5453f29516d8e0022bab87c271468d690)
2007-10-10 10:51:10 -05:00
Gerald Carter
7af3777ab3 r116: volker's patch for local group and group nesting
(This used to be commit b393469d9581f20e4d4c52633b952ee984cca36f)
2007-10-10 10:51:10 -05:00