1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

282 Commits

Author SHA1 Message Date
Jeremy Allison
1484b7f3b5 From Jim McDonough
In reloading the smb.conf, if a "log file" is specified in smb.conf,
winbind children will overwrite the logfile name to be the same as the
parent.

Jeremy.
(This used to be commit 62d319cc1a2ef891866b2ddbd22f3ed0944356af)
2008-07-17 20:10:18 -07:00
Simo Sorce
9669411d1e Fix regression introduced with 4086ef15b395f1a536fb669af2103a33ecc14de4
We must not return an error here just because we are offline.
We must instead fix the mappings to the best of our knowledge
(ie mark as mapped, expired ones, and as unmapped, unknown ones)
(This used to be commit 4436272dd4d6cdd223b1dc3d217a97cbe3bc887b)
2008-07-12 21:42:23 -04:00
Simo Sorce
8812606c43 Remove one nested level by reversing if condition
(This used to be commit 657a2f20dd4d422d45d7e054f463641cdff16816)
2008-07-12 21:41:55 -04:00
Simo Sorce
eda1a267e1 Add back mem leak fixes
(This used to be commit 2adea093c5709e128bdde1e37c6a897db7cbc3b1)
2008-07-12 21:40:33 -04:00
Simo Sorce
02e592486f Make again idmap_init static
(This used to be commit e113b7c13f2457676fdec9e52f09046286e25b60)
2008-07-12 21:40:28 -04:00
Volker Lendecke
343c7ff3d2 Revert "Fix two memory leaks in an error path in idmap.c"
This reverts commit 7cec389e19323e99b6b6258e539be9d1fd65810f.
(This used to be commit d0b34cbb4eba2b6543402af2c9f95407546cefad)
2008-07-11 17:53:26 +02:00
Volker Lendecke
622d36aa41 Revert "Make idmap_init() static"
This reverts commit c8d1bbfddce41cd6bf37dd0a622ef3437a24b492.
(This used to be commit 5cded3da00c0af40a98d86011507553f97fe6a22)
2008-07-11 17:53:26 +02:00
Volker Lendecke
025689ad18 Revert "Fix typo"
This reverts commit fe58926283b51910d8587e32bb11aa681b9a27d3.
(This used to be commit fe216bff1d7d805403cbfb3eaf381c2a57a254d7)
2008-07-11 17:53:26 +02:00
Volker Lendecke
b76fb9ac73 Revert "Fix a debug msg, this was probably a leftover from gencache"
This reverts commit daa171552dc00d9602a05ba199c9a3ff24c802f5.
(This used to be commit b826420c3adfd24a01080d25f8a61d33d05722c8)
2008-07-11 17:53:26 +02:00
Volker Lendecke
a25278a522 Revert "Fix indentation"
This reverts commit 954556b527aa652f9a46f0d48834e92befb3c5f9.
(This used to be commit 1b1124bcb9043deb495897467e4cd3ae8a07784b)
2008-07-11 17:53:26 +02:00
Volker Lendecke
be187b787f Revert "Fix nonempty whitespace only lines"
This reverts commit 0da9d0d0f9662d8bd2f370f764d5a875e11b3068.
(This used to be commit b2f7bd6a05afcbba076f78d0caeaf154854db7de)
2008-07-11 17:53:25 +02:00
Volker Lendecke
979496d5c1 Revert "fix typos"
This reverts commit e0957c6f4b1e81c27fda1de7fb7cbc9c585f5ac9.
(This used to be commit 0d2fc3c394d300d906cdcd14f1abf8e6f84beff7)
2008-07-11 17:53:25 +02:00
Volker Lendecke
0439d4ba61 Revert "Fix nonempty whitespace only lines"
This reverts commit cc77db2acbc35cea58576f1e28c7a760a5e31609.
(This used to be commit ed5b516c2027d78011cdaa7cbbc01bb01e766381)
2008-07-11 17:53:25 +02:00
Volker Lendecke
f7ee7d2fe9 Revert "Tiny logic simplification: Remove an unnecessary else branch"
This reverts commit 6009ae329375b1c40e3d00df977ddccc8b5cc176.
(This used to be commit b71ce00796efdd27b593bbbc36f5cbba23fe9240)
2008-07-11 17:53:25 +02:00
Volker Lendecke
0948a5cda8 Revert "Fix typo"
This reverts commit fe79c8a5b726754703626ca0bff57074274c98c7.
(This used to be commit 62835f8d7e824a5d469ec5f79e4db739e6602f4f)
2008-07-11 17:53:25 +02:00
Volker Lendecke
f70c8ecde2 Revert "Fix indentation"
This reverts commit c4e6de9e34e1ff76552ce6d4e72b343fb5f33306.
(This used to be commit fa9b128e93cca45b9516917f73f586197e7637f3)
2008-07-11 17:53:25 +02:00
Volker Lendecke
d1edba537f Revert "Simplify idmap_cache_build_[s]idkey a bit"
This reverts commit 80932c0266ef73b8d0462c078a053444fff47f32.
(This used to be commit 847609a148b653b9e3a24b2bc9e1636c6ef0db84)
2008-07-11 17:53:24 +02:00
Volker Lendecke
ebb9437f4f Revert "Simplify idmap_cache_set() a bit"
This reverts commit 55b976ba93462c6885e8d89edd13c32fb5529944.
(This used to be commit 23edc4ec0ab1de60a864de01c0ff90ea1378231d)
2008-07-11 17:53:24 +02:00
Volker Lendecke
50a84acc40 Revert "IDMAP_READ_CACHE_DATA_FMT_TEMPLATE is unused, remove it"
This reverts commit 2396d5d5d2f453f097f8ce77b640ad7e1d7e7c4c.
(This used to be commit 447d77949f99fdc5fc2bea6ddc27176d3a0871a9)
2008-07-11 17:53:24 +02:00
Volker Lendecke
b6dcc24987 Revert "Convert idmap_cache to gencache"
This reverts commit 0bf0434f22b0ea46fda3ccc4dd612adbc88dd4f2.
(This used to be commit cc536677735ecc318cbd2176ce53b124f44d85a0)
2008-07-11 17:53:24 +02:00
Volker Lendecke
ebb2d70a60 Revert "Make use of ADD_TO_ARRAY"
This reverts commit 81f334bd6da601a040f754c46705cfa2fd4f8c45.
(This used to be commit d4d106776af3f475d46a4dd78794b7b48a3572af)
2008-07-11 17:53:24 +02:00
Volker Lendecke
6c3c068716 Revert "Tiny logic simplification -- remove an else branch"
This reverts commit 01c8c7bbf6163d5c7733db0d8ecbccfe7e4fec7d.
(This used to be commit b0fe0c7ac18d4f47ad4a218114de7bab7a3f19de)
2008-07-11 17:53:24 +02:00
Jeremy Allison
06b3a79d1f Allow authentication and memory credential refresh after password change from gdm/xdm. Patch from boyang <boyang@novell.com>.
Jeremy.
(This used to be commit 8cfc6afc7b4a6af9aea5f5a7cb5af7e3218c2d75)
2008-07-07 11:26:16 -07:00
Simo Sorce
4be7a83a2c Clean up winbindd_group.c too
(This used to be commit 50a347f5503ebed0fcc7b9de60f8368677585bb1)
2008-07-06 12:55:07 -04:00
Simo Sorce
fae6a4e79b Clean up the rest of the file too
(This used to be commit f6c92c4759096f839e3854a1e9eea56e6eecad4d)
2008-07-06 12:27:34 -04:00
Simo Sorce
632e42e165 More clean up, indentation and trailing space removal
(This used to be commit d17d401603c1c26a5fd5eca5ece245790445e6d4)
2008-07-06 12:17:22 -04:00
Simo Sorce
d0a71a00bb Make code more readable, fix indentation and traling spaces.
(This used to be commit e19e12d5cbba28ccf682eaf0ff26909bd7e8e6c6)
2008-07-06 12:03:35 -04:00
Volker Lendecke
4dbfa7a211 Tiny logic simplification -- remove an else branch
(This used to be commit 01c8c7bbf6163d5c7733db0d8ecbccfe7e4fec7d)
2008-07-05 12:19:13 +02:00
Volker Lendecke
ca34287063 Make use of ADD_TO_ARRAY
(This used to be commit 81f334bd6da601a040f754c46705cfa2fd4f8c45)
2008-07-05 12:19:13 +02:00
Volker Lendecke
0234276af8 Convert idmap_cache to gencache
(This used to be commit 0bf0434f22b0ea46fda3ccc4dd612adbc88dd4f2)
2008-07-05 12:19:13 +02:00
Volker Lendecke
9c7e12d9f7 IDMAP_READ_CACHE_DATA_FMT_TEMPLATE is unused, remove it
(This used to be commit 2396d5d5d2f453f097f8ce77b640ad7e1d7e7c4c)
2008-07-03 21:19:09 +02:00
Volker Lendecke
60582d1fb4 Simplify idmap_cache_set() a bit
sid_check_is_in_unix_* will only give true if it is of the corresponding type,
so the check if the struct idmap actually represents a user or group is
unnecessary.
(This used to be commit 55b976ba93462c6885e8d89edd13c32fb5529944)
2008-07-03 21:19:09 +02:00
Volker Lendecke
8857affd3c Simplify idmap_cache_build_[s]idkey a bit
(This used to be commit 80932c0266ef73b8d0462c078a053444fff47f32)
2008-07-03 21:19:09 +02:00
Volker Lendecke
47f1090de7 Fix indentation
(This used to be commit c4e6de9e34e1ff76552ce6d4e72b343fb5f33306)
2008-07-03 15:17:58 +02:00
Volker Lendecke
ec7aa52a3b Fix typo
(This used to be commit fe79c8a5b726754703626ca0bff57074274c98c7)
2008-07-02 15:13:14 +02:00
Volker Lendecke
7207b41a5e Tiny logic simplification: Remove an unnecessary else branch
(This used to be commit 6009ae329375b1c40e3d00df977ddccc8b5cc176)
2008-07-02 15:13:01 +02:00
Volker Lendecke
e467fae948 Fix nonempty whitespace only lines
(This used to be commit cc77db2acbc35cea58576f1e28c7a760a5e31609)
2008-07-02 15:04:46 +02:00
Volker Lendecke
ec77a06a5d fix typos
(This used to be commit e0957c6f4b1e81c27fda1de7fb7cbc9c585f5ac9)
2008-07-02 14:54:59 +02:00
Volker Lendecke
62dddd04f4 Fix nonempty whitespace only lines
(This used to be commit 0da9d0d0f9662d8bd2f370f764d5a875e11b3068)
2008-07-02 14:18:15 +02:00
Volker Lendecke
69b9cffe6e Fix indentation
(This used to be commit 954556b527aa652f9a46f0d48834e92befb3c5f9)
2008-07-02 14:18:10 +02:00
Volker Lendecke
d6ab71f06c Fix a debug msg, this was probably a leftover from gencache
(This used to be commit daa171552dc00d9602a05ba199c9a3ff24c802f5)
2008-07-02 14:18:05 +02:00
Volker Lendecke
dd7691ce68 Fix typo
(This used to be commit fe58926283b51910d8587e32bb11aa681b9a27d3)
2008-07-02 14:18:01 +02:00
Volker Lendecke
1999791b7c Make idmap_init() static
This is called only from idmap_alloc_init, which feels kindof weird.

