1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

1783 Commits

Author SHA1 Message Date
Günther Deschner
3850c2f451 Fix build warning.
Guenther
(This used to be commit a3417be934e34af2525ddb731af288034d51432b)
2008-01-30 14:49:37 +01:00
Volker Lendecke
1852c29b6e Fix uninitialized variables
response.extra_data.data is not initialized on the first error path

Found by the IBM checker
(This used to be commit e9b3115c85e3d04eeaa04bfa71972d393272afca)
2008-01-29 16:24:59 -06:00
Gerald W. Carter
9758043a44 Allow NULL request and/or response pointers to be passed to wbcRequestResponse().
This is a valid parameter set for things like setpwent() and ping().
(This used to be commit c1cdf6085329d55cf29ccc8c980fc853a03a695e)
2008-01-29 14:49:38 -06:00
Jeremy Allison
4ee9d715a0 Fix missing error check that caused crash when winbindd not running.
Jeremy.
(This used to be commit f5ca241e2c1adf2ae836fae33a4adac916f46416)
2008-01-24 17:40:35 -08:00
Stefan Metzmacher
fa32063d07 libwbclient: use the same style in each switch case for the error mapping
metze
(This used to be commit 0b85f7173d0770f8d9a0bac9e43355eb45bc181f)
2008-01-21 13:20:07 +01:00
Günther Deschner
a92eb76688 Finally enable pidl generated SAMR & NETLOGON headers and clients.
Guenther
(This used to be commit f7100156a7df7ac3ae84e45a47153b38d9375215)
2008-01-17 16:54:46 +01:00
Stefan Metzmacher
99e9776436 nsswitch/: we don't need socket or nss wrapper in the winbind client code
As we don't need socket wrapper of nss wrapper in the winbind client code
we disable the function macros so that we don't endup with swrap_close()
or similar functions.

metze
(This used to be commit 40aeb431604bd26fc543410de24593726ca0a01f)
2008-01-15 13:58:32 +01:00
Stefan Metzmacher
bfc4e62e61 libwbclient: move wbc_err.h into wbclient.h as we only install one header
This makes the installed wbclient.h header usable.

