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 * Copyright 2024 OmniOS Community Edition (OmniOSce) Association. 26 */ 27 28 #ifndef _LDAP_HEADERS_H 29 #define _LDAP_HEADERS_H 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 34 35 #include <sys/types.h> 36 #include <sys/wait.h> 37 #include <sys/stat.h> 38 #include <sys/fcntl.h> 39 #include <stdlib.h> 40 #include <security/pam_appl.h> 41 #include <security/pam_modules.h> 42 #include <security/pam_impl.h> 43 #include <syslog.h> 44 #include <lastlog.h> 45 #include <ctype.h> 46 #include <unistd.h> 47 #include <stdlib.h> 48 #include <stdio.h> 49 #include <libintl.h> 50 #include <signal.h> 51 #include <thread.h> 52 #include <synch.h> 53 #include <errno.h> 54 #include <time.h> 55 #include <string.h> 56 #include <assert.h> 57 #include <libintl.h> 58 #include "ns_sldap.h" 59 60 #define bool_t int 61 62 /* Constants */ 63 #define LDAP_AUTHTOK_DATA "SUNW-LDAP-AUTHTOK-DATA" 64 #define NULLSTRING "" 65 66 typedef struct _ldap_authtok_data_ { 67 int age_status; 68 } ldap_authtok_data; 69 70 /* LDAP specific functions */ 71 int __ldap_to_pamerror(int ldaperror); 72 73 /* from ldap_utils.c */ 74 extern int authenticate(ns_cred_t **, const char *, const char *, int *); 75 76 #ifdef __cplusplus 77 } 78 #endif 79 80 #endif /* _LDAP_HEADERS_H */ 81