diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-02-16 15:40:44 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-02-16 21:10:51 +1100 |
commit | b630530730a710b7e850be2f848b1b85dbc25b4d (patch) | |
tree | ce0c7edc9073fd1b4221e1e87043b4d5a6a35202 /source4/dsdb/kcc/kcc_connection.c | |
parent | 8f4a34272eb26e7c86ce8c0e158b5f6eabd10234 (diff) | |
download | samba-b630530730a710b7e850be2f848b1b85dbc25b4d.tar.gz samba-b630530730a710b7e850be2f848b1b85dbc25b4d.tar.bz2 samba-b630530730a710b7e850be2f848b1b85dbc25b4d.zip |
s4-dsdb: added dsdb_search_one() and cleanup dsdb_find_dn_by_guid()
dsdb_find_dn_by_guid() now takes a struct GUID instead of a
guid_string. All the callers in fact wanted a struct GUID, so we now
avoid the extra conversion.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb/kcc/kcc_connection.c')
-rw-r--r-- | source4/dsdb/kcc/kcc_connection.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/dsdb/kcc/kcc_connection.c b/source4/dsdb/kcc/kcc_connection.c index 73198040c4..d0d549dc1f 100644 --- a/source4/dsdb/kcc/kcc_connection.c +++ b/source4/dsdb/kcc/kcc_connection.c @@ -65,8 +65,7 @@ static int kccsrv_add_connection(struct kccsrv_service *s, ret = LDB_ERR_INVALID_DN_SYNTAX; goto done; } - ret = dsdb_find_dn_by_guid(s->samdb, tmp_ctx, GUID_string(tmp_ctx, - &conn->dsa_guid), &server_dn); + ret = dsdb_find_dn_by_guid(s->samdb, tmp_ctx, &conn->dsa_guid, &server_dn); if (ret != LDB_SUCCESS) { DEBUG(0, ("failed to find fromServer DN '%s'\n", GUID_string(tmp_ctx, &conn->dsa_guid))); @@ -105,8 +104,7 @@ static int kccsrv_delete_connection(struct kccsrv_service *s, int ret; tmp_ctx = talloc_new(s); - ret = dsdb_find_dn_by_guid(s->samdb, tmp_ctx, - GUID_string(tmp_ctx, &conn->obj_guid), &dn); + ret = dsdb_find_dn_by_guid(s->samdb, tmp_ctx, &conn->obj_guid, &dn); if (ret != LDB_SUCCESS) { DEBUG(0, ("failed to find nTDSConnection's DN: %s\n", ldb_strerror(ret))); |