Displaying 2 results from an estimated 2 matches for "krb5_nt_srv_hst".
2002 May 20
0
Openssh 3.2.2p1 KRB5 addition
...**
*** 80,85 ****
--- 81,87 ----
  	krb5_data reply;
  	krb5_ticket *ticket;
  	int fd, ret;
+         char *localname;
  
  	ret = 0;
  	server = NULL;
***************
*** 108,114 ****
  	if (problem)
  		goto err;
  
! 	problem = krb5_sname_to_principal(authctxt->krb5_ctx,  NULL, NULL ,
  	    KRB5_NT_SRV_HST, &server);
  	if (problem)
  		goto err;
--- 110,118 ----
  	if (problem)
  		goto err;
  
!         localname=get_local_hostname(fd);
! 
!         problem = krb5_sname_to_principal(authctxt->krb5_ctx, localname, NULL ,
  	    KRB5_NT_SRV_HST, &server);
  	if (problem)
  		goto err;
----...
2003 Oct 30
1
Patch to make sshd work on multihomed systems
...+		problem = -1;
+		goto out;
+	}
+
 	problem = krb5_init(authctxt);
 	if (problem)
 		goto out;
@@ -123,7 +135,7 @@
 	if (problem)
 		goto out;
-	problem = krb5_sname_to_principal(authctxt->krb5_ctx, NULL, NULL,
+	problem = krb5_sname_to_principal(authctxt->krb5_ctx, localname, NULL,
 	    KRB5_NT_SRV_HST, &server);
 	if (problem)
 		goto out;
diff -u -r src.old/gss-genr.c src/gss-genr.c
--- src.old/gss-genr.c	Thu Oct 30 15:02:46 2003
+++ src/gss-genr.c	Thu Oct 30 15:02:44 2003
@@ -30,6 +30,7 @@
 #include "xmalloc.h"
 #include "bufaux.h"
+#include "canohost.h"
 #in...