summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/ldb_ildap
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-18 21:21:45 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2010-10-18 19:51:19 +0000
commitdcbfcbbceb87e742b642a9dffee1304dcf0b93bb (patch)
tree74c1f994aa6af16e401697ed6ba00fff34e21e37 /source4/lib/ldb/ldb_ildap
parent902e7288a738c0580c466ae4c5c503d604c66e6e (diff)
downloadsamba-dcbfcbbceb87e742b642a9dffee1304dcf0b93bb.tar.gz
samba-dcbfcbbceb87e742b642a9dffee1304dcf0b93bb.tar.bz2
samba-dcbfcbbceb87e742b642a9dffee1304dcf0b93bb.zip
ldb: always return PROTOCOL_ERROR if an operation is unsupported
That's exactly the behaviour of various LDAP servers.
Diffstat (limited to 'source4/lib/ldb/ldb_ildap')
-rw-r--r--source4/lib/ldb/ldb_ildap/ldb_ildap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/ldb/ldb_ildap/ldb_ildap.c b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
index 774336b82e..dab5abf661 100644
--- a/source4/lib/ldb/ldb_ildap/ldb_ildap.c
+++ b/source4/lib/ldb/ldb_ildap/ldb_ildap.c
@@ -759,7 +759,7 @@ static int ildb_handle_request(struct ldb_module *module, struct ldb_request *re
break;
default:
/* no other op supported */
- ret = LDB_ERR_OPERATIONS_ERROR;
+ ret = LDB_ERR_PROTOCOL_ERROR;
break;
}