summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/libwbclient
Commit message (Collapse)AuthorAgeFilesLines
* libwbclient: let wbcStringToSid handle the global NULL sid.Günther Deschner2008-07-311-1/+1
| | | | | | Guenther (cherry picked from commit 09fed085bea9dae5bb8aacd986deed3d458e3574) (cherry picked from commit fba8506112938bf714c06da08e0e0725a7eecf3a)
* allow SID with 0 in subauthority to be converted properlyHerb Lewis2008-07-181-1/+2
| | | | | from string representation. (cherry picked from commit eaee722ca74af274e628cbd868753800bddc3e97)
* Fix a segfault in wbcLookupSidVolker Lendecke2008-06-171-19/+29
| | | | | | | | | | | | | | If the BAIL_ON_WBC_ERROR directly after wbcRequestResponse kicks in, *domain and *name have not been initialized yet. So the cleanup routine in the done: part of the routine (which did not check for domain!=NULL etc) would access uninitialized memory. Jerry, please check! Thanks, Volker (cherry picked from commit 3d7e0cc40b1992f4555807acec4f00450e30e2de)
* Fix a segfault in wbcLookupRidsVolker Lendecke2008-06-171-16/+21
| | | | | | | | | | | | The done: part could access uninitialized memory if intermediate BAIL_ON_WBC_ERROR fire. Jerry, please check! Thanks, Volker (cherry picked from commit 31f4c33dcc744e81be54389756378e25aa2bb75e)
* Replace a very unusual variable declaration by a more conventional oneVolker Lendecke2008-06-171-1/+1
| | | | (cherry picked from commit b37030644e32249706d431ad93881d540f351c50)
* Fix a memleak in wbcAuthenticateUserEx()Volker Lendecke2008-06-171-0/+2
| | | | (cherry picked from commit 72b381689af9cae83ab08532cffd0188f2da4807)
* Fix group parsing in libwbclient's copy_group_entry()Volker Lendecke2008-06-161-4/+6
| | | | | | | | This (also) fixes a flaw pointed out by the IBM checker. When verifying that I found out that the parsing was not working as I would have expected it to. Jerry, please check! (cherry picked from commit c2c7790155ab02e1e351caf2bed192ce72913663)
* Fix an uninitialized variable found by the IBM checkerVolker Lendecke2008-06-161-5/+5
| | | | | | | | | | BAIL_ON_PTR_ERROR jumps to done: which will access extra_data before it's initialized. Stefan, please check! Volker (cherry picked from commit b59636f78d351ed6d52c4a9fdccdb7850388526c)
* libwbclient: add wbcLibraryDetails()Stefan Metzmacher2008-05-232-0/+38
| | | | | metze (cherry picked from commit b68916328e935e61840cb03560ebeeee15bb2c6f)
* libwbclient: rename MAXSUBAUTHS => WBC_MAXSUBAUTHSStefan Metzmacher2008-05-233-5/+5
| | | | | metze (cherry picked from commit 04d465c622c614bec29f24793ae897a73bcb51f4)
* fix some extrasemi compile warningsBjörn Jacke2008-05-051-1/+1
| | | | (cherry picked from parts of cbdb79b7a1044945e515a294f487e4c1a9c91be5)
* libwbclient: change wbcResolveWinsByIP() to take char ** instead of const ↵Michael Adam2008-04-232-3/+3
| | | | | | | | | | char ** Fix a compile warning. This seems the right thing since the data is created by talloc_strdup... Michael (cherry picked from commit f81da8e8ed8e2d75c77bd8b5e7fdd7c53bab7e49)
* libwbclient: fix wbcResolveWinsByName() to take char * instead of const char **Michael Adam2008-04-232-3/+3
| | | | | | | | This fixes a compile warning and seems the correct thing to me as the returned data is talloc_strdup't, so not const anyways. Michael (cherry picked from commit 13cfa7f48a541a934a129fab0544cbf66029c4c7)
* Mark a domain offline in the wbcDomainInfo structure using the domain_flags.Gerald W. Carter2008-04-232-1/+15
| | | | | | Use the existing domain_flags fiueld in wbcDomainInfo to set a bit if the domain is marked as offline by Winbind. (cherry picked from commit 59cfba2c3d6d4594f08cbe3b7295ab36a7cfb044)
* Rename WBC_DOMAIN_XXX domain flags to WBC_DOMINFO_DOMAIN_XXXGerald W. Carter2008-04-232-7/+7
| | | | | Better consistency with the othre classes of WBC_DOMINDO_XXX_YYYY flags. (cherry picked from commit 1cb2305fc96be0c190621f7c86c0476e4ea1fff7)
* Add wbcListTrusts() API call to libwbclient.soGerald W. Carter2008-04-232-6/+238
| | | | (cherry picked from commit 5c454e77cf664fee65fcb03e5811764c92e73696)
* Remove unused variable from wbcCheckTrustCredentials().Gerald W. Carter2008-04-211-1/+0
| | | | (cherry picked from commit fea52dc46048ff869299267f7596b93a8c5c8b3d)
* Follow error code name convention in libwbclient.Gerald W. Carter2008-04-214-14/+14
| | | | | s/WBC_INVALID_RESPONSE/WBC_ERR_INVALID_RESPONSE/ (cherry picked from commit d91ce012b0afb30cd22b373412d17de27c55ca86)
* libwbclient: add wbcCheckTrustCredentials()Stefan Metzmacher2008-04-212-0/+58
| | | | | | | | | This only accepts NULL as domain for now, because winbindd doesn't support checking trust passwords as a domain controller. metze (cherry picked from commit c084ccd70f42ce29ce24565969a9f440dde254e1)
* libwbclient: add wbcResolveWinsByName() and wbcResolveWinsByIP()Stefan Metzmacher2008-04-212-0/+87
| | | | | metze (cherry picked from commit 57ba71140fbf6b4a5a917fa3248fa76536be883b)
* libwbclient: add wbcSet[U|G]idMapping() and wbcSet[U|G]idHwm() functionsStefan Metzmacher2008-04-122-0/+157
| | | | | metze (cherry picked from commit 364e146805bb74b46da4d3c187e9a684d4b99a01)
* libwbclient: add wbcGetGroups()Stefan Metzmacher2008-04-112-0/+64
| | | | | metze (cherry picked from commit 596d030b976102e7476a2460fce355914c4e8210)
* wbcAllocateGid returns a gid_t, not a uid_tVolker Lendecke2008-04-112-2/+2
| | | | (cherry picked from commit 3130fb7b32285b8501f5ee8cbc62b478c09cccd3)
* libwbclient: add wbcInterfaceDetails()Stefan Metzmacher2008-04-112-0/+90
| | | | | metze (cherry picked from commit fee3806326b9ba214e35868271e6481c0c8b9c4b)
* libwbclient: use WBC_ERROR_IS_OK() in BAIL_ON_WBC_ERROR() macroStefan Metzmacher2008-04-111-4/+5
| | | | | metze (cherry picked from commit de2e8d5db93d32e5ebf04a2018a08f766eb9a233)
* libwbclient: remove prototype of non existing wbcDomainSequenceNumbers()Stefan Metzmacher2008-04-111-2/+0
| | | | | metze (cherry picked from commit 7a4de23aa318bd24948e576a5582a5c74d335154)
* libwbclient: add wbcListUsers() and wbcListGroups()Stefan Metzmacher2008-04-112-0/+150
| | | | | metze (cherry picked from commit df127f0b40d36ea8ee605c24ea88558c7d40a7fe)
* libwbclient: add wbcLookupUserSids()Stefan Metzmacher2008-04-112-0/+87
| | | | | metze (cherry picked from commit 38007a387a1f1b53877ef9ea518f83ecf026f4f3)
* libwbclient: fix Coverity ID 536 remove duplicate error path (dead code).Michael Adam2008-04-101-2/+1
| | | | | | | I leave the more explicit error path in the "if (cmd == 0)" block. Michael (cherry picked from commit 2ae19b5fb89e0a992962af14a81b641bf13b7892)
* Fix wbcAuthenticateUserEx().Günther Deschner2008-03-261-1/+1
| | | | | Guenther (cherry picked from commit 79f7a519f8f61a31d84467c5b5975cae13db1c29)
* 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-151-37/+91
|\ | | | | | | v3-2-test
| * 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.
* libwbclient: add wbcAuthenticateUserEx() functionStefan Metzmacher2008-02-133-1/+460
| | | | | | This function will be used by auth_winbind.c. metze
* libwbclient: implement wbcErrorString()Stefan Metzmacher2008-02-112-1/+35
| | | | metze
* 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
* 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.