Digging deeper in the code...
(This used to be commit c8d1bbfddce41cd6bf37dd0a622ef3437a24b492)
2008-07-02 13:34:09 +02:00
Volker Lendecke
ab57861686 Fix two memory leaks in an error path in idmap.c
(This used to be commit 7cec389e19323e99b6b6258e539be9d1fd65810f)
2008-07-02 13:34:09 +02:00
Darshan Purandare
065760ede0 MSG_DEBUG now forwarded to all the winbindd children by parent.
smbcontrol winbindd debug level would only set the debug level of the
parent winbindd process and not the child processes. This patch adds
the functionality of broadcasting the debug message to all winbindd
children. Now the debug level message is propagated to all the winbindd
processes that includes parent and children.
(This used to be commit cfbcfc3ffe74f28ec874a6bf1ab93f55f405b6e6)
2008-07-01 17:52:24 -07:00
Karolin Seeger
3b1de7f7f4 Revert "winbind cache: Don't create SN cache entries during name-to-sid queries."
This reverts commit b58e4f6b3d73294d8448c0dff4341183c52e5b7c.

Details can be found on the samba-technical mailing list.

Karolin
(This used to be commit 534a445df450c681be7da2c9dd65f7294f942b08)
2008-07-01 10:34:22 +02:00
Jeremy Allison
4aaa3a0fac Fix from Atte Peltomki - atte.peltomaki@f-secure.com to correctly check
error code in winbindd group expansion.
Jeremy.
(This used to be commit e321377174f579ba57a70f260f4d4bc234a07439)
2008-06-30 09:20:05 -07:00
Gerald W. Carter
9ff1ffcbee libads: Add API call to connect to a global catalog server.
Extends ads_connect() to a new call ads_connect_gc() which connects on port
3268 rather than port 389.  Also makes ads_try_connect() static and
only used internally to ldap.c
(This used to be commit f4c37dbe2c986fb7bfe510cdff3b4a9fbc06d079)
2008-06-27 10:26:11 -04:00
Jeremy Allison
120c09b125 From Steve Danneman @ Isilon.
Attached is the companion patch to
(037b9689d9042a398cb91e4628a82fcdfa913c21), which
made handling of WINBINDD_LIST_GROUPS asynchronous.

Because most all of the list_groups code was reusable, I abstracted it,
and implemented both list_groups and list_users on top of it.

On my large test domain a "wbinfo -u" call went from 70 seconds to 30
seconds with this patch.  Plus, the parent process is no longer blocked
from receiving new requests during that time.

Steven Danneman | Software Development Engineer
Isilon Systems    P +1-206-315-7500     F +1-206-315-7501
www.isilon.com
(This used to be commit 5188f2861137ff06d5399561d55d7d00c3a08644)
2008-06-26 14:02:39 -07:00
Michael Adam
89ce05bb14 winbind: remove duplicate debug message for failing messaging_init().
Leave the message inside winbind_messaging_context() for now.
There might be callers, where this debug message could prove useful...

Michael
(This used to be commit e9177ec56a8fe596d6fcfc4a95df87e39f757818)
2008-06-26 12:31:10 +02:00