]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/slapauth.c
Merge remote-tracking branch 'origin/mdb.master'
[openldap] / servers / slapd / slapauth.c
index 0482f9ff5dc9777dd59e4a83babcdec63fa41ab4..7893ccb8051e4f36defff139da926c6cfa1118ec 100644 (file)
@@ -1,6 +1,7 @@
+/* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2004-2008 The OpenLDAP Foundation.
+ * Copyright 2004-2012 The OpenLDAP Foundation.
  * Portions Copyright 2004 Pierangelo Masarati.
  * All rights reserved.
  *
@@ -82,13 +83,15 @@ slapauth( int argc, char **argv )
        Connection              conn = {0};
        OperationBuffer opbuf;
        Operation               *op;
+       void                    *thrctx;
 
        slap_tool_init( progname, SLAPAUTH, argc, argv );
 
        argv = &argv[ optind ];
        argc -= optind;
 
-       connection_fake_init( &conn, &opbuf, &conn );
+       thrctx = ldap_pvt_thread_pool_context();
+       connection_fake_init( &conn, &opbuf, thrctx );
        op = &opbuf.ob_op;
 
        conn.c_sasl_bind_mech = mech;