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

399 Commits

Author SHA1 Message Date
Günther Deschner
7ff7eb0b52 s3-build: only include nsswitch header where needed.
Guenther
2010-08-26 00:20:28 +02:00
Günther Deschner
d55e7e52f1 s4-waf: try to fix the s4 wbinfo build dependencies.
Guenther
2010-08-24 03:04:41 +02:00
Michael Adam
ccfe40c27f s3:winbind: increase interface version after removing calls
Michael
2010-08-14 02:10:35 +02:00
Michael Adam
3b56f7f6b5 s3:winbind: remove the method REMOVE_MAPPING from winbind's API
Michael
2010-08-14 02:10:34 +02:00
Michael Adam
474020b1ae s3:winbind: remove the method SET_MAPPING from winbind's API
Michael
2010-08-14 02:10:33 +02:00
Michael Adam
1ac8bf4ea8 libwbclient: unimplement wbcRemoveGidMapping()
Michael
2010-08-14 02:10:33 +02:00
Michael Adam
89100cb509 libwbclient: unimplement wbcRemoveUidMapping()
Michael
2010-08-14 02:10:32 +02:00
Michael Adam
788123ec2e libwbclient: unimplement wbcSetGidMapping()
Michael
2010-08-14 02:10:32 +02:00
Michael Adam
2e65703508 libwbclient: unimplement wbcSetUidMapping()
Michael
2010-08-14 02:10:32 +02:00
Michael Adam
66e67c1bad s3:winbind: remove SET_HWM from winbind's API. 2010-08-14 02:10:31 +02:00
Michael Adam
ec33a624a3 libwbclient: unimplement wbcSetGidHwm()
Michael
2010-08-14 02:10:31 +02:00
Michael Adam
e09a269bcc libwbclient: unimplement wbcSetUidHwm()
Michael
2010-08-14 02:10:31 +02:00
Andreas Schneider
ce2a086119 s3-popt: Only include popt-common.h when needed. 2010-08-05 12:08:31 +02:00
Volker Lendecke
bd54969d9b pam_winbind: Fix shadowing a global on FreeBSD
FreeBSD defines a function pam_error()
2010-07-17 21:48:35 +02:00
Matthieu Patou
b7a1dd6980 s4 pam_winbind: don't build if pam header are not installed 2010-07-17 21:46:04 +04:00
Matthieu Patou
dbbfad8286 s4-waf: add the missing bits for builing nss_winbind and pam_winbind
This is something that was not picked up during the migration to waf
2010-07-17 18:05:12 +04:00
Andrew Tridgell
6b266b85cf s4-loadparm: 2nd half of lp_ to lpcfg_ conversion
this converts all callers that use the Samba4 loadparm lp_ calling
convention to use the lpcfg_ prefix.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-16 18:24:27 +10:00
Günther Deschner
309ad2b08f s4-smbtorture: skip wbcChangeUserPassword test when no oldpass is set in environment.
Guenther
2010-07-08 15:59:44 +02:00
Volker Lendecke
e17ce247a3 wbinfo: Fix error messages 2010-07-03 22:42:52 +02:00
Andreas Schneider
f324036e76 s3-winbind: Make sure we crash if domain is really not found.
Found by clang-analyzer.
2010-06-29 11:12:12 +02:00
Andreas Schneider
790d01cb2e wbinfo: Document the deprecated sequence option correctly.
I didn't find a way in popt to hide it.
2010-06-23 11:01:58 +02:00
Björn Jacke
a8c051b2f9 s3: readd h_errno struct member but rename it
as pointed out by metze this is a structure of fixed size, which should not be
changed.
2010-06-10 23:22:49 +02:00
Björn Jacke
ec94efb79d s3: fix build on HP-UX
this struct member h_errno is not used in the HP-UX code paths, it was just
there because Solaris has it, too. As h_errno is a function call macro on HP-UX
when thread support is enabled we run into trouble here. Just commenting it out
should be okay as we don't use it anyway.
2010-06-10 17:24:18 +02:00
Günther Deschner
8a4525d9fa waf: fix the build of nsswitch libwbclient.
Guenther
2010-05-20 23:40:30 +02:00
Andrew Tridgell
419873f2ee s3-waf: All sorts of nasty hacks to finally get smbd to build/link
Pair-Programmed-With: Kai Blin <kai@samba.org>
2010-05-20 22:16:13 +02:00
Kai Blin
765e9c7c67 wbinfo: Add better libwbclient error reporting 2010-05-17 10:50:45 +02:00
Volker Lendecke
aa8d91ae8e libwbclient: Fix a fd-leak at dlclose-time
__attribute__((destructor)) makes winbind_close_sock() being called at
dlclose() time.

