summaryrefslogtreecommitdiff
path: root/source3/nsswitch
AgeCommit message (Collapse)AuthorFilesLines
2008-02-28winbind: use a struct element for WBFLAG_PAM_UNIX_NAMEStefan Metzmacher2-2/+4
To not conflict with WBFLAG_PAM_INFO3_TEXT. This should fix pam_winbind. metze (This used to be commit 1b8ed6c0ffb2548442bb7e9d848117ce9b1c65c0)
2008-02-27Fix caller of node_status_query() to use sockaddr_storage().Michael Adam1-3/+5
Caller is hidden inside an #ifdef . Michael (This used to be commit 4a0d1ad601facf158db0c1d1c320e9e1369093d0)
2008-02-23Fix a C++ warningVolker Lendecke1-1/+1
(This used to be commit d993b4c3cea6ead74ff1e031ee9a42f2aa39a9f1)
2008-02-15Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into ↵Jeremy Allison2-38/+95
v3-2-test (This used to be commit 847874ca757ac8ca32082305c8caed5abc7fed1d)
2008-02-15wbinfo: ask wbcAuthenticateUserEx() for user info to test the more complex ↵Stefan Metzmacher1-1/+4
code path metze (This used to be commit 432a77e0d7dbd52fd230e4ee9641b6ab4f4d3b73)
2008-02-15libwbclient: let wbcAuthenticateUser() use wbcAuthenticateUserEx()Stefan Metzmacher1-21/+7
metze (This used to be commit 237c2e9738ae29ca7046d6f886d6f777a6206045)
2008-02-15libwbclient: implement WBC_AUTH_USER_LEVEL_PLAIN in wbcAuthenticateUserEx()Stefan Metzmacher1-4/+36
metze (This used to be commit 423f139fd37496db2e690f20399357496367ed7c)
2008-02-15libwbclient: wbcAuthenticateUserEx() be more strict regarding invalid parametersStefan Metzmacher1-12/+48
metze (This used to be commit 491ba9c0c9d479bc686c75242a3749f14d103fcd)
2008-02-14Fix "warning: 'cmd' may be used uninitialized in this function"Jeremy Allison1-0/+3
Jeremy. (This used to be commit 58b0f022ffce7fda531f6f8ea7392a963e8ec0c5)
2008-02-13wbinfo: use wbcAuthenticateUserEx()Stefan Metzmacher1-47/+43
metze (This used to be commit 923cb37837d508d5355038e95ed1ac09c5869a89)
2008-02-13libwbclient: add wbcAuthenticateUserEx() functionStefan Metzmacher3-1/+460
This function will be used by auth_winbind.c. metze (This used to be commit 72af96a320a97ce1a730d6e33d01950123d6a97c)
2008-02-13nsswitch: convert winbind_env_set(), winbind_on() and winbind_off() into macrosStefan Metzmacher2-30/+8
metze (This used to be commit 5f623f54a919cc687d0ff16c16038c05a501008d)
2008-02-11libwbclient: implement wbcErrorString()Stefan Metzmacher2-1/+35
metze (This used to be commit 97a8069075d820c43c17e761b1186d4f0b3c785d)
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)