xref: /titanic_44/usr/src/lib/pam_modules/ldap/ldap_headers.h (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
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 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 #include <sys/types.h>
37 #include <sys/wait.h>
38 #include <sys/stat.h>
39 #include <sys/fcntl.h>
40 #include <stdlib.h>
41 #include <security/pam_appl.h>
42 #include <security/pam_modules.h>
43 #include <security/pam_impl.h>
44 #include <syslog.h>
45 #include <lastlog.h>
46 #include <ctype.h>
47 #include <unistd.h>
48 #include <stdlib.h>
49 #include <stdio.h>
50 #include <libintl.h>
51 #include <signal.h>
52 #include <thread.h>
53 #include <synch.h>
54 #include <errno.h>
55 #include <time.h>
56 #include <string.h>
57 #include <assert.h>
58 #include <libintl.h>
59 #include "ns_sldap.h"
60 
61 #define	bool_t  int
62 
63 /* Constants */
64 #define	LDAP_AUTHTOK_DATA	"SUNW-LDAP-AUTHTOK-DATA"
65 #define	NULLSTRING	""
66 
67 typedef struct _ldap_authtok_data_ {
68 	int age_status;
69 } ldap_authtok_data;
70 
71 /* LDAP specific functions */
72 int		__ldap_to_pamerror(int ldaperror);
73 
74 /* from ldap_utils.c */
75 extern int 	authenticate(ns_cred_t **, char *, char *, int *);
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif	/* _LDAP_HEADERS_H */
82