Author: metze
Date: 2007-07-27 07:19:36 +0000 (Fri, 27 Jul 2007)
New Revision: 24062

WebSVN: 
http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24062

Log:
fix logic for broken krb5 libs which always force
sign and seal...

metze
Modified:
   branches/SAMBA_3_2/source/libads/sasl.c


Changeset:
Modified: branches/SAMBA_3_2/source/libads/sasl.c
===================================================================
--- branches/SAMBA_3_2/source/libads/sasl.c     2007-07-27 06:31:12 UTC (rev 
24061)
+++ branches/SAMBA_3_2/source/libads/sasl.c     2007-07-27 07:19:36 UTC (rev 
24062)
@@ -486,7 +486,8 @@
                status = ADS_ERROR_NT(NT_STATUS_NOT_SUPPORTED);
                goto failed;
 
-       } else if (req_flags & GSS_C_INTEG_FLAG) {
+       } else if ((req_flags & GSS_C_INTEG_FLAG) &&
+                  !(ret_flags & GSS_C_INTEG_FLAG)) {
                /*
                 * here we wanted siging but didn't got it
                 * from the gssapi library

Reply via email to