svn commit: samba r12737 - in trunk/source/nsswitch: .
gd at samba.org
gd at samba.org
Fri Jan 6 10:30:03 GMT 2006
Author: gd
Date: 2006-01-06 10:30:02 +0000 (Fri, 06 Jan 2006)
New Revision: 12737
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=12737
Log:
Remove the chauthtok path using kerberos. XP doesn't use kerberos for
changing password in the "Change Password" dialogue anyway.
Guenther
Modified:
trunk/source/nsswitch/winbindd_pam.c
Changeset:
Modified: trunk/source/nsswitch/winbindd_pam.c
===================================================================
--- trunk/source/nsswitch/winbindd_pam.c 2006-01-06 10:27:20 UTC (rev 12736)
+++ trunk/source/nsswitch/winbindd_pam.c 2006-01-06 10:30:02 UTC (rev 12737)
@@ -1572,36 +1572,6 @@
oldpass = state->request.data.chauthtok.oldpass;
newpass = state->request.data.chauthtok.newpass;
-
- if (contact_domain->active_directory &&
- (state->request.flags & WBFLAG_PAM_KRB5)) {
-
- /* the error mapping is just too hard to get correct (at least at the moment) - Guenther */
- DEBUG(3,("winbindd_pam_chauthtok: password change over Kerberos is currently disabled;"
- "falling back to msrpc method\n"));
-
- goto chauthtok_rpc;
-#if 0
- ADS_STATUS status;
-
- status = kerberos_set_password(contact_domain->dcname, user,
- oldpass, user, newpass,
- 0);
-
- /* derive the resulting NT_STATUS code from the ADS_ERROR */
- result = krb5_to_nt_status(status.err.rc);
-
- if (!ADS_ERR_OK(status)) {
- DEBUG(0,("failed to set password using Kerberos: %s\n",
- nt_errstr(result)));
- }
-
- goto done;
-#endif
- }
-
-chauthtok_rpc:
-
/* Get sam handle */
result = cm_connect_sam(contact_domain, state->mem_ctx, &cli,
More information about the samba-cvs
mailing list