Jeremy Allison
017e0c8d95
Fix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.
2011-05-04 12:12:13 -07:00
Andrew Bartlett
2742ec0e34
Remove strlower_m() and strupper_m() from source4 and common code.
...
This function is problematic because a string may expand in size when
changed into upper or lower case. This will then push characters off
the end of the string in the s3 implementation, or panic in the former
s4 implementation.
Andrew Bartlett
2011-05-03 07:37:07 +02:00
Sergey Korsak
9bf3dc3ca7
Fix Bug #8099 setpwent() actually does endpwent() and vice versa on FreeBSD
...
Signed-off-by: Günther Deschner <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Apr 19 19:15:14 CEST 2011 on sn-devel-104
2011-04-19 19:15:13 +02:00
Andrew Bartlett
4fd6ebf544
selftest: Remove duplication between BUILDIR and BINDIR
...
Just have BINDIR, and have it default to ./bin
Andrew Bartlett
2011-04-16 11:43:04 +02:00
Volker Lendecke
b8dc235b08
nsswitch: Add wbinfo --sids-to-unix-ids
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-13 14:13:25 -07:00
Volker Lendecke
a93c49d7e6
libwbclient: Add wbcSidsToUnixIds
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-13 14:13:25 -07:00
Volker Lendecke
69ba25948a
nsswitch: wbinfo --lookup-sids
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-13 14:13:25 -07:00
Volker Lendecke
cfe30df98e
libwbclient: Add wbcLookupSids
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-13 14:13:25 -07:00
Volker Lendecke
63446c2c2a
s3: Add winbindd_lookupsids
...
Signed-off-by: Jeremy Allison <jra@samba.org>
2011-04-13 14:13:24 -07:00
Volker Lendecke
0fea80c1d6
s3: Fix Coverity ID 2217: RESOURCE_LEAK
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 30 10:45:44 CEST 2011 on sn-devel-104
2011-03-30 10:45:44 +02:00
Volker Lendecke
40306f2247
s3: Fix Coverity ID 2220: RESOURCE_LEAK
2011-03-30 09:58:35 +02:00
Volker Lendecke
a56eb9b887
s3: Fix Coverity ID 2221: RESOURCE_LEAK
2011-03-30 09:58:35 +02:00
Volker Lendecke
9a97a8307c
s3: Fix Coverity ID 2222: RESOURCE_LEAK
2011-03-30 09:58:35 +02:00
Volker Lendecke
12bf847058
s3: Fix Coverity ID 2223: RESOURCE_LEAK
2011-03-30 09:58:35 +02:00
Volker Lendecke
240aeeb588
s3: Fix Coverity ID 2200: NULL_RETURNS (cut&paste error)
2011-03-27 22:22:11 +02:00
Volker Lendecke
c58eb1f8c5
s3: Fix Coverity ID 2148, FORWARD_NULL
...
Further down we unconditionally reference *info
2011-03-16 22:07:23 +01:00
Volker Lendecke
a6a722b5ba
libwbclient: CID 2199 -- NULL pointer return
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Tue Mar 15 12:08:48 CET 2011 on sn-devel-104
2011-03-15 12:08:47 +01:00
Volker Lendecke
cdb9e4b8fe
libwbclient: Add some input check
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Mar 10 11:10:30 CET 2011 on sn-devel-104
2011-03-10 11:10:30 +01:00
Volker Lendecke
c22151ea3a
libwbclient: Remove a pointless check
2011-03-10 10:25:19 +01:00
Volker Lendecke
85ee3360e1
wbinfo: Use wbcSidToStringBuf
2011-03-05 14:29:33 +01:00
Volker Lendecke
d34092e919
wbinfo: Fix a debug message
2011-03-05 14:29:33 +01:00
Volker Lendecke
e0fae3d494
pam_winbind: Use wbcSidToStringBuf
2011-03-05 14:29:32 +01:00
Volker Lendecke
7ffa7e4bca
libwbclient: Use wbcSidToStringBuf
2011-03-05 14:29:32 +01:00
Volker Lendecke
afb6752fa7
libwbclient: Add wbcSidToStringBuf
2011-03-05 14:29:32 +01:00
Volker Lendecke
181b23ceed
nsswitch: wbcFreeMemory deals fine with NULL
2011-03-05 14:29:32 +01:00
Volker Lendecke
8635a3834a
s3: Attempt to fix the build on IRIX
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Mar 2 11:33:05 CET 2011 on sn-devel-104
2011-03-02 11:33:04 +01:00
Volker Lendecke
c1bc916507
nsswitch: Eliminate select from wb_common
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Feb 28 17:26:18 CET 2011 on sn-devel-104
2011-02-28 17:26:18 +01:00
Günther Deschner
9154f0b451
nsswitch: make libwbclient a public library again.
...
Guenther
2011-02-18 15:40:59 +01:00
Andrew Bartlett
1ad8e5229f
lib/util/charset Add back setlocale(), but only when called from binaries
...
When called from a library, we don't want to call this, as we may
overwrite some of our calling program's context.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Feb 18 09:29:35 CET 2011 on sn-devel-104
2011-02-18 09:29:35 +01:00
Andrew Tridgell
a493bf9103
nsswitch: depend on dl
...
The previous merge in this area didn't preserve the 'dl' depedency,
which may be required on some platforms.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-18 17:00:34 +11:00
Günther Deschner
bc83400d81
nsswitch: make wb_reqtrans a common subsystem.
...
Guenther
2011-02-17 00:52:42 +01:00
Günther Deschner
743b13b8e0
s3-waf: make most of the nsswitch common.
...
Guenther
2011-02-17 00:52:42 +01:00
Günther Deschner
9867b7bf34
s4-waf: move wbinfo buildrule to winbind.
...
Will be moved back later, once we have a more common samba-util.so
Guenther
2011-02-17 00:52:16 +01:00
Christian Ambach
d62aa577c3
nsswitch: fix a segfault in the krb5 locator plugin
...
after the number of retries was exceeded, the loop did not
bail out correctly with an error and went on using a null pointer
2011-02-10 17:01:18 +01:00
Volker Lendecke
831974a762
s3: Slightly simplify winbind_write_sock
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Feb 10 17:00:46 CET 2011 on sn-devel-104
2011-02-10 17:00:46 +01:00
Michael Adam
6d3625de67
libwbclient: doxygen: mark wbcSetGidHwm deprecated
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Feb 10 14:42:24 CET 2011 on sn-devel-104
2011-02-10 14:42:24 +01:00
Michael Adam
3c6ae6d4d7
libwbclient: doxygen: mark wbcSetUidHwm deprecated
2011-02-10 13:57:32 +01:00
Michael Adam
37575560bf
libwbclient: doxygen: mark wbcRemoveGidMapping deprecated
2011-02-10 13:57:32 +01:00
Michael Adam
7494724b84
libwbclient: doxygen: mark wbcRemoveUidMapping deprecated
2011-02-10 13:57:32 +01:00
Michael Adam
d75ad33598
libwbclient: doxygen: mark wbcSetGidMapping deprecated
2011-02-10 13:57:32 +01:00
Michael Adam
cb5e685d54
libwbclient: doxygen: mark wbcSetUidMapping deprecated
2011-02-10 13:57:32 +01:00
Michael Adam
4242d633d8
Revert "wbinfo: remove --set-uid-mapping - winbindd does not implement that any more."
...
This reverts commit 0e90d01d53
.
Undo the library version bump.
2011-02-10 13:57:32 +01:00
Michael Adam
70ebfc16b4
Revert "wbinfo: remove --set-gid-mapping - winbindd does not implement that any more."
...
This reverts commit 9de1fd4352
.
Undo the library version bump.
2011-02-10 13:57:32 +01:00
Michael Adam
71ce276c12
Revert "wbinfo: remove --remove-uid-mapping - winbindd does not implement that any more."
...
This reverts commit 36e2baa8da
.
Undo the library version bump.
2011-02-10 13:57:32 +01:00
Michael Adam
1ea1043f8d
Revert "wbinfo: remove --remove-gid-mapping - winbindd does not implement that any more."
...
This reverts commit 48ad64aa78
.
Undo the library version bump.
2011-02-10 13:57:32 +01:00
Michael Adam
0def826ec5
Revert "libwbclient: remove two unused defines"
...
This reverts commit 58bf6f9ff0
.
Undo the library version bump.
2011-02-10 13:57:32 +01:00
Michael Adam
7dca8bcbb9
Revert "libwbclient: remove wbcSetUidMapping() - not implemented any more"
...
This reverts commit 25a0dc44f7
.
Undo the library version bump.
2011-02-10 13:57:32 +01:00
Michael Adam
1f4a06e64f
Revert "libwbclient: remove wbcSetGidMapping() - not implemented any more"
...
This reverts commit 52e1be2139
.
Undo the library version bump.
2011-02-10 13:57:32 +01:00
Michael Adam
ecbb223989
Revert "libwbclient: remove wbcRemoveUidMapping() - not implemented any more"
...
This reverts commit 1ed5961df2
.
Undo the library version bump.
2011-02-10 13:57:32 +01:00
Michael Adam
75b2a2f999
Revert "libwbclient: remove wbcRemoveGidMapping() - not implemented any more"
...
This reverts commit 393c866c51
.
Undo the library version bump.
2011-02-10 13:57:32 +01:00