~ubuntu-branches/ubuntu/maverick/openldap/maverick-proposed

« back to all changes in this revision

Viewing changes to servers/slapd/slapauth.c

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-09-07 13:41:10 UTC
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20090907134110-jsdrvn0atu1fex4m
Tags: upstream-2.4.18
ImportĀ upstreamĀ versionĀ 2.4.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $OpenLDAP: pkg/ldap/servers/slapd/slapauth.c,v 1.10.2.5 2009/01/22 00:01:03 kurt Exp $ */
 
1
/* $OpenLDAP: pkg/ldap/servers/slapd/slapauth.c,v 1.10.2.6 2009/07/22 20:28:47 quanah Exp $ */
2
2
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
3
3
 *
4
4
 * Copyright 2004-2009 The OpenLDAP Foundation.
83
83
        Connection              conn = {0};
84
84
        OperationBuffer opbuf;
85
85
        Operation               *op;
 
86
        void                    *thrctx;
86
87
 
87
88
        slap_tool_init( progname, SLAPAUTH, argc, argv );
88
89
 
89
90
        argv = &argv[ optind ];
90
91
        argc -= optind;
91
92
 
92
 
        connection_fake_init( &conn, &opbuf, &conn );
 
93
        thrctx = ldap_pvt_thread_pool_context();
 
94
        connection_fake_init( &conn, &opbuf, thrctx );
93
95
        op = &opbuf.ob_op;
94
96
 
95
97
        conn.c_sasl_bind_mech = mech;