kill tsol ("Trusted Solaris") aka TX ("Trusted Extensions")
[unleashed.git] / usr / src / cmd / ldap / ns_ldap / ldapaddent.h
blobb4fee4313d36ab55f7ad3d1e0fecb0ebef3e21cb
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
22 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
25 #ifndef _LDAPADDENT_H
26 #define _LDAPADDENT_H
29 * ldapaddent.h
30 * common declarations for ldapaddent utility
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
37 #undef GROUP
38 #undef GROUP_OBJ
39 #include <nss_dbdefs.h>
40 #include <ns_sldap.h>
41 #include <nis_dhext.h>
43 extern unsigned flags;
44 #define F_VERBOSE 0x1
45 #define F_PASSWD 0x2
47 #define BIGBUF 8192
48 #define BUFSIZ 1024
49 #define LDAP_MAXNAMELEN 1024
50 #define GENENT_OK 0
51 #define GENENT_PARSEERR 1
52 #define GENENT_CBERR 2
53 #define GENENT_ERR 3
54 #define PARSE_ERR_MSG_LEN 512
56 extern char parse_err_msg[PARSE_ERR_MSG_LEN];
57 extern int continue_onerror; /* do not exit on error */
59 struct line_buf {
60 char *str;
61 int len;
62 int alloc;
65 struct file_loc {
66 off_t offset;
67 size_t size;
70 extern int genent_user_attr(char *line, int (*cback)());
71 extern int genent_prof_attr(char *line, int (*cback)());
72 extern int genent_exec_attr(char *line, int (*cback)());
73 extern int genent_auth_attr(char *line, int (*cback)());
75 extern void dump_user_attr(ns_ldap_result_t *res);
76 extern void dump_prof_attr(ns_ldap_result_t *res);
77 extern void dump_exec_attr(ns_ldap_result_t *res);
78 extern void dump_auth_attr(ns_ldap_result_t *res);
80 #ifdef __cplusplus
82 #endif
84 #endif /* _LDAPADDENT_H */