diff options
author | Simo Sorce <idra@samba.org> | 2004-09-27 14:11:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:59:22 -0500 |
commit | 456e2f82e801cbc26898fad20c273b05248ee0d6 (patch) | |
tree | fe4a7a814571b96cbc104494122bf6df7b7eff55 /source4/ldap_server/ldap_server.c | |
parent | 718bb5e8ffb04ab48cb5e9c0a7df848212340a57 (diff) | |
download | samba-456e2f82e801cbc26898fad20c273b05248ee0d6.tar.gz samba-456e2f82e801cbc26898fad20c273b05248ee0d6.tar.xz samba-456e2f82e801cbc26898fad20c273b05248ee0d6.zip |
r2689: Use consistent naming Del -> Delete
Add delete functionality to ldb simple lda server backend
add some const in ldap.h
(This used to be commit 5ed9a6eb184f34eb572dd81202237042518ec7cd)
Diffstat (limited to 'source4/ldap_server/ldap_server.c')
-rw-r--r-- | source4/ldap_server/ldap_server.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/ldap_server/ldap_server.c b/source4/ldap_server/ldap_server.c index 1aaaf8e0661..b59a884442d 100644 --- a/source4/ldap_server/ldap_server.c +++ b/source4/ldap_server/ldap_server.c @@ -330,21 +330,21 @@ static NTSTATUS ldapsrv_AddRequest(struct ldapsrv_call *call) return part->ops->Add(part, call, req); } -static NTSTATUS ldapsrv_DelRequest(struct ldapsrv_call *call) +static NTSTATUS ldapsrv_DeleteRequest(struct ldapsrv_call *call) { - struct ldap_DelRequest *req = &call->request.r.DelRequest; + struct ldap_DeleteRequest *req = &call->request.r.DeleteRequest; struct ldapsrv_partition *part; - DEBUG(10, ("DelRequest")); + DEBUG(10, ("DeleteRequest")); DEBUGADD(10, (" dn: %s", req->dn)); part = ldapsrv_get_partition(call->conn, req->dn); - if (!part->ops->Del) { + if (!part->ops->Delete) { return ldapsrv_unwilling(call, 53); } - return part->ops->Del(part, call, req); + return part->ops->Delete(part, call, req); } static NTSTATUS ldapsrv_ModifyDNRequest(struct ldapsrv_call *call) @@ -419,8 +419,8 @@ static NTSTATUS ldapsrv_do_call(struct ldapsrv_call *call) return ldapsrv_ModifyRequest(call); case LDAP_TAG_AddRequest: return ldapsrv_AddRequest(call); - case LDAP_TAG_DelRequest: - return ldapsrv_DelRequest(call); + case LDAP_TAG_DeleteRequest: + return ldapsrv_DeleteRequest(call); case LDAP_TAG_ModifyDNRequest: return ldapsrv_ModifyDNRequest(call); case LDAP_TAG_CompareRequest: |