1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-28 00:49:42 +03:00

18 Commits

Author SHA1 Message Date
Günther Deschner
4356a45682 libwbclient: let wbcStringToSid handle the global NULL sid.
Guenther
(This used to be commit 09fed085bea9dae5bb8aacd986deed3d458e3574)
2008-07-30 17:08:31 +02:00
Zach Loafman
06d0790c07 Fix various build warnings
This fixes various build warnings on our platform. I'm sure I haven't
caught them all, but it's a start.
(This used to be commit 6b73f259cb67d9dda9127907d706f9244a871fa3)
2008-07-22 15:00:48 +02:00
Herb Lewis
a935b1b6d6 allow SID with 0 in subauthority to be converted properly
from string representation.
(This used to be commit 23f338d1da96fd4ea3283bc96ca7d496b23bf854)
2008-07-17 09:38:08 -07:00
Volker Lendecke
2a5dee2892 Fix an "invalid operation involving NULL pointer" found by the IBM checker
Jerry, please check!

Volker
(This used to be commit eb6096a2d488d64cfa86e01be2a97e14e5773fe3)
2008-06-27 11:23:20 +02:00
Volker Lendecke
f287cdb1f0 Remove a strlen check that will never kick in
strlen(str)<2 will be caught by the explicit tests for str[0] and str[1] in the
lines above this.

Jerry, please check!

Volker
(This used to be commit 44a9e5b713c25ff2cc7215635a516f25359b045b)
2008-06-27 11:23:20 +02:00
Volker Lendecke
6f66dbcda6 Fix a segfault in wbcLookupRids
The done: part could access uninitialized memory if intermediate
BAIL_ON_WBC_ERROR fire.

Jerry, please check!

Thanks,

Volker
(cherry picked from commit 31f4c33dcc744e81be54389756378e25aa2bb75e)
(This used to be commit 5b12d8aa510689114e5413be5afe6aeb6ec2d9db)
2008-06-17 15:22:13 +02:00
Volker Lendecke
7f9acfae73 Fix a segfault in wbcLookupSid
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)
(This used to be commit ac5ba26bb0488c3fb95072d84898c02b72c5b819)
2008-06-17 15:22:04 +02:00
Volker Lendecke
c8ac22111e Replace a very unusual variable declaration by a more conventional one
(This used to be commit 9c1f334af3111e93bb8dceb661e1bc5519aa94c6)
2008-06-17 14:35:44 +02:00
Stefan Metzmacher
532833de24 libwbclient: rename MAXSUBAUTHS => WBC_MAXSUBAUTHS
metze
(cherry picked from commit 04d465c622c614bec29f24793ae897a73bcb51f4)
(This used to be commit e7dcbf56aef836e1b4be70b21064f65338221b5a)
2008-05-23 17:19:57 +02:00
Gerald W. Carter
43c4c8eed1 Follow error code name convention in libwbclient.
s/WBC_INVALID_RESPONSE/WBC_ERR_INVALID_RESPONSE/
(This used to be commit d91ce012b0afb30cd22b373412d17de27c55ca86)
2008-04-17 17:49:53 +02:00
Stefan Metzmacher
eb98b08ccb libwbclient: add wbcListUsers() and wbcListGroups()
metze
(This used to be commit df127f0b40d36ea8ee605c24ea88558c7d40a7fe)
2008-03-28 15:11:41 +01:00
Stefan Metzmacher
f58ca063bb libwbclient: add wbcLookupUserSids()
metze
(This used to be commit 38007a387a1f1b53877ef9ea518f83ecf026f4f3)
2008-03-28 15:11:41 +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
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
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
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
Jeremy Allison
e0a054ded3 Fix const warning.
Jeremy.
(This used to be commit 5159f897ddaad1878fff629cc074dd71b2b3f4ab)
2007-12-21 12:18:17 -08: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