summaryrefslogtreecommitdiff
path: root/source3/nsswitch
AgeCommit message (Collapse)AuthorFilesLines
2008-02-05The krb5 locator should now be correctly able to handleJeremy Allison1-4/+4
IPV6, so (a) use the correct #ifdef (it's HAVE_IPV6, not HAVE_IPv6) and (b) don't deliberately terminate on an IPv6 address family. Jeremy. (This used to be commit a769acc0ba72ddd751e70558e0c2d9b2e6d71164)
2008-02-05Remove unused marshalling for SAMR_CONNECT.Günther Deschner1-1/+1
Guenther (This used to be commit 3442abd26d7c86f6abd9c3ca3593ac3b1170e826)
2008-02-04Use the proper boolean constants in wbinfo.c .Michael Adam1-73/+73
Michael (This used to be commit be57475cd1d5db60481e74000dc7d65002742376)
2008-02-04Reformatting: Fix spacing in wbinfo.c .Michael Adam1-86/+85
This fixes mixed tabs/spaces and trailing whitespaces I just ran across. Michael (This used to be commit 617928cbaeb76cf40245f95d02b48aaa0e18d69a)
2008-02-04Prevent a segfault when "wbinfo -a" is called without password.Michael Adam1-1/+3
wbcAuthenticateUser segfaults when passed NULL as password. This only changes the caller in wbinfo.c to pass an empty password string to wbcAuthenticateUser(). Michael (This used to be commit 3cbc7c19eba68427160e09e865edc85c7fe38413)
2008-02-01NetBSD needs PAM_SM_SESSIONVolker Lendecke1-0/+1
Otherwise no prototype for pam_sm_close_session is defined (This used to be commit e26ba6a3c6bf54b426b55c4ca0b9db98cd0d7b75)
2008-01-30Fix build warning.Günther Deschner1-1/+0
Guenther (This used to be commit a3417be934e34af2525ddb731af288034d51432b)
2008-01-29Fix uninitialized variablesVolker Lendecke2-15/+15
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-29Allow NULL request and/or response pointers to be passed to ↵Gerald W. Carter1-5/+1
wbcRequestResponse(). This is a valid parameter set for things like setpwent() and ping(). (This used to be commit c1cdf6085329d55cf29ccc8c980fc853a03a695e)
2008-01-24Fix missing error check that caused crash when winbindd not running.Jeremy Allison1-0/+1
Jeremy. (This used to be commit f5ca241e2c1adf2ae836fae33a4adac916f46416)
2008-01-21libwbclient: use the same style in each switch case for the error mappingStefan Metzmacher1-2/+2
metze (This used to be commit 0b85f7173d0770f8d9a0bac9e43355eb45bc181f)
2008-01-17Finally enable pidl generated SAMR & NETLOGON headers and clients.Günther Deschner3-17/+18
Guenther (This used to be commit f7100156a7df7ac3ae84e45a47153b38d9375215)
2008-01-15nsswitch/: we don't need socket or nss wrapper in the winbind client codeStefan Metzmacher1-0/+8
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-15libwbclient: move wbc_err.h into wbclient.h as we only install one headerStefan Metzmacher2-52/+26
This makes the installed wbclient.h header usable. metze (This used to be commit 7dd65599a15bf1d164fcfa554c8057d43c51eb6d)
2008-01-03Some coding convention pedantism.Günther Deschner5-17/+17
Guenther (This used to be commit 338baf96cb957fa52e312d42fbf0fa227d7dafda)
2008-01-02Fix some C++ warnings (patch was Volker's) - implicit case from void* to char*Gerald (Jerry) Carter1-2/+4
(This used to be commit 518168410c49ac25085714c73e76dcf358fc4b68)
2008-01-02Make sure that wbcLookupSid() and wbcLookupRids() use talloc()'d memory.Gerald (Jerry) Carter2-22/+19
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)
2007-12-23Fix wbcAllocate[GU]idVolker Lendecke1-12/+14
wbcRequestResponse() returns a wbcErr, not NSS_STATUS (This used to be commit 1bbdbdef991408af07afaba7bc0b4da55f06aed8)
2007-12-23Fix wbcPing()Volker Lendecke1-1/+9
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-21Fix const warning.Jeremy Allison1-5/+8
Jeremy. (This used to be commit 5159f897ddaad1878fff629cc074dd71b2b3f4ab)
2007-12-21Compile fix: Correct use of wbcDomainInfo() after function signature change.Gerald (Jerry) Carter1-1/+1
Also fixes a doxygen warngin about an undocumented parameter in the same function. (This used to be commit 290ab64e9e5fb2a28e14a5f344f22119d5304563)
2007-12-21De-couple smbd from staticly linking against winbindd client files.Gerald (Jerry) Carter2-546/+64
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-21Add files for new LGPL libwbclient DSO implementing the Winbind client APIGerald (Jerry) Carter12-0/+3000
(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-20Only retrieve password policies in pam_auth when WBFLAG_PAM_GET_PWD_POLICY ↵Michael Adam2-1/+2
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-15s/sid_to_string/sid_to_fstring/Volker Lendecke1-5/+5
least surprise for callers (This used to be commit eb523ba77697346a365589101aac379febecd546)
2007-12-15Use sid_to_string directlyVolker Lendecke1-2/+2
It seems a bit pointless to do a fstrcpy(dst, sid_string_static(src)) (This used to be commit c221c246b10e2dbbd54a9af2dc45de2eae237380)
2007-12-15Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke1-1/+1
(This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
2007-12-14wbinfo: use POPT_COMMON_CONFIGFILEStefan Metzmacher1-10/+12
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-12winbindd: remove unused WINBINDD_DUMP_MAPS supportStefan Metzmacher2-21/+0
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-12winbindd: remove unused WINBINDD_DUAL_NAME2*ID and WINBINDD_DUAL_*ID2NAME callsStefan Metzmacher1-5/+0
WINBINDD_DUAL_UID2NAME WINBINDD_DUAL_NAME2UID WINBINDD_DUAL_GID2NAME WINBINDD_DUAL_NAME2GID metze (This used to be commit fd4499ee438e4947990200db529363d51bd2c956)
2007-12-11Add patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech ↵Jeremy Allison1-1/+1
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-10Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2-3/+3
them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy. (This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-12-07Remove next_token - all uses must now be next_token_talloc.Jeremy Allison2-42/+80
No more temptations to use static length strings. Jeremy. (This used to be commit ec003f39369910dee852b7cafb883ddaa321c2de)
2007-12-07Don't double define fstring.Jeremy Allison1-0/+2
Jeremy. (This used to be commit 822b2ead9b0ee28d7ae147fc1ef67da099699cf8)
2007-12-07Remove pstrings completely except for smbctool (what does this do ?).Jeremy Allison1-5/+0
Don't build this for now. Jeremy. (This used to be commit 46b67fd82c795d1a34a1efca9e409c0f3fa4f3a2)
2007-12-03Remove more pstrings, from the winbindd protocol def andJeremy Allison1-3/+3
inside winbindd. Remove unused pstring types. Jeremy. (This used to be commit 9ccac8abb0420393569dbca73e7daf2742aa1099)
2007-11-26Remove pstrings from nsswitch/ and registry/Jeremy Allison1-22/+19
Jeremy. (This used to be commit 331c0d6216e1a1607a49ed7eb4078e10138ec16a)
2007-11-21Allocate a talloc_stackframe() in main() for wbinfo.Gerald (Jerry) Carter1-1/+3
(This used to be commit 30c9e3557bf4ca0b85e15bd7cc883391aec42f1f)
2007-11-03Remove more static data from lib/util_sock.c andJeremy Allison1-1/+1
callers. Jeremy. (This used to be commit 35aaa36f82c70964cee5d0778eb04547b226dd3f)
2007-10-24This is a large patch (sorry). Migrate from struct in_addrJeremy Allison2-3/+17
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-19Merge Tridge's fix for the winbind 32/64bit padding.Günther Deschner1-1/+1
Guenther (This used to be commit 36578b22f12a7de21df5a795d7702c10d19b1f3d)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison3-53/+53
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-15Move to protocol independent code in most of lib/util_sock.cJeremy Allison1-2/+1
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-11Merge commit 'origin/v3-2-test' into my_branchGuenther Deschner1-1/+4
(This used to be commit fbe5edec375c99421d19af086c4f597e70c963b8)
2007-10-11Rename krb5 locator plugin to "winbind_krb5_locator".Guenther Deschner1-0/+0
Guenther (This used to be commit 6ae4066bbb59536852036394ffdb89121198a39f)
2007-10-10Add start of IPv6 implementation. Currently most of this is avoidingJeremy Allison1-1/+4
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-10r25493: Fix typo in Jeremy's thread-safe winbind patch:Jim McDonough1-1/+1
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-10r25441: Make wbinfo --sequence output the sequence number if --domainMichael Adam1-1/+8
is specified. Michael (This used to be commit b0f59f18bc8e95a98ee44fcc751f3af4e96d5924)
2007-10-10r25426: Fix another implicit cast warning.Michael Adam1-1/+1
Michael (This used to be commit 4a053d5bf9db82b5ae9ac342f68e90ef89ba292f)
2007-10-10r25406: Make the Linux nss client code thread-safe.Jeremy Allison1-12/+181
Fix originally inspired from code from boyang <yyyeer.bo@gmail.com>. Jeremy. (This used to be commit cc19c0ace43a3613f6290fa4bc4f68c964563743)