Found while testing apache on Linux with mod_auth_pam.

Other platforms will have to find a different fix. One possibility would be to
always close the socket after each operation, but this badly sucks
performance-wise.
2010-05-10 14:11:14 +02:00
Andreas Schneider
b4c46bd7df libwbclient: Fixed doxygen errors. 2010-05-05 15:36:10 +02:00
Volker Lendecke
d61b07253b libwbclient: Talloc is no longer used 2010-04-25 10:16:11 +02:00
Volker Lendecke
4c7cc8bb63 Revert "nsswitch: Fix a memleak in wbinfo"
This reverts commit a97f2a0a9c.

This was not a memleak, it was a valgrind false positive. We store "details" in
a static.
2010-04-24 12:41:47 +02:00
Volker Lendecke
328ca041e0 libwbclient: Test WBC_CHANGE_PASSWORD_LEVEL_RESPONSE 2010-04-23 23:41:05 +02:00
Volker Lendecke
03115efae8 libwbclient: Actually copy something in wbcChangeUserPasswordEx
The length argument for memcpy was initialized to 0 and not initialized
2010-04-23 23:41:04 +02:00
Volker Lendecke
7574347e68 libwbclient: Remove some pointless BAIL_ON_WBC_ERROR macro calls 2010-04-23 23:41:04 +02:00
Volker Lendecke
ba537079cf libwbclient: wbcFreeMemory deals fine with a NULL pointer 2010-04-19 16:31:03 +02:00
Volker Lendecke
89bbc41d02 libwbclient: Fix wbcListGroups against too small num_entries
Thanks for the s4 winbind sending 0 here and Tridge to point it out to me :-)
2010-04-19 16:31:02 +02:00
Volker Lendecke
6d898b45a3 libwbclient: Fix wbcListUsers against too small num_entries
Thanks for the s4 winbind sending 0 here and Tridge to point it out to me :-)
2010-04-19 16:31:02 +02:00
Volker Lendecke
c04ce964e9 nsswitch: Add wbinfo --pam-logon
This does a wbcLogonUser with credential caching
2010-04-19 14:27:24 +02:00
Volker Lendecke
76972533da libwbclient does not need talloc_free anymore 2010-04-19 14:27:24 +02:00
Volker Lendecke
7072cc0c9d libwbclient: Make wbcListTrusts not use talloc 2010-04-19 14:27:23 +02:00
Volker Lendecke
d582caa175 libwbclient: Make wbc_create_error_info not use talloc 2010-04-19 14:27:23 +02:00
Volker Lendecke
f4c8f5146c libwbclient: Make wbcCredentialCache not use talloc 2010-04-19 14:27:23 +02:00
Volker Lendecke
802876af3b libwbclient: Make wbcAuthenticateUserEx not use talloc 2010-04-19 14:27:23 +02:00
Volker Lendecke
406e55fafb libwbclient: Make wbc_create_logon_info not use talloc 2010-04-19 14:27:23 +02:00
Volker Lendecke
d36829c108 libwbclient: Make wbc_create_auth_info not use talloc 2010-04-19 14:27:22 +02:00
Volker Lendecke
1ecdff2bf8 libwbclient: Make wbc_create_password_policy_info not use talloc 2010-04-19 14:27:22 +02:00
Volker Lendecke
ac8860d83d libwbclient: Test wbcGetGroups 2010-04-19 14:27:22 +02:00
Volker Lendecke
fc2cca5c28 libwbclient: Make wbcGetGroups not use talloc 2010-04-19 14:27:21 +02:00
Volker Lendecke
f6a34cb0e0 libwbclient: Make wbc_create_domain_controller_info_ex not use talloc 2010-04-19 14:27:21 +02:00
Volker Lendecke
d959fec39e libwbclient: Make wbcLookupDomainController not use talloc 2010-04-19 14:27:21 +02:00
Volker Lendecke
df831df666 libwbclient: Make wbcLookupUserSids not use talloc 2010-04-19 14:27:20 +02:00
Volker Lendecke
3aaa07afea libwbclient: Test wbcChangeUserPassword 2010-04-19 14:27:20 +02:00
Volker Lendecke
496c459388 libwbclient: Abstract out test_wbc_authenticate_user for reuse 2010-04-19 14:27:20 +02:00
Volker Lendecke
fddef8fd0a libwbclient: Test wbcLogonUser 2010-04-19 14:27:19 +02:00
Volker Lendecke
8869480f01 libwbclient: Make wbcAddNamedBlob not use talloc 2010-04-19 14:27:19 +02:00
Volker Lendecke
8ebb999b4a libwbclient: Make wbcResolveWinsByIP not use talloc 2010-04-19 14:27:19 +02:00
Volker Lendecke
1637be5c55 libwbclient: Make wbcResolveWinsByName not use talloc 2010-04-19 14:27:19 +02:00
Volker Lendecke
f3e87ecd2c libwbclient: Make wbcDomainInfo not use talloc 2010-04-19 14:27:19 +02:00
Volker Lendecke
7f454c3078 libwbclient: Make wbcInterfaceDetails not use talloc 2010-04-19 14:27:19 +02:00
Volker Lendecke
b62e57cec2 libwbclient: Test wbcAuthenticateUser[Ex] 2010-04-19 14:27:18 +02:00
Volker Lendecke
77c0b015c7 libwbclient: Make _SID_COMPOSE a function instead of a macro 2010-04-19 14:27:18 +02:00
Volker Lendecke
b828985aa1 libwbclient: Make wbcGetDisplayName not use talloc 2010-04-19 14:27:18 +02:00
Volker Lendecke
ae3edf85d4 libwbclient: Test wbcGetDisplayName 2010-04-19 14:27:18 +02:00
Volker Lendecke
8f3ab439f3 libwbclient: Make wbcListGroups not use talloc 2010-04-19 14:27:18 +02:00
Volker Lendecke
1152cba5d2 libwbclient: Make wbcListUsers not use talloc 2010-04-19 14:27:18 +02:00
Volker Lendecke
cafba3d7a7 winbindd: Fill in num_entries where available
The server implementation of WINBINDD_LIST_USERS, WINBINDD_LIST_GROUPS and
WINBINDD_LIST_TRUSTDOM knows the number of entries returned.

