1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

s4:update_keytab LDB module - we don't need to search for the "distinguishedName" attribute

Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sat Nov  6 20:08:28 UTC 2010 on sn-devel-104
This commit is contained in:
Matthias Dieter Wallnöfer
2010-11-06 20:23:35 +01:00
parent a093e10896
commit acb8a8d330

View File

@ -237,7 +237,7 @@ static int ukt_search_modified_callback(struct ldb_request *req,
static int ukt_search_modified(struct update_kt_ctx *ac)
{
struct ldb_context *ldb;
static const char * const attrs[] = { "distinguishedName", NULL };
static const char * const no_attrs[] = { NULL };
struct ldb_request *search_req;
int ret;
@ -246,7 +246,7 @@ static int ukt_search_modified(struct update_kt_ctx *ac)
ret = ldb_build_search_req(&search_req, ldb, ac,
ac->dn, LDB_SCOPE_BASE,
"(&(objectClass=kerberosSecret)"
"(privateKeytab=*))", attrs,
"(privateKeytab=*))", no_attrs,
NULL,
ac, ukt_search_modified_callback,
ac->req);