metze
(This used to be commit 7dd65599a15bf1d164fcfa554c8057d43c51eb6d)
2008-01-15 10:43:42 +01:00
Günther Deschner
2c072ac879 Some coding convention pedantism.
Guenther
(This used to be commit 338baf96cb957fa52e312d42fbf0fa227d7dafda)
2008-01-03 12:11:18 +01:00
Gerald (Jerry) Carter
0df7bcaec3 Fix some C++ warnings (patch was Volker's) - implicit case from void* to char*
(This used to be commit 518168410c49ac25085714c73e76dcf358fc4b68)
2008-01-02 17:34:41 -06:00
Gerald (Jerry) Carter
701a56a698 Make sure that wbcLookupSid() and wbcLookupRids() use talloc()'d memory.
Follows existing convention that all returned memory should be freed with
wbcFreeMemory() and not directly with free().  Noticed by Volker.  Txs.
(This used to be commit 39c2059f66ee9eb471a503b9c776807b91c2a8f8)
2008-01-02 14:50:59 -06:00
Volker Lendecke
24e694796d Fix wbcAllocate[GU]id
wbcRequestResponse() returns a wbcErr, not NSS_STATUS
(This used to be commit 1bbdbdef991408af07afaba7bc0b4da55f06aed8)
2007-12-23 00:49:32 +01:00
Volker Lendecke
85065a4f36 Fix wbcPing()
Without request and response, wbcRequestResponse() will always return
WBC_ERR_INVALID_PARAM, so the ping will never reach winbind.
(This used to be commit 9a24753d35a4b1a283a65c60088d82e4b80f14c8)
2007-12-23 00:49:32 +01:00
Jeremy Allison
e0a054ded3 Fix const warning.
Jeremy.
(This used to be commit 5159f897ddaad1878fff629cc074dd71b2b3f4ab)
2007-12-21 12:18:17 -08:00
Gerald (Jerry) Carter
387288e950 Compile fix: Correct use of wbcDomainInfo() after function signature change.
Also fixes a doxygen warngin about an undocumented parameter in the same
function.
(This used to be commit 290ab64e9e5fb2a28e14a5f344f22119d5304563)
2007-12-21 13:49:19 -06:00
Gerald (Jerry) Carter
59ce7650f2 De-couple smbd from staticly linking against winbindd client files.
Implements a wrapper layer in winbind_util.c which are just stubs
if compiled --without-winbind.  When building with winbindd, it
is now required to build the libwbclient DSO first (in the Makefile)
and then either set LD_LIBRARY_PATH or /etc/ld.so.conf to pick up the
library PATH.
(This used to be commit 42787bccff4fcffafc7aae6a678e792604ecaaa5)
2007-12-21 11:59:56 -06:00
Gerald (Jerry) Carter
a2481eda8c Add files for new LGPL libwbclient DSO implementing the Winbind client API
(based on the winbind_struct_protocol.h).

The API in incomplete, but sufficient to merge.  See wbclienbt.h for the i
interface functions.
(This used to be commit 83d274b46078a9ace77edb822a0e336c79dcf40e)
2007-12-21 11:58:04 -06:00
Michael Adam
e3bb148b94 Only retrieve password policies in pam_auth when WBFLAG_PAM_GET_PWD_POLICY is set.
This essentially re-establishes r14496 (2155bb0535656f294bd054d6a0a7d16a9a71c31b)
which was undone in r17723 (43bd8c00abb38eb23a1497a255d194fb1bbffffb) for
reasons that are unclear to me. Maybe I am being too naive.

Now we do again only retrieve the password policy when called from
the pam_winbind module. This fixes logons delegated to AD trusted
domain controllers: We need to connect to the sam to retrieve the
password policy. But auhtenticated session setup is not possible
when contacting the trusted domain dc and afterwards, SamrConnect
also fails with whatever credentials and method used.

Michael
(This used to be commit 6d765e0de523211a2d0b43a2c4c4117f5f0c662f)
2007-12-20 02:05:55 +01:00
Volker Lendecke
2e07c2ade8 s/sid_to_string/sid_to_fstring/
least surprise for callers
(This used to be commit eb523ba77697346a365589101aac379febecd546)
2007-12-15 22:47:30 +01:00
Volker Lendecke
d899b8c56a Use sid_to_string directly
It seems a bit pointless to do a fstrcpy(dst, sid_string_static(src))
(This used to be commit c221c246b10e2dbbd54a9af2dc45de2eae237380)
2007-12-15 22:09:36 +01:00
Volker Lendecke
900288a2b8 Replace sid_string_static by sid_string_dbg in DEBUGs
(This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
2007-12-15 22:09:36 +01:00
Stefan Metzmacher
ffe42b9015 wbinfo: use POPT_COMMON_CONFIGFILE
We can't use POPT_COMMON_SAMBA as the -s option is
already used by -s, --sid-to-name=SID.

Also load the config file after processing the cmdline options

metze
(This used to be commit 33cbd6903e8b468a782fb5d6913eb82824d3b347)
2007-12-14 19:38:23 +01:00
Stefan Metzmacher
38f8d32d10 winbindd: remove unused WINBINDD_DUMP_MAPS support
Also the design of this function was really bad,
instead do the dump into a file, the client should get
back the list of mappings.

metze
(This used to be commit ce7fe8acf41e90553431c7cda6823700701835c7)
2007-12-12 10:07:05 +01:00
Stefan Metzmacher
3728c8b6d9 winbindd: remove unused WINBINDD_DUAL_NAME2*ID and WINBINDD_DUAL_*ID2NAME calls
WINBINDD_DUAL_UID2NAME
WINBINDD_DUAL_NAME2UID
WINBINDD_DUAL_GID2NAME
WINBINDD_DUAL_NAME2GID

metze
(This used to be commit fd4499ee438e4947990200db529363d51bd2c956)
2007-12-12 09:34:20 +01:00
Jeremy Allison
95c2f313ce Add patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech Republic <Jiri.Sasek@Sun.COM>
- slightly modified - Jiri please check !  to allow Solaris to get passwords > 8 chars.
Jeremy.
(This used to be commit 657bf8c3479d6192f269e3daef1517e77a9fa9cb)
2007-12-11 13:16:35 -08:00
Jeremy Allison
7faee02d0d Remove the char[1024] strings from dynconfig. Replace
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
(This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-12-10 11:30:37 -08:00
Jeremy Allison
42cfffae80 Remove next_token - all uses must now be next_token_talloc.
No more temptations to use static length strings.
Jeremy.
(This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
2007-12-07 17:32:32 -08:00
Jeremy Allison
8404873851 Don't double define fstring.
Jeremy.
(This used to be commit 822b2ead9b0ee28d7ae147fc1ef67da099699cf8)
2007-12-07 12:04:40 -08:00
Jeremy Allison
9e8180b983 Remove pstrings completely except for smbctool (what does this do ?).
Don't build this for now.
Jeremy.
(This used to be commit 46b67fd82c795d1a34a1efca9e409c0f3fa4f3a2)
2007-12-07 12:02:44 -08:00
Jeremy Allison
328a57e1ca Remove more pstrings, from the winbindd protocol def and
inside winbindd. Remove unused pstring types.
Jeremy.
(This used to be commit 9ccac8abb0420393569dbca73e7daf2742aa1099)
2007-12-03 17:57:46 -08:00
Jeremy Allison
80c2446321 Remove pstrings from nsswitch/ and registry/
Jeremy.
(This used to be commit 331c0d6216e1a1607a49ed7eb4078e10138ec16a)
2007-11-26 17:24:56 -08:00
Gerald (Jerry) Carter
b921f1690f Allocate a talloc_stackframe() in main() for wbinfo.
(This used to be commit 30c9e3557bf4ca0b85e15bd7cc883391aec42f1f)
2007-11-21 10:27:22 -06:00
Jeremy Allison
51a0354d75 Remove more static data from lib/util_sock.c and
callers.
Jeremy.
(This used to be commit 35aaa36f82c70964cee5d0778eb04547b226dd3f)
2007-11-03 22:34:46 -07:00
Jeremy Allison
f88b7a076b This is a large patch (sorry). Migrate from struct in_addr
to struct sockaddr_storage in most places that matter (ie.
not the nmbd and NetBIOS lookups). This passes make test
on an IPv4 box, but I'll have to do more work/testing on
IPv6 enabled boxes. This should now give us a framework
for testing and finishing the IPv6 migration. It's at
the state where someone with a working IPv6 setup should
(theorecically) be able to type :
smbclient //ipv6-address/share
and have it work.
Jeremy.
(This used to be commit 98e154c3125d5732c37a72d74b0eb5cd7b6155fd)
2007-10-24 14:16:54 -07:00
Günther Deschner
61e482cfdf Merge Tridge's fix for the winbind 32/64bit padding.
Guenther
(This used to be commit 36578b22f12a7de21df5a795d7702c10d19b1f3d)
2007-10-19 13:03:49 +02:00
Jeremy Allison
30191d1a57 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.
(This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-18 17:40:25 -07:00
Jeremy Allison
666f50b01f Move to protocol independent code in most of lib/util_sock.c
We don't use gethostbyname any more except in one case where
we're looking for host aliases (I don't know how to do that
with getaddrinfo yet). New function should be getaddrinfo().
Next step will be fixing lib/access.c, and then changing
libsmb/namequery.c to cope with IPv6 address returns.
Jeremy.
(This used to be commit 4a56b697b6adcf095e25895c4a9ba3192ed34124)
2007-10-15 16:11:48 -07:00
Guenther Deschner
89d33395e3 Merge commit 'origin/v3-2-test' into my_branch
(This used to be commit fbe5edec375c99421d19af086c4f597e70c963b8)
2007-10-11 15:18:50 +02:00
Guenther Deschner
6b441e9e74 Rename krb5 locator plugin to "winbind_krb5_locator".
Guenther
(This used to be commit 6ae4066bbb59536852036394ffdb89121198a39f)
2007-10-11 15:12:12 +02:00
Jeremy Allison
8e54530b52 Add start of IPv6 implementation. Currently most of this is avoiding
IPv6 in winbindd, but moves most of the socket functions that were
wrongly in lib/util.c into lib/util_sock.c and provides generic
IPv4/6 independent versions of most things. Still lots of work
to do, but now I can see how I'll fix the access check code.
Nasty part that remains is the name resolution code which is
used to returning arrays of in_addr structs.
Jeremy.
(This used to be commit 3f6bd0e1ec5cc6670f3d08f76fc2cd94c9cd1a08)
2007-10-10 18:25:16 -07:00
Jim McDonough
7c4df041a6 r25493: Fix typo in Jeremy's thread-safe winbind patch:
lock->unlock (would have tried to lock a mutex
at the end of a function).  Cut-n-paste error.
(This used to be commit 281c6191547c352a51d73920c7a31d9236b37351)
2007-10-10 12:31:09 -05:00
Michael Adam
b2e8ed64cc r25441: Make wbinfo --sequence output the sequence number if --domain
is specified.

Michael
(This used to be commit b0f59f18bc8e95a98ee44fcc751f3af4e96d5924)
2007-10-10 12:31:05 -05:00
Michael Adam
6765a8acfd r25426: Fix another implicit cast warning.
Michael
(This used to be commit 4a053d5bf9db82b5ae9ac342f68e90ef89ba292f)
2007-10-10 12:31:04 -05:00
Jeremy Allison
58a9621904 r25406: Make the Linux nss client code thread-safe.
Fix originally inspired from code from boyang <yyyeer.bo@gmail.com>.
Jeremy.
(This used to be commit cc19c0ace43a3613f6290fa4bc4f68c964563743)
2007-10-10 12:31:03 -05:00
Stefan Metzmacher
1edf050ad8 r25241: remove sequence_number out of WINBINDD_DOMAIN_INFO call
as this is always answered by the winbindd parent and will
most times return old sequence number values.

metze
(This used to be commit 9caf54c868e8c0109730860e772c9cc404e2f899)
2007-10-10 12:30:53 -05:00
Stefan Metzmacher
6e4bf4c188 r25177: if configured using --enable-socket-wrapper
allow overwritting the location of the WINBINDD_SOCKET_DIR
via an environment variable

metze
(This used to be commit 93bdd2724cc711005a5f2f223b499199394e78e7)
2007-10-10 12:30:48 -05:00
Stefan Metzmacher
28aa4bff8d r25154: move winbindd code into winbindd/
metze
(This used to be commit 3ac7566ae14c48ff9b0f6b232e0ec4b2f73df558)
2007-10-10 12:30:46 -05:00
Stefan Metzmacher
38b140fe70 r25152: fix headers used in wbinfo.c
metze
(This used to be commit 2a794db3c548330d477497aa66245845486d9888)
2007-10-10 12:30:46 -05:00
Günther Deschner
6005c4e657 r25148: Adapt to coding conventions.
Guenther
(This used to be commit c3b423c52a2bf3f50870158d8c7ffd314c8ac935)
2007-10-10 12:30:45 -05:00
Stefan Metzmacher
b8c5d16258 r25146: rename winbindd_nss.h => winbind_struct_protocol.h
as this header has nothing todo with winbindd nor nss
and it contains the definitions for the struct based
protocol

metze
(This used to be commit e9e03aac2221c44eec89cc957b8bb3be721103bd)
2007-10-10 12:30:45 -05:00