1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

1890 Commits

Author SHA1 Message Date
Günther Deschner
1f0cd6a744 wbinfo: add change-user-password command.
Guenther
(This used to be commit e572ede9995a66ae452ab25018b8df16101a2c2a)
2008-08-29 17:35:23 +02:00
Günther Deschner
bb1d3a73c4 libwbclient: add wbcChangeUserPassword and wbcChangeUserPasswordEx.
Guenther
(This used to be commit 62e7b4aa32051bce34c890cb41270e5fe31111ca)
2008-08-29 17:34:11 +02:00
David Leonard
9f93d4e5e1 Fix bug 4516, no IPv6 on Solaris 2.6.
(This used to be commit b5d0f751e4bf19c2ad306ebb3baeb5e9e83e49ee)
2008-08-25 15:17:53 -07:00
Gerald (Jerry) Carter
cf710f0464 nss_winbind: When returning NSS_UNAVAIL, squash errno to ENOENT
According to the GNU libc nss guide, we should always set
errno to ENOENT when returning NSS_UNAVAIL.

http://www.gnu.org/software/libtool/manual/libc/NSS-Modules-Interface.html#NSS-Modules-Interface

At least the MQ Series message queing service that runs
on WebSphere will fail if you return any other errno in this case.
(This used to be commit ee26664602445fa7798e2061f6bcbef0756d6528)
2008-08-20 13:00:40 -05:00
Günther Deschner
bded7eb2af pam_winbind: some doxygen fixes.
Guenther
(This used to be commit f2a2ed315e393353110aa7760b4eca4f1f49ca21)
2008-08-19 16:19:54 +02:00
Günther Deschner
a11e310799 wbinfo: use wbinfo_prompt_pass() everywhere.
Guenther
(This used to be commit 687ef28874eb311b3e3919c3a38a22e5186d4c1b)
2008-08-19 15:33:45 +02:00
Günther Deschner
833af26eeb wbinfo: add wbinfo_prompt_pass.
Guenther
(This used to be commit 7cf6ed68236e7dd64657cb1087a5a687d6f59ad1)
2008-08-19 15:33:36 +02:00
Günther Deschner
1cef895f4b pam_winbind: use pam error string function to display result.
Guenther
(This used to be commit 8504a92ac55d6936df051be66207a59a76bf32a3)
2008-08-19 15:23:46 +02:00
Günther Deschner
299e6c7996 pam_winbind: add _pam_error_code_str().
Guenther
(This used to be commit 693f90fd2394309ce40d3ca5fc007543058b342a)
2008-08-19 15:23:33 +02:00
Günther Deschner
5692bbf64b pam_winbind: use integer constants.
Guenther
(This used to be commit 8d19b2ceb131ca2a0fd983cdb4fd17acdad9c26e)
2008-08-19 15:20:44 +02:00
Günther Deschner
3ea5c185ad build: fix some no previous prototype warnings.
Guenther
(This used to be commit 51062534fd58d7a914a6bbac2e52bb44e71363b7)
2008-07-30 18:10:46 +02:00
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
Andreas Schneider
4cdc6b3b23 Remove trailing withespace from wbinfo -m which breaks gdm auth.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
(This used to be commit 12848e8eb91bf60551ada78e3430ee25142e366b)
2008-07-24 13:41:37 -07: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
Jeremy Allison
06b3a79d1f Allow authentication and memory credential refresh after password change from gdm/xdm. Patch from boyang <boyang@novell.com>.
Jeremy.
(This used to be commit 8cfc6afc7b4a6af9aea5f5a7cb5af7e3218c2d75)
2008-07-07 11:26:16 -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
Volker Lendecke
8349e02b0b Fix a memleak in wbcAuthenticateUserEx()
(cherry picked from commit 72b381689af9cae83ab08532cffd0188f2da4807)
(This used to be commit 20110ee5f181168dc1cbc08b7c22820d68204960)
2008-06-17 13:10:18 +02:00
Volker Lendecke
3fde7f5979 Fix an uninitialized variable found by the IBM checker
BAIL_ON_PTR_ERROR jumps to done: which will access extra_data before it's
initialized.

