svn commit: samba r2526 - in branches/SAMBA_4_0/source/ldap_server: .

metze at samba.org metze at samba.org
Wed Sep 22 13:14:57 GMT 2004


Author: metze
Date: 2004-09-22 13:14:56 +0000 (Wed, 22 Sep 2004)
New Revision: 2526

WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/ldap_server&rev=2526&nolog=1

Log:
use LDAP error 53 (unwillingToPerform)

when the backend didn't implement the call

metze

Modified:
   branches/SAMBA_4_0/source/ldap_server/ldap_server.c


Changeset:
Modified: branches/SAMBA_4_0/source/ldap_server/ldap_server.c
===================================================================
--- branches/SAMBA_4_0/source/ldap_server/ldap_server.c	2004-09-22 13:08:30 UTC (rev 2525)
+++ branches/SAMBA_4_0/source/ldap_server/ldap_server.c	2004-09-22 13:14:56 UTC (rev 2526)
@@ -289,7 +289,7 @@
 		}
 
 		done = &done_r->msg.r.SearchResultDone;
-		done->resultcode = 32;
+		done->resultcode = 53;
 		done->dn = NULL;
 		done->errormessage = NULL;
 		done->referral = NULL;
@@ -312,7 +312,7 @@
 	part = ldapsrv_get_partition(call->conn, req->dn);
 
 	if (!part->ops->Modify) {
-		ldapsrv_unwilling(call, 2);
+		ldapsrv_unwilling(call, 53);
 		return;
 	}
 
@@ -330,7 +330,7 @@
 	part = ldapsrv_get_partition(call->conn, req->dn);
 
 	if (!part->ops->Add) {
-		ldapsrv_unwilling(call, 2);
+		ldapsrv_unwilling(call, 53);
 		return;
 	}
 
@@ -348,7 +348,7 @@
 	part = ldapsrv_get_partition(call->conn, req->dn);
 
 	if (!part->ops->Del) {
-		ldapsrv_unwilling(call, 2);
+		ldapsrv_unwilling(call, 53);
 		return;
 	}
 
@@ -367,7 +367,7 @@
 	part = ldapsrv_get_partition(call->conn, req->dn);
 
 	if (!part->ops->ModifyDN) {
-		ldapsrv_unwilling(call, 2);
+		ldapsrv_unwilling(call, 53);
 		return;
 	}
 
@@ -385,7 +385,7 @@
 	part = ldapsrv_get_partition(call->conn, req->dn);
 
 	if (!part->ops->Compare) {
-		ldapsrv_unwilling(call, 2);
+		ldapsrv_unwilling(call, 53);
 		return;
 	}
 



More information about the samba-cvs mailing list