Bump up the version number so that a newer lib does not rely on something an
older winbind does not do.
2010-04-19 14:27:18 +02:00
Volker Lendecke
e80d0ecf8b libwbclient: Make wbcGetSidAliases not use talloc 2010-04-19 14:27:18 +02:00
Volker Lendecke
9e353a917b libwbclient: Test wbcGetSidAliases 2010-04-19 14:27:17 +02:00
Volker Lendecke
4f5100bcb2 libwbclient: Simplify test_wbc_domain_info a bit 2010-04-19 14:27:17 +02:00
Volker Lendecke
679e7ef6e6 libwbclient: Fix some pointless macro calls 2010-04-19 14:27:17 +02:00
Volker Lendecke
3d3b84bdec libwbclient: Take -21 into account in length guessing 2010-04-19 14:27:17 +02:00
Volker Lendecke
d29a5e69f4 libwbclient: Fix some pointless macro calls 2010-04-19 14:27:17 +02:00
Volker Lendecke
4f88b7015d libwbclient: Make wbcLookupRids not use talloc 2010-04-19 14:27:17 +02:00
Volker Lendecke
ab892389db libwbclient: Add wbcAllocateStringArray 2010-04-19 14:27:17 +02:00
Volker Lendecke
250bea02b5 libwbclient: Test wbcLookupRids 2010-04-19 14:27:17 +02:00
Volker Lendecke
0a966980f4 libwbclient: Make wbcLookupSid not use talloc 2010-04-19 14:27:16 +02:00
Volker Lendecke
a0162303c6 libwbclient: Add wbcStrDup 2010-04-19 14:27:16 +02:00
Volker Lendecke
ed1981db05 libwbclient: Convert wbcSidToString to not use talloc 2010-04-19 14:27:16 +02:00
Volker Lendecke
b75106b2ed libwbclient: Make copy_group_entry not use talloc 2010-04-19 14:27:16 +02:00
Volker Lendecke
041be88bd0 libwbclient: Make copy_passwd_entry not use talloc 2010-04-19 14:27:16 +02:00
Volker Lendecke
20011f4681 libwbclient: Make wbcGuidToString not use talloc 2010-04-19 14:27:16 +02:00
Volker Lendecke
769997786c libwbclient: Make wbcLibraryDetails not use talloc 2010-04-19 14:27:16 +02:00
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
Kai Blin
33bbe1cafd libwbclient: Add wbcInterfaceDetails_send/recv 2010-02-11 23:56:33 +01:00
Kai Blin
861ef367c8 libwbclient: Add wbcDomainInfo_send/recv calls 2010-02-11 23:56:33 +01:00
Kai Blin
99c0f569f9 libwbclient: Add wbcDomainName_send/recv call 2010-02-11 23:56:33 +01:00
Kai Blin
7cb070f2b3 libwbclient: Add wbcNetbiosName_send/recv calls 2010-02-11 23:56:33 +01:00
Kai Blin
fd6b145793 libwbclient: Add async wbcInfo_send()/wbcInfo_recv() calls 2010-02-11 23:56:33 +01:00
Kai Blin
a0895222be libwbclient: add wbcInterfaceVersion send/recv calls 2010-02-11 23:56:32 +01:00
Kai Blin
1ca727420a libwbclient: torture-test wbcPing async functions. 2010-02-11 23:56:32 +01:00
Kai Blin
3204113efe libwbclient: Add async wbcPing_send/_recv 2010-02-11 23:56:32 +01:00
Kai Blin
f9d041ccd3 libwbclient: Zero out context on initialization
This prevents a segfault when using wbcDebug without prior call to wbcSetDebug
2010-02-11 23:53:36 +01:00
Volker Lendecke
e2ddda3289 libwbclient: wbc_create_logon_info is always called with mem_ctx==NULL 2010-02-07 12:29:24 +01:00
Volker Lendecke
2607dc5ee8 libwbclient: wbc_create_password_policy_info is always called with mem_ctx==NULL 2010-02-07 12:29:24 +01:00
Volker Lendecke
1b2aad29a8 libwbclient: wbc_create_error_info is always called with mem_ctx==NULL 2010-02-07 12:29:24 +01:00
Volker Lendecke
65710dae84 pam_winbind: Remove a nested if-statement. Bo, please check! 2010-02-06 12:57:32 +01:00
Volker Lendecke
8cb6f7ec1b pam_winbind: Use strchr instead of strstr for a single character 2010-02-06 12:57:32 +01:00
Bo Yang
913a9f4e42 s3: Fix malformed require_membership_of_sid.
Signed-off-by: Bo Yang <boyang@samba.org>
2010-02-07 14:55:25 +08:00
Matthias Dieter Wallnöfer
a51d750652 NSS wrapper - add dependency to "nsstest"
The code part makes use of the "NSS wrapper" if it is enabled. Surprisingly
the build process doesn't break with the missing dependency on more recent
systems. But with an older CentOS 4 installation it has been broken.
This patch should fix the problem on older distributions while keep the build
running on newer ones.
2010-02-05 19:47:26 +01:00
Günther Deschner
b5d4726316 s4-smbtorture: test wbcResolveWinsByName/wbcResolveWinsByIP in WINBIND-WBCLIENT testsuite.
Guenther
2010-01-25 11:20:06 +01:00
Günther Deschner
e16e75a4f0 s4-smbtorture: add test for wbcPingDc to WINBIND-WBCLIENT testsuite.
Volker, please check, you know best how this interface is designed :-)

