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]
22 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
30 * common declarations for ldapaddent utility
39 #include <nss_dbdefs.h>
41 #include <nis_dhext.h>
43 extern unsigned flags
;
49 #define LDAP_MAXNAMELEN 1024
51 #define GENENT_PARSEERR 1
52 #define GENENT_CBERR 2
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 */
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
);
84 #endif /* _LDAPADDENT_H */