Author: gd
Date: 2007-08-06 13:48:57 +0000 (Mon, 06 Aug 2007)
New Revision: 24251

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

Log:
Neverending fun:

Heimdal doesn't accept all OIDs and gss_import_name() fails with
GSS_S_BAD_NAMETYPE using this one. Use the GSS_KRB5_NT_PRINCIPAL_NAME OID
instead (which works with at least MIT 1.6.1 and Heimdal 1.0.1).

Guenther

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


Changeset:
Modified: branches/SAMBA_3_2/source/libads/sasl.c
===================================================================
--- branches/SAMBA_3_2/source/libads/sasl.c     2007-08-06 10:39:27 UTC (rev 
24250)
+++ branches/SAMBA_3_2/source/libads/sasl.c     2007-08-06 13:48:57 UTC (rev 
24251)
@@ -650,7 +650,7 @@
 #ifdef HAVE_GSSAPI
        gss_buffer_desc input_name;
        gss_OID_desc nt_principal = 
-       {10, CONST_DISCARD(char *, "\052\206\110\206\367\022\001\002\002\002")};
+       {10, CONST_DISCARD(char *, "\x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x01")};
        uint32 minor_status;
        int gss_rc;
 #endif

Modified: branches/SAMBA_3_2_0/source/libads/sasl.c
===================================================================
--- branches/SAMBA_3_2_0/source/libads/sasl.c   2007-08-06 10:39:27 UTC (rev 
24250)
+++ branches/SAMBA_3_2_0/source/libads/sasl.c   2007-08-06 13:48:57 UTC (rev 
24251)
@@ -650,7 +650,7 @@
 #ifdef HAVE_GSSAPI
        gss_buffer_desc input_name;
        gss_OID_desc nt_principal = 
-       {10, CONST_DISCARD(char *, "\052\206\110\206\367\022\001\002\002\002")};
+       {10, CONST_DISCARD(char *, "\x2a\x86\x48\x86\xf7\x12\x01\x02\x02\x01")};
        uint32 minor_status;
        int gss_rc;
 #endif

Reply via email to