Guenther
2010-01-25 11:20:06 +01:00
Volker Lendecke
e879b50b32 libwbclient: Actually implement wbcCredentialCache() 2010-01-24 20:32:16 +01:00
Volker Lendecke
6ba9bf004f s3: Add the session key to the ccache_ntlm_auth response 2010-01-24 20:32:16 +01:00
Volker Lendecke
7d18d058a1 s3: Add wbinfo --ccache-save
With this command you can give winbind your password for later use by
the automatic ntlm_auth
2010-01-24 20:32:16 +01:00
Volker Lendecke
96b12e0d59 libwbclient: Use winbindd_free_response() 2010-01-24 14:52:33 +01:00
Volker Lendecke
5a313731f3 libwbclient: Remove a pointless talloc_strdup 2010-01-24 14:52:33 +01:00
Volker Lendecke
756444566f nsswitch: Move nss_err_str to its only caller 2010-01-23 19:14:50 +01:00
Volker Lendecke
c821be415b nsswitch: Make some functions static 2010-01-23 19:14:50 +01:00
Volker Lendecke
6ada1f250b libwbclient: Remove a pointless check
We have dereferenced "blobs" before
2010-01-03 11:38:22 +01:00
Volker Lendecke
9b6b01aab6 s3:winbind: Add a lower-cost alternative to wbinfo -t: wbinfo --ping-dc
This just does a NULL RPC call through an existing NETLOGON connection. If
someone knows an operation that "just works" and does not return NOT_SUPPORTED,
please tell me :-)
2009-12-21 23:23:52 +01:00
Bo Yang
c7e3a2dc31 s3: check for PAM_RADIO_TYPE.
Signed-off-by: Bo Yang <boyang@samba.org>
2009-12-10 19:29:24 +08:00
Bo Yang
b386c3311d s3: Fix build on non-linux platform.
Signed-off-by: Bo Yang <boyang@samba.org>
2009-12-10 17:22:25 +08:00
Bo Yang
f7723293a0 s3: Give the user a chance to change password when password will expire soon.
Signed-off-by: Bo Yang <boyang@samba.org>
2009-12-10 14:38:28 +08:00
Günther Deschner
5b3a32be97 s3-kerberos: next step to resolve Bug #6929: build with recent heimdal.
Based on patch from Allan <allan@archlinux.org>.

