]> git.sur5r.net Git - openldap/blob - include/lutil_ldap.h
0c5467c0e5284bdcf18b62060e3fff54cb8624b0
[openldap] / include / lutil_ldap.h
1 /* $OpenLDAP$ */
2 /*
3  * Copyright 2000 The OpenLDAP Foundation, Redwood City, California, USA
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms are permitted only
7  * as authorized by the OpenLDAP Public License.  A copy of this
8  * license is available at http://www.OpenLDAP.org/license.html or
9  * in file LICENSE in the top-level directory of the distribution.
10  */
11
12 #ifndef _LUTIL_LDAP_H
13 #define _LUTIL_LDAP_H 1
14
15 #include <ldap_cdefs.h>
16 #include <lber_types.h>
17
18 /*
19  * Include file for lutil LDAP routines
20  */
21
22 LDAP_BEGIN_DECL
23
24 /*
25  * Automatic (default): use defaults, prompt otherwise
26  * Interactive: prompt always
27  * Quiet: never prompt
28  */
29 #define LUTIL_SASL_AUTOMATIC    0U
30 #define LUTIL_SASL_INTERACTIVE  1U
31 #define LUTIL_SASL_QUIET                2U
32
33 LDAP_LUTIL_F( void * )
34 lutil_sasl_defaults LDAP_P((
35         LDAP *ld,
36         unsigned flags,
37         char *mech,
38         char *realm,
39         char *authcid,
40         char *passwd,
41         char *authzid ));
42
43 LDAP_LUTIL_F( int )
44 lutil_sasl_interact LDAP_P((
45         LDAP *ld, void *defaults, void *p ));
46
47 LDAP_END_DECL
48
49 #endif /* _LUTIL_LDAP_H */