svn commit: samba r1967 - branches/SAMBA_3_0/source/libads branches/SAMBA_3_0/source/nsswitch trunk/source/libads trunk/source/nsswitch

gd at samba.org gd at samba.org
Fri Aug 20 20:18:28 GMT 2004


Author: gd
Date: 2004-08-20 20:18:28 +0000 (Fri, 20 Aug 2004)
New Revision: 1967

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1967&nolog=1

Log:
Fix a couple of krb5-DEBUG-messages.

Guenther


Modified:
   branches/SAMBA_3_0/source/libads/kerberos.c
   branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c
   trunk/source/libads/kerberos.c
   trunk/source/nsswitch/winbindd_ads.c


Changeset:
Modified: branches/SAMBA_3_0/source/libads/kerberos.c
===================================================================
--- branches/SAMBA_3_0/source/libads/kerberos.c	2004-08-20 20:13:05 UTC (rev 1966)
+++ branches/SAMBA_3_0/source/libads/kerberos.c	2004-08-20 20:18:28 UTC (rev 1967)
@@ -146,7 +146,8 @@
 	krb5_ccache cc = NULL;
 
 	if ((code = krb5_init_context (&ctx))) {
-		DEBUG(3, ("ads_kdestroy: kdb5_init_context rc=%d\n", code));
+		DEBUG(3, ("ads_kdestroy: kdb5_init_context failed: %s\n", 
+			error_message(code)));
 		return code;
 	}
   
@@ -157,15 +158,16 @@
 		}
 	} else {
 		if ((code = krb5_cc_resolve(ctx, cc_name, &cc))) {
-			DEBUG(3, ("ads_kdestroy: krb5_cc_resolve rc=%d\n",
-				  code));
+			DEBUG(3, ("ads_kdestroy: krb5_cc_resolve failed: %s\n",
+				  error_message(code)));
 			krb5_free_context(ctx);
 			return code;
 		}
 	}
 
 	if ((code = krb5_cc_destroy (ctx, cc))) {
-		DEBUG(3, ("ads_kdestroy: krb5_cc_destroy rc=%d\n", code));
+		DEBUG(3, ("ads_kdestroy: krb5_cc_destroy failed: %s\n", 
+			error_message(code)));
 	}
 
 	krb5_free_context (ctx);

Modified: branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c
===================================================================
--- branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c	2004-08-20 20:13:05 UTC (rev 1966)
+++ branches/SAMBA_3_0/source/nsswitch/winbindd_ads.c	2004-08-20 20:18:28 UTC (rev 1967)
@@ -44,7 +44,7 @@
 
 		/* check for a valid structure */
 
-		DEBUG(7, ("Current tickets expire at %d\n, time is now %d\n",
+		DEBUG(7, ("Current tickets expire at %d, time is now %d\n",
 			  (uint32) ads->auth.expire, (uint32) time(NULL)));
 		if ( ads->config.realm && (ads->auth.expire > time(NULL))) {
 			return ads;

Modified: trunk/source/libads/kerberos.c
===================================================================
--- trunk/source/libads/kerberos.c	2004-08-20 20:13:05 UTC (rev 1966)
+++ trunk/source/libads/kerberos.c	2004-08-20 20:18:28 UTC (rev 1967)
@@ -146,7 +146,8 @@
 	krb5_ccache cc = NULL;
 
 	if ((code = krb5_init_context (&ctx))) {
-		DEBUG(3, ("ads_kdestroy: kdb5_init_context rc=%d\n", code));
+		DEBUG(3, ("ads_kdestroy: kdb5_init_context failed: %s\n", 
+			error_message(code)));
 		return code;
 	}
   
@@ -157,15 +158,16 @@
 		}
 	} else {
 		if ((code = krb5_cc_resolve(ctx, cc_name, &cc))) {
-			DEBUG(3, ("ads_kdestroy: krb5_cc_resolve rc=%d\n",
-				  code));
+			DEBUG(3, ("ads_kdestroy: krb5_cc_resolve failed: %s\n",
+				  error_message(code)));
 			krb5_free_context(ctx);
 			return code;
 		}
 	}
 
 	if ((code = krb5_cc_destroy (ctx, cc))) {
-		DEBUG(3, ("ads_kdestroy: krb5_cc_destroy rc=%d\n", code));
+		DEBUG(3, ("ads_kdestroy: krb5_cc_destroy failed: %s\n", 
+			error_message(code)));
 	}
 
 	krb5_free_context (ctx);

Modified: trunk/source/nsswitch/winbindd_ads.c
===================================================================
--- trunk/source/nsswitch/winbindd_ads.c	2004-08-20 20:13:05 UTC (rev 1966)
+++ trunk/source/nsswitch/winbindd_ads.c	2004-08-20 20:18:28 UTC (rev 1967)
@@ -44,7 +44,7 @@
 
 		/* check for a valid structure */
 
-		DEBUG(7, ("Current tickets expire at %d\n, time is now %d\n",
+		DEBUG(7, ("Current tickets expire at %d, time is now %d\n",
 			  (uint32) ads->auth.expire, (uint32) time(NULL)));
 		if ( ads->config.realm && (ads->auth.expire > time(NULL))) {
 			return ads;



More information about the samba-cvs mailing list