Also should fix the FreeBSD build on the buildfarm.

Guenther
2009-11-26 10:15:45 +01:00
Günther Deschner
51864219cc nsswitch: fix compile of winbind_krb5_locator with recent Heimdal versions.
Guenther
2009-11-25 17:58:52 +01:00
Björn Jacke
5377d5f894 pam_winbind: fix a printf type mismatch warning 2009-11-14 01:54:53 +01:00
Bo Yang
b9a3f1dd85 s3: Fix crash in pam_winbind, another reference to freed memory.
Signed-off-by: Bo Yang <boyang@samba.org>
2009-10-24 09:36:23 +08:00
Günther Deschner
10bd521849 wbinfo: use wbcLookupDomainControllerEx for wbinfo --dsgetdcname.
Guenther
2009-10-19 18:44:51 +02:00
Günther Deschner
110a40d4bc libwbclient: fix wbcLookupDomainController().
Found by WINBIND-WBCLIENT torture test.

Guenther
2009-10-19 18:44:51 +02:00
Günther Deschner
71cfbf958c s4-smbtorture: test wbcLookupDomainController{Ex} in WINBIND-WBCLIENT.
Guenther
2009-10-19 18:44:51 +02:00
Bo Yang
31f1a36901 s3: Don't fail authentication when one or some group of require-membership-of is invalid.
Signed-off-by: Bo Yang <boyang@samba.org>
2009-10-20 02:05:58 +08:00
Günther Deschner
20c07674f6 nsswitch: increase libwbclient version after adding wbcChangeTrustCredentials().
Guenther
2009-10-16 16:08:55 +02:00
Günther Deschner
c2966a0766 s4-smbtorture: test wbcLookupUserSids in WINBIND-WBCLIENT as well.
Guenther
2009-10-16 14:54:57 +02:00
Günther Deschner
246597cb0d s4-smbtorture: test wbcGuidToString and friends as well in WINBIND-WBCLIENT.
Guenther
2009-10-16 14:54:57 +02:00
Günther Deschner
612deb2699 s4-smbtorture: add very basic libwbclient testsuite.
Guenther
2009-10-16 02:04:29 +02:00
Jeremy Allison
1c1a883bd0 Fix the build, missing ->.
Jeremy.
2009-10-14 12:36:02 -07:00
Bo Yang
8e91c40574 s3: Fix reference to freed memory in pam_winbind.
Signed-off-by: Bo Yang <boyang@samba.org>
2009-10-15 04:31:26 +08:00
Günther Deschner
0a468fbe36 nsswitch: add wbinfo -c (change trust account passwords).
Guenther
2009-10-13 12:42:44 +02:00
Günther Deschner
74948c979a libwbclient: add wbcChangeTrustCredentials.
Guenther
2009-10-13 12:42:44 +02:00
Matthias Dieter Wallnöfer
926a935a61 s4:wbclient.h - add compatibility constants
This is the result of a discussion on samba-technical on how to deal best with
existing programs which don't support my changes in the interface yet. Metze
pointed out this "defines" as a possibility and simo and I agreed.
2009-10-12 16:28:34 +02:00
Volker Lendecke
5aeb954ba9 s3: Fix a memleak reported by dmarkey 2009-10-09 23:00:08 +02:00
Simo Sorce
99cdbe3571 Fix builds with external talloc
Make sure we do not reference our internal talloc directly.
Let configure define what talloc.h file to use so that builds that use an
extrenal talloc do not include 2 different versions of the talloc header.
2009-10-09 13:14:08 -04:00
Matthias Dieter Wallnöfer
1e2f455b4a winbind: adapt the new reject constants also there
Please note: in the past the value "0" was misinterpreted as other error. This
isn't true. "0" means no error.
Therefore a solution for this one has to found.
2009-10-08 11:01:22 +02:00
Günther Deschner
7b3501200c wbinfo: allow to check trusts via "wbinfo -t --domain DOMAINNAME".
Guenther
2009-10-07 11:18:11 +02:00
Günther Deschner
2df47b0a54 libwbclient: implement secure channel verification for specific domains in wbcCheckTrustCredentials().
Guenther
2009-10-07 11:18:03 +02:00
Bo Yang
89ed2af69d s3: Don't overwrite password in pam_winbind, subsequent pam modules
might use the old password and new password.

