svn commit: samba r7203 - in branches/SAMBA_4_0/source/libnet: .

abartlet at samba.org abartlet at samba.org
Fri Jun 3 00:38:51 GMT 2005


Author: abartlet
Date: 2005-06-03 00:38:51 +0000 (Fri, 03 Jun 2005)
New Revision: 7203

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

Log:
Fill in the error message and fail if we can't open the secrets database.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/libnet/libnet_join.c


Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet_join.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet_join.c	2005-06-03 00:34:13 UTC (rev 7202)
+++ branches/SAMBA_4_0/source/libnet/libnet_join.c	2005-06-03 00:38:51 UTC (rev 7203)
@@ -359,6 +359,12 @@
 
 	/* Local secrets are stored in secrets.ldb */
 	ldb = secrets_db_connect(mem_ctx);
+	if (!ldb) {
+		r->generic.out.error_string
+			= talloc_asprintf(mem_ctx, 
+					  "Could not open secrets database\n");
+		return NT_STATUS_CANT_ACCESS_DOMAIN_INFO;
+	}
 
 	/* join domain */
 	status = libnet_JoinDomain(ctx, mem_ctx, &r2);



More information about the samba-cvs mailing list