xref: /illumos-gate/usr/src/lib/pam_modules/ldap/ldap_headers.h (revision 012e6ce759c490003aed29439cc47d3d73a99ad3)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_LDAP_HEADERS_H
28 #define	_LDAP_HEADERS_H
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #include <sys/types.h>
35 #include <sys/wait.h>
36 #include <sys/stat.h>
37 #include <sys/fcntl.h>
38 #include <stdlib.h>
39 #include <security/pam_appl.h>
40 #include <security/pam_modules.h>
41 #include <security/pam_impl.h>
42 #include <syslog.h>
43 #include <lastlog.h>
44 #include <ctype.h>
45 #include <unistd.h>
46 #include <stdlib.h>
47 #include <stdio.h>
48 #include <libintl.h>
49 #include <signal.h>
50 #include <thread.h>
51 #include <synch.h>
52 #include <errno.h>
53 #include <time.h>
54 #include <string.h>
55 #include <assert.h>
56 #include <libintl.h>
57 #include "ns_sldap.h"
58 
59 #define	bool_t  int
60 
61 /* Constants */
62 #define	LDAP_AUTHTOK_DATA	"SUNW-LDAP-AUTHTOK-DATA"
63 #define	NULLSTRING	""
64 
65 typedef struct _ldap_authtok_data_ {
66 	int age_status;
67 } ldap_authtok_data;
68 
69 /* LDAP specific functions */
70 int		__ldap_to_pamerror(int ldaperror);
71 
72 /* from ldap_utils.c */
73 extern int 	authenticate(ns_cred_t **, char *, char *, int *);
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 #endif	/* _LDAP_HEADERS_H */
80