1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

168 Commits

Author SHA1 Message Date
Volker Lendecke
f2a04a0ccb libwbclient: Add wbcAllocateMemory()
This prepares for removing libwbclient's talloc dependency. It is a
non-hierarchical "talloc-lite" that has destructors. It is necessary because we
have the catch-call wbcFreeMemory call. Individual wbcFreeXXX calls for the
different structures wbclient returns would have made this easier, but
wbcFreeMemory is the API we have to live with.
2010-04-19 14:27:16 +02:00
Andrew Tridgell
fdf4d3eed3 s4-waf: fixed WINBINDD_SOCKET_DIR for wb_common in s4
s4 uses a different path for the socket
2010-04-19 18:21:42 +10:00
Volker Lendecke
a97f2a0a9c nsswitch: Fix a memleak in wbinfo 2010-04-18 15:25:02 +02:00
Andrew Tridgell
211bf1ea17 s4-waf: removed the unused installdir= option to SAMBA_BINARY()
This was left over from the automatic conversion of the config.mk
files
2010-04-18 21:47:00 +10:00
Volker Lendecke
be813ff2d4 libwbclient: Re-Fix a bug that was fixed with e5741e27c4
> r21878: Fix a bug with smbd serving a windows terminal server: If winbind
> decides smbd to be idle it might happen that smbd needs to do a winbind
> operation (for example sid2name) as non-root. This then fails to get the
> privileged pipe. When later on on the same connection another authentication
> request comes in, we try to do the CRAP auth via the non-privileged pipe.
>
> This adds a winbindd_priv_request_response() request that kills the existing
> winbind pipe connection if it's not privileged.

The fix for this was lost during the conversion to libwbclient.

Thanks to Ira Cooper <samba@ira.wakeful.net> for pointing this out!

Volker
2010-04-13 13:30:53 +02:00
Volker Lendecke
fcab3d64f4 libwbclient: Remove a pointless variable 2010-04-13 13:28:39 +02:00
Stefan Metzmacher
2a727ef6e7 lib/replace/wscript: inline LIBREPLACE_EXT into 'replace' as the autoconf system does
metze
2010-04-12 12:31:14 +02:00
Kai Blin
da7294ae0d nsswitch/wbinfo: Fix the S4 header check 2010-04-11 22:39:27 +02:00
Volker Lendecke
1038a134ed libwbclient: Fix a memleak in wbcGetDisplayName 2010-04-10 17:05:38 +02:00
Volker Lendecke
27d3bdd36b libwbclient: Ensure correct 0-termination in wbcGetSidAliases 2010-04-10 17:05:38 +02:00
Volker Lendecke
a10f024083 libwbclient: Fix some memleaks in the tests 2010-04-09 13:15:05 +02:00
Andrew Tridgell
b690fedef5 s4-waf: removed the AUTOGENERATED markers
we won't be using the mk -> wscript generator again
2010-04-06 20:27:16 +10:00
Andrew Tridgell
3cc01226ec s4-waf: more places missing libreplace 2010-04-06 20:27:14 +10:00
Andrew Tridgell
b9aa63887c s4-waf: cleanup use of LIBPOPT vs popt dependency 2010-04-06 20:27:13 +10:00
Andrew Tridgell
f9eae32f4b s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them 2010-04-06 20:27:11 +10:00
Andrew Tridgell
9730166fd6 build: configure fixes for opensolaris 2010-04-06 20:27:01 +10:00
Andrew Tridgell
81d155af96 build: check libc first for several libraries 2010-04-06 20:26:56 +10:00
Andrew Tridgell
5aacacea67 build: check for pam headers 2010-04-06 20:26:55 +10:00
Andrew Tridgell
844acb2260 build: waf quicktest nearly works
Rewrote wafsamba using a new dependency handling system, and started
adding the waf test code
2010-04-06 20:26:48 +10:00
Andrew Tridgell
845e0cbe6f build: commit all the waf build files in the tree 2010-04-06 20:26:48 +10:00
Volker Lendecke
488fe76a22 libwbclient: Fix a memleak in wbcListTrusts 2010-04-04 23:22:52 +02:00
Volker Lendecke
50a625ce0e libwbclient: Fix memleaks in tests 2010-04-04 23:22:52 +02:00
Volker Lendecke
b1b723da6f libwbclient: Fix a memleak in wbcListTrusts 2010-04-04 23:22:52 +02:00
Volker Lendecke
9b1f9da436 libwbclient: Streamline result processing of wbcCredentialCache() 2010-04-04 12:51:24 +02:00
Volker Lendecke
b198283f1f libwbclient: Fix a memleak in wbcCredentialCache 2010-04-04 12:51:24 +02:00
Volker Lendecke
bbe07972e6 libwbclient: Both talloc_free and wbcFreeMemory deal with NULL
This is in line with the ANSI C standard definition of free(NULL)
2010-04-03 22:12:23 +02:00
Volker Lendecke
c1ccbfba21 s3: Add wbinfo --logoff 2010-04-02 20:45:09 +02:00
Volker Lendecke
c97d279037 s3: Remove some pointless break statements 2010-04-02 20:45:09 +02:00
Andrew Tridgell
fae84f98e3 libutil: moved the networking defines to util_net.h
These were causing thousands of warnings on solaris8
2010-03-26 17:36:02 +11:00
Volker Lendecke
09f270e748 s3: Fix bug 7202
Make sure _nss_wins_gethostbyname_r has a talloc stackframe available