Stefan, please check!

Volker
(cherry picked from commit b59636f78d351ed6d52c4a9fdccdb7850388526c)
(This used to be commit 5663587e5e4703f9e3ff6d78d1f3248053ccd4c0)
2008-06-15 00:24:18 +02:00
Volker Lendecke
cd7d7e1e82 Fix group parsing in libwbclient's copy_group_entry()
This (also) fixes a flaw pointed out by the IBM checker. When verifying that I
found out that the parsing was not working as I would have expected it to.

Jerry, please check!
(cherry picked from commit c2c7790155ab02e1e351caf2bed192ce72913663)
(This used to be commit 26c05a52b73763dad5ad0525dab6e20014c3f8d6)
2008-06-15 00:17:27 +02:00
Günther Deschner
8e240c460b pam_winbind: Update cached creds during password change.
Fix is from Bo Yang @ Novell.

Thanks!
(This used to be commit e4eb9d347d14de8c9ba73b07f26fe8fd4f17eab5)
2008-06-11 09:52:56 +02:00
Volker Lendecke
7910caec2b Fix the compile on NetBSD -- missing prototypes
(cherry picked from commit 11236d266e3703eb3aca4b96e2ed9da76614ec12)
(This used to be commit d25408f83d03fae9d6b589b005db9a3af823e652)
2008-06-09 15:01:50 +02:00
Günther Deschner
f4e93883c9 pam_winbind: fix pam_sm_chauthtok for storing modified cached creds.
Thanks to Bo Yang for pointing this out.

Guenther
(This used to be commit 516a067016955938988ab37c777102a14b41e100)
2008-06-06 16:00:34 +02:00
Günther Deschner
b7f745b200 wbinfo: prompt for password when none has been given.
Guenther
(This used to be commit 7c1f36d84a4c5779ea86923be69e209d0c9c0943)
2008-05-27 16:48:03 +02:00
Günther Deschner
b7ef085072 libwbclient: fix typo.
Guenther
(This used to be commit 83c4a278dfefcef14a9640d319ddf5c7392cd16e)
2008-05-27 16:47:06 +02:00
Stefan Metzmacher
cfae28c268 libwbclient: add wbcLibraryDetails()
metze
(cherry picked from commit b68916328e935e61840cb03560ebeeee15bb2c6f)
(This used to be commit 196d9017627220786d8b726dc0d02e16e96c4c05)
2008-05-23 17:19:58 +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
Günther Deschner
f9c46dbcee Fix build warning.
Guenther
(This used to be commit e90a4ce3c24ab2a33e34da5a9052a3b3ec4db962)
2008-05-15 09:42:52 +02:00
coffeedude
9cd646c166 libwbclient: Add wbcLogoffUser() and wbcLookupDomainController().
Add new APIs calls for WINBINDD_PAM_LOGOFF and WINBINDD_DSGETDCNAME
ops.
(This used to be commit cb5e8f60ac3313aec726c01687a040e6e0e42c10)
2008-05-13 12:56:36 -05:00
Günther Deschner
8ce3f6b840 wins: fix null pointer crash in nss_wins module.
Guenther
(This used to be commit 5bf47ebf0fb9f7d94ed36bce6bcaa31b508009bd)
2008-05-07 10:39:21 +02:00
Gerald W. Carter
de154dcf92 Mark a domain offline in the wbcDomainInfo structure using the domain_flags.
Use the existing domain_flags fiueld in wbcDomainInfo to set a bit if the
domain is marked as offline by Winbind.
(This used to be commit 59cfba2c3d6d4594f08cbe3b7295ab36a7cfb044)
2008-04-23 08:47:50 -05:00
Gerald W. Carter
5984097e09 Rename WBC_DOMAIN_XXX domain flags to WBC_DOMINFO_DOMAIN_XXX
Better consistency with the othre classes of WBC_DOMINDO_XXX_YYYY flags.
(This used to be commit 1cb2305fc96be0c190621f7c86c0476e4ea1fff7)
2008-04-23 08:47:50 -05:00
Michael Adam
8caaf0dc43 libwbclient: change wbcResolveWinsByIP() to take char ** instead of const char **
Fix a compile warning. This seems the right thing since the data is created
by talloc_strdup...

