s3:smbd: Remove NIS support
[Samba.git] / lib / replace / system / nis.h
blob7213b1550b3b67f457bae69656a0e87458998273
1 /*
2 Unix SMB/CIFS implementation.
4 nis system include wrappers
6 Copyright (C) Andrew Tridgell 2004
8 ** NOTE! The following LGPL license applies to the replace
9 ** library. This does NOT imply that all of Samba is released
10 ** under the LGPL
12 This library is free software; you can redistribute it and/or
13 modify it under the terms of the GNU Lesser General Public
14 License as published by the Free Software Foundation; either
15 version 3 of the License, or (at your option) any later version.
17 This library is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 Lesser General Public License for more details.
22 You should have received a copy of the GNU Lesser General Public
23 License along with this library; if not, see <http://www.gnu.org/licenses/>.
26 #ifndef _nis_passwd_h
27 #define _nis_passwd_h
29 #if defined(HAVE_RPC_RPC_H)
31 * Check for AUTH_ERROR define conflict with rpc/rpc.h in prot.h.
33 #if defined(HAVE_SYS_SECURITY_H) && defined(HAVE_RPC_AUTH_ERROR_CONFLICT)
34 #undef AUTH_ERROR
35 #endif /* HAVE_SYS_SECURITY_H && HAVE_RPC_AUTH_ERROR_CONFLICT */
37 #include <rpc/rpc.h>
38 #endif /* HAVE_RPC_RPC_H */
41 #if defined (HAVE_NETGROUP)
43 #if defined(HAVE_RPCSVC_YP_PROT_H)
45 #include <rpcsvc/yp_prot.h>
47 #endif /* HAVE_RPCSVC_YP_PROT_H */
49 #if defined(HAVE_RPCSVC_YPCLNT_H)
50 #include <rpcsvc/ypclnt.h>
51 #endif /* HAVE_RPCSVC_YPCLNT_H */
53 #endif /* HAVE_NETGROUP */
55 #endif /* _nis_passwd_h */