Thanks to Sergey Tereschenko <serg.partizan@gmail.com> for reporting the bug!

Volker
2010-03-20 14:38:13 +01:00
Matthias Dieter Wallnöfer
5eeb1fc447 NSS:winbind_struct_protocol.h - fix typo 2010-03-13 12:58:58 +01:00
Matthieu Patou
d1e3898a05 s4: allow pam_winbind.so to be build on samba4
* Modify the nsswitch/config.m4 to add tests and build that will be put in configure by the autoconf/autoheader
  We test if there is pam headers and pam library to be able to build the pam module
  We add s4 build directive (that are normaly in standalone config.mk) this is due to the fact that we need
  to rely on path that are guessed during configure.
  Add tests not to build pam_winbind if pam dev files is not present

Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-11 13:31:38 +01:00
Matthieu Patou
5f2f4849e5 s4: Modify auth/config.m4 to move pam tests to nsswitch.m4 so that we tests things in one place
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-11 13:31:37 +01:00
Stefan Metzmacher
667e8d8fc6 nsswitch: build libnss_winbind.so with SOVERSION = 2
metze
2010-03-10 17:12:14 +01:00
Stefan Metzmacher
3d70a3f78d nsswitch: don't use socket_wrapper for winbind client code
metze
2010-03-10 17:12:13 +01:00
Stefan Metzmacher
0b4ad41973 nsswitch: build libnss_winbindd.so only for the non merged build
metze
2010-03-10 17:12:12 +01:00
Matthieu Patou
98bc10d0a8 s4:unittest Fix unittest to reflect that wbinfo -r no longer fail
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-03-09 17:20:31 +01:00
Bo Yang
ef0b4e4687 s3: Add i18n/l10n strings in pam_winbind.c coming from winbindd.
Signed-off-by: Bo Yang <boyang@samba.org>
2010-03-06 01:53:13 +08:00
Matthieu Patou
e0726d4d66 s4-build: fix SMB_LIBRARY and change its name so it didn't collide with s3 one
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-03 09:22:40 +01:00
Matthieu Patou
db6781833d nsswitch: libpam remove depedance on locale.h use directly LOCALEDIR
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-03 09:22:38 +01:00
Kai Blin
9848086aa8 libwbclient: Fix s4 build failure by fixing up includes.
Sorry about this, folks.
2010-02-13 17:55:01 +01:00
Kai Blin
b99d9f86e4 libwbclient: Separate out the async functions 2010-02-13 14:30:36 +01:00
Kai Blin
5d848053a7 libwbclient: Test wbcLookupName async functions 2010-02-11 23:56:35 +01:00
Kai Blin
cf968371ef libwbclient: Implement wbcLookupName_send/recv 2010-02-11 23:56:35 +01:00
Kai Blin
145f2c751b libwbclient: Implement wbcAuthenticateUserEx_send/recv 2010-02-11 23:56:35 +01:00
Kai Blin
749fb03971 libwbclient: Implement wbcLookupSid_send/recv 2010-02-11 23:56:34 +01:00
Kai Blin
57886720bb libwbclient: Implement wbcGidToSid_send/recv 2010-02-11 23:56:34 +01:00
Kai Blin
ada6e26d5e libwbclient: Implement wbcSidToGid_send/recv 2010-02-11 23:56:34 +01:00
Kai Blin
446b4aa17c libwbclient: Implement wbcUidToSid_send/recv 2010-02-11 23:56:34 +01:00
Kai Blin
4ff1906357 libwbclient: Implement wbcSidToUid_send/recv 2010-02-11 23:56:34 +01:00