Signed-off-by: Bo Yang <boyang@samba.org>
2009-09-16 22:03:57 +08:00
Björn Jacke
54831cc1a5 nss_winbind: remove unused variable 2009-09-15 03:42:30 +02:00
Matthieu Patou
344fb71cb8 s4: Pass WINBINDD_SOCKET_DIR var in order to overide the location of the Winbind socket 2009-09-11 07:29:57 +10:00
Günther Deschner
b35c627b92 wbinfo: fix various valgrind warnings and an invalid free.
Kai, please check.

Guenther
2009-09-04 00:04:49 +02:00
Günther Deschner
9264f48914 wbclient: Fix Bug #6680: always activate handling of large (> 256 byte) ntlmv2
blobs in wbcAuthenticateUserEx().

Guenther
2009-09-01 16:13:57 +02:00
Volker Lendecke
bb1f56a814 s3:libwbclient: Fix bug 6349, initialize domain info struct 2009-08-30 11:40:59 +02:00
Kai Blin
fd2feab8f0 wbinfo: Reduce test noise in the wbinfo blackbox test
With the switch to libwbclient the previously stubbed out
--trusted-domains and --all-domains calls now fail. Set them to knownfail.

The previously knownfail -D test is now stubbed out, test it now.

This does not fix the issues with wbinfo -a and wbinfo -K not working on the
build farm. I have no idea whatsoever what is causing this, as those are broken
on my local machine even without my changes.
2009-08-18 21:42:37 +02:00
Kai Blin
bc0e0a4c69 wbinfo: Use one codebase for Samba3 and Samba4.
There can be only one....wbinfo that is.
2009-08-18 20:26:05 +02:00
Kai Blin
19855ca2bb s3 wbinfo: Only call afs_settoken_str if compiled with WITH_FAKE_KASERVER 2009-08-18 19:53:41 +02:00
Kai Blin
182c667b17 s3 wbinfo: use wbcSidTypeString instead of sid_type_lookup 2009-08-18 19:53:41 +02:00
Kai Blin
a7128709d2 libwbclient: Add wbcSidTypeString function. 2009-08-18 19:53:41 +02:00
Kai Blin
afb8f8eaa5 s3 wbinfo: Remove unused functions, use C99-types 2009-08-18 19:53:40 +02:00
Kai Blin
ab818cdf8b s3 wbinfo: Explicitly include popt header, remove unused common options. 2009-08-18 19:53:40 +02:00
Kai Blin
6d4fd3e0a2 s3 wbinfo: Use talloc_strdup instead of SMB_STRDUP 2009-08-18 19:53:40 +02:00
Kai Blin
0dae6f541f s3 wbinfo: Don't use global_myname() 2009-08-18 19:53:39 +02:00
Kai Blin
b6ea2ece09 s3 wbinfo: Avoid ADD_TO_ARRAY macro. 2009-08-18 19:53:39 +02:00
Kai Blin
90b6e41b83 s3 wbinfo: Use uint32_t instead of uint32 2009-08-18 19:53:39 +02:00