From 1f099931b91edd7105ba1e9e821b14625414a8f5 Mon Sep 17 00:00:00 2001
From: Jakub Hrozek <jhrozek@redhat.com>
Date: Wed, 15 Jul 2009 12:43:08 +0200
Subject: [PATCH] Fix saving new nextID

---
 server/db/sysdb_ops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/server/db/sysdb_ops.c b/server/db/sysdb_ops.c
index ad4a63e..c172b70 100644
--- a/server/db/sysdb_ops.c
+++ b/server/db/sysdb_ops.c
@@ -1448,7 +1448,7 @@ static void sysdb_get_new_id_verify(struct tevent_req *subreq)
         tevent_req_error(req, ENOMEM);
         return;
     }
-    msg->dn = state->base->dn;
+    msg->dn = state->base_dn;
 
     ret = add_ulong(msg, LDB_FLAG_MOD_REPLACE,
                     SYSDB_NEXTID, state->new_id + 1);
-- 
1.6.2.5

