svn commit: samba r1710 - trunk/source/utils

mimir at samba.org mimir at samba.org
Tue Aug 10 22:08:02 GMT 2004


Author: mimir
Date: 2004-08-10 22:08:02 +0000 (Tue, 10 Aug 2004)
New Revision: 1710
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/&rev=1710&nolog=1
Log:
Meet the case when passdb backend does not implement trust passwords
handling functions.


rafal


Modified:
   trunk/source/utils/pdbedit.c

Changeset:
Modified: trunk/source/utils/pdbedit.c
===================================================================
--- trunk/source/utils/pdbedit.c	2004-08-10 21:37:52 UTC (rev 1709)
+++ trunk/source/utils/pdbedit.c	2004-08-10 22:08:02 UTC (rev 1710)
@@ -935,7 +935,6 @@
 {
 	SAM_TRUST_PASSWD trust;
 	NTSTATUS nt_status = NT_STATUS_UNSUCCESSFUL;
-	BOOL status = False;
 
 	/* unicode name and its null-termination */
 	trust.private.uni_name_len = strnlen(domain, 32);
@@ -946,8 +945,15 @@
 	   to fill the rest of the structure */
 	nt_status = in->pdb_delete_trust_passwd(in, &trust);
 	
-	status = NT_STATUS_IS_OK(nt_status) ? 0 : -1;
-	return status;
+	if (NT_STATUS_IS_OK(nt_status)) {
+		return 0;
+
+	} else if (NT_STATUS_EQUAL(nt_status, NT_STATUS_NOT_IMPLEMENTED)) {
+		printf("Error: this functionality is not supported by your current passdb backend!\n");
+		return -1;
+	}
+
+	return -1;
 }
 
 



More information about the samba-cvs mailing list