s4-loadparm: 2nd half of lp_ to lpcfg_ conversion
[bbaumbach/samba-autobuild/.git] / source4 / dsdb / samdb / samdb.c
index 67b55385cbc9a1250341a0298c63aa1173b0abb5..2b4e9a1438e752eedbdffa95585707640d42bbda 100644 (file)
@@ -83,7 +83,7 @@ static int samdb_credentials_destructor(struct cli_credentials *creds)
   that we always get the same pointer in ldb_wrap_connect()
  */
 struct cli_credentials *samdb_credentials(struct tevent_context *event_ctx, 
-                                         struct loadparm_context *lp_ctx) 
+                                         struct loadparm_context *lp_ctx)
 {
        static struct cli_credentials *static_credentials;
        struct cli_credentials *cred;
@@ -126,9 +126,9 @@ struct ldb_context *samdb_connect(TALLOC_CTX *mem_ctx,
                                  struct auth_session_info *session_info)
 {
        struct ldb_context *ldb;
-       ldb = ldb_wrap_connect(mem_ctx, ev_ctx, lp_ctx, 
-                              lp_sam_url(lp_ctx), session_info,
-                              samdb_credentials(ev_ctx, lp_ctx), 
+       ldb = ldb_wrap_connect(mem_ctx, ev_ctx, lp_ctx,
+                              lpcfg_sam_url(lp_ctx), session_info,
+                              samdb_credentials(ev_ctx, lp_ctx),
                               0);
        if (!ldb) {
                return NULL;