summaryrefslogtreecommitdiffstats
path: root/source/nsswitch
Commit message (Collapse)AuthorAgeFilesLines
* winbind: use a struct element for WBFLAG_PAM_UNIX_NAMEStefan Metzmacher2008-02-282-2/+4
| | | | | | | | To not conflict with WBFLAG_PAM_INFO3_TEXT. This should fix pam_winbind. metze
* Fix caller of node_status_query() to use sockaddr_storage().Michael Adam2008-02-271-3/+5
| | | | | | Caller is hidden inside an #ifdef . Michael
* Fix a C++ warningVolker Lendecke2008-02-231-1/+1
|
* Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into ↵Jeremy Allison2008-02-152-38/+95
|\ | | | | | | v3-2-test
| * wbinfo: ask wbcAuthenticateUserEx() for user info to test the more complex ↵Stefan Metzmacher2008-02-151-1/+4
| | | | | | | | | | | | code path metze
| * libwbclient: let wbcAuthenticateUser() use wbcAuthenticateUserEx()Stefan Metzmacher2008-02-151-21/+7
| | | | | | | | metze
| * libwbclient: implement WBC_AUTH_USER_LEVEL_PLAIN in wbcAuthenticateUserEx()Stefan Metzmacher2008-02-151-4/+36
| | | | | | | | metze
| * libwbclient: wbcAuthenticateUserEx() be more strict regarding invalid parametersStefan Metzmacher2008-02-151-12/+48
| | | | | | | | metze
* | Fix "warning: 'cmd' may be used uninitialized in this function"Jeremy Allison2008-02-141-0/+3
|/ | | | Jeremy.
* wbinfo: use wbcAuthenticateUserEx()Stefan Metzmacher2008-02-131-47/+43
| | | | metze
* libwbclient: add wbcAuthenticateUserEx() functionStefan Metzmacher2008-02-133-1/+460
| | | | | | This function will be used by auth_winbind.c. metze
* nsswitch: convert winbind_env_set(), winbind_on() and winbind_off() into macrosStefan Metzmacher2008-02-132-30/+8
| | | | metze
* libwbclient: implement wbcErrorString()Stefan Metzmacher2008-02-112-1/+35
| | | | metze
* The krb5 locator should now be correctly able to handleJeremy Allison2008-02-051-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.
* Remove unused marshalling for SAMR_CONNECT.Günther Deschner2008-02-051-1/+1
| | | | Guenther
* Use the proper boolean constants in wbinfo.c .Michael Adam2008-02-041-73/+73
| | | | Michael
* Reformatting: Fix spacing in wbinfo.c .Michael Adam2008-02-041-86/+85
| | | | | | | This fixes mixed tabs/spaces and trailing whitespaces I just ran across. Michael
* Prevent a segfault when "wbinfo -a" is called without password.Michael Adam2008-02-041-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
* NetBSD needs PAM_SM_SESSIONVolker Lendecke2008-02-011-0/+1
| | | | Otherwise no prototype for pam_sm_close_session is defined
* Fix build warning.Günther Deschner2008-01-301-1/+0
| | | | Guenther
* Fix uninitialized variablesVolker Lendecke2008-01-292-15/+15
| | | | | | response.extra_data.data is not initialized on the first error path Found by the IBM checker
* Allow NULL request and/or response pointers to be passed to ↵Gerald W. Carter2008-01-291-5/+1
| | | | | | wbcRequestResponse(). This is a valid parameter set for things like setpwent() and ping().
* Fix missing error check that caused crash when winbindd not running.Jeremy Allison2008-01-241-0/+1
| | | | Jeremy.
* libwbclient: use the same style in each switch case for the error mappingStefan Metzmacher2008-01-211-2/+2
| | | | metze
* Finally enable pidl generated SAMR & NETLOGON headers and clients.Günther Deschner2008-01-173-17/+18
| | | | Guenther
* nsswitch/: we don't need socket or nss wrapper in the winbind client codeStefan Metzmacher2008-01-151-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
* libwbclient: move wbc_err.h into wbclient.h as we only install one headerStefan Metzmacher2008-01-152-52/+26
| | | | | | This makes the installed wbclient.h header usable. metze
* Some coding convention pedantism.Günther Deschner2008-01-035-17/+17
| | | | Guenther
* Fix some C++ warnings (patch was Volker's) - implicit case from void* to char*Gerald (Jerry) Carter2008-01-021-2/+4
|
* Make sure that wbcLookupSid() and wbcLookupRids() use talloc()'d memory.Gerald (Jerry) Carter2008-01-022-22/+19
| | | | | Follows existing convention that all returned memory should be freed with wbcFreeMemory() and not directly with free(). Noticed by Volker. Txs.
* Fix wbcAllocate[GU]idVolker Lendecke2007-12-231-12/+14
| | | | wbcRequestResponse() returns a wbcErr, not NSS_STATUS
* Fix wbcPing()Volker Lendecke2007-12-231-1/+9
| | | | | Without request and response, wbcRequestResponse() will always return WBC_ERR_INVALID_PARAM, so the ping will never reach winbind.
* Fix const warning.Jeremy Allison2007-12-211-5/+8
| | | | Jeremy.
* Compile fix: Correct use of wbcDomainInfo() after function signature change.Gerald (Jerry) Carter2007-12-211-1/+1
| | | | | Also fixes a doxygen warngin about an undocumented parameter in the same function.
* De-couple smbd from staticly linking against winbindd client files.Gerald (Jerry) Carter2007-12-212-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.
* Add files for new LGPL libwbclient DSO implementing the Winbind client APIGerald (Jerry) Carter2007-12-2112-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.
* Only retrieve password policies in pam_auth when WBFLAG_PAM_GET_PWD_POLICY ↵Michael Adam2007-12-202-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
* s/sid_to_string/sid_to_fstring/Volker Lendecke2007-12-151-5/+5
| | | | least surprise for callers
* Use sid_to_string directlyVolker Lendecke2007-12-151-2/+2
| | | | It seems a bit pointless to do a fstrcpy(dst, sid_string_static(src))
* Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke2007-12-151-1/+1
|
* wbinfo: use POPT_COMMON_CONFIGFILEStefan Metzmacher2007-12-141-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
* winbindd: remove unused WINBINDD_DUMP_MAPS supportStefan Metzmacher2007-12-122-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
* winbindd: remove unused WINBINDD_DUAL_NAME2*ID and WINBINDD_DUAL_*ID2NAME callsStefan Metzmacher2007-12-121-5/+0
| | | | | | | | | WINBINDD_DUAL_UID2NAME WINBINDD_DUAL_NAME2UID WINBINDD_DUAL_GID2NAME WINBINDD_DUAL_NAME2GID metze
* Add patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech ↵Jeremy Allison2007-12-111-1/+1
| | | | | | | Republic <Jiri.Sasek@Sun.COM> - slightly modified - Jiri please check ! to allow Solaris to get passwords > 8 chars. Jeremy.
* Remove the char[1024] strings from dynconfig. ReplaceJeremy Allison2007-12-102-3/+3
| | | | | | them with malloc'ing accessor functions. Should save a lot of static space :-). Jeremy.
* Remove next_token - all uses must now be next_token_talloc.Jeremy Allison2007-12-072-42/+80
| | | | | No more temptations to use static length strings. Jeremy.
* Don't double define fstring.Jeremy Allison2007-12-071-0/+2
| | | | Jeremy.
* Remove pstrings completely except for smbctool (what does this do ?).Jeremy Allison2007-12-071-5/+0
| | | | | Don't build this for now. Jeremy.
* Remove more pstrings, from the winbindd protocol def andJeremy Allison2007-12-031-3/+3
| | | | | inside winbindd. Remove unused pstring types. Jeremy.
* Remove pstrings from nsswitch/ and registry/Jeremy Allison2007-11-261-22/+19
| | | | Jeremy.