Michael
(This used to be commit f81da8e8ed8e2d75c77bd8b5e7fdd7c53bab7e49)
2008-04-20 22:29:36 +02:00
Michael Adam
d7da0f57fa libwbclient: fix wbcResolveWinsByName() to take char * instead of const char **
This fixes a compile warning and seems the correct thing to me as
the returned data is talloc_strdup't, so not const anyways.

Michael
(This used to be commit 13cfa7f48a541a934a129fab0544cbf66029c4c7)
2008-04-20 22:29:36 +02:00
Gerald W. Carter
20104eef70 Remove unused variable from wbcCheckTrustCredentials().
(This used to be commit fea52dc46048ff869299267f7596b93a8c5c8b3d)
2008-04-17 18:09:08 +02:00
Gerald W. Carter
22c6a14ae4 Convert "wbinfo -m" to use wbcListTrusts() API call.
(This used to be commit 2fbe8437efe232b6f53af6fafed5995fe7e26820)
2008-04-17 18:07:18 +02:00
Gerald W. Carter
643bed203c Add wbcListTrusts() API call to libwbclient.so
(This used to be commit 5c454e77cf664fee65fcb03e5811764c92e73696)
2008-04-17 18:06:10 +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
b666ead6e4 wbinfo: use wbcCheckTrustCredentials()
metze
(This used to be commit 2cbe5a006a6df79c38f4aaa68d498cd6d5a34dba)
2008-04-17 00:32:03 +02:00
Stefan Metzmacher
2d0a36f0a5 libwbclient: add wbcCheckTrustCredentials()
This only accepts NULL as domain for now,
because winbindd doesn't support checking
trust passwords as a domain controller.

metze
(This used to be commit c084ccd70f42ce29ce24565969a9f440dde254e1)
2008-04-17 00:31:59 +02:00
Stefan Metzmacher
31b3a1fc3f wbinfo: use wbcResolveWinsByName() and wbcResolveWinsByIP()
metze
(This used to be commit a4f628d6c9e2a5761c048e268a29e1f5daae4180)
2008-04-17 00:25:00 +02:00
Stefan Metzmacher
3458b708d2 libwbclient: add wbcResolveWinsByName() and wbcResolveWinsByIP()
metze
(This used to be commit 57ba71140fbf6b4a5a917fa3248fa76536be883b)
2008-04-17 00:25:00 +02:00
Stefan Metzmacher
4313d7b6c2 nsswitch: remove unused nsswitch/wb_client.c
metze
(This used to be commit 2b236c7ace15b4408c31ed918b449d5a22e1769f)
2008-04-11 15:59:34 +02:00
Stefan Metzmacher
dc9569e45f libwbclient: add wbcSet[U|G]idMapping() and wbcSet[U|G]idHwm() functions
metze
(This used to be commit 364e146805bb74b46da4d3c187e9a684d4b99a01)
2008-04-11 15:59:33 +02:00
Björn Jacke
67be6b3af7 fix some extrasemi compile warnings
(This used to be commit cbdb79b7a1044945e515a294f487e4c1a9c91be5)
2008-04-10 08:55:57 +02:00
Volker Lendecke
4f715d1102 Fix an uninitialized variable
(This used to be commit 8b2d9ee8c54ed84f83fdecf04e656dd66b622abb)
2008-04-07 12:20:21 +02:00