Andrew Tridgell
b04b8b5610
wbclient: gr_mem can be NULL
...
if the structure was partly created and an error occurred, then don't
crash
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 21:09:18 +10:00
Andrew Tridgell
a163284491
wbclient: paranoid check for double free
...
added while tracking down a crash in the wbinfo blackbox test
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-09-16 21:09:17 +10:00
Andrew Tridgell
6d6158617c
nss-waf: use the right winbind pipe path
...
s4 uses a different location for the winbind pipe to s3
2010-09-11 22:32:43 +10:00
Volker Lendecke
8de2c15df3
s3: auth.krb5ccname and auth.unix_username are both fstrings
...
There's no point in checking for != NULL
2010-09-10 10:52:18 -07:00
Stefan Metzmacher
14ffb7d699
nsswitch/libwbclient: LIBWBCLIENT depends on LIBWINBIND-CLIENT
...
metze
2010-09-03 13:31:05 +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
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
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
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
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
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
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
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
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
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
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
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
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
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