summaryrefslogtreecommitdiff
path: root/source3/include/nss_info.h
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-01-24 14:39:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:17:25 -0500
commita31f10c99edd7cb80d62d377c8efead5a4846b40 (patch)
tree54b89f816e1b3b30338a74ca20fdf29749bd9e21 /source3/include/nss_info.h
parent25f1710991b1d39ce057f9210c36cbaf3d1b0517 (diff)
downloadsamba-a31f10c99edd7cb80d62d377c8efead5a4846b40.tar.gz
samba-a31f10c99edd7cb80d62d377c8efead5a4846b40.tar.bz2
samba-a31f10c99edd7cb80d62d377c8efead5a4846b40.zip
r21001: * Use a simple '#define LDAPMessage void' to fix the build
problems in the nss_info interface when HAVE_LDAP is undefined. * Revert previous ifdef HAVE_ADS brakets * Remove an unused init function wrapper. (This used to be commit 2ba353848b6d8d36520e7fd82576653a39c602cd)
Diffstat (limited to 'source3/include/nss_info.h')
-rw-r--r--source3/include/nss_info.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/include/nss_info.h b/source3/include/nss_info.h
index 2d7a5682e2..50e5e8182a 100644
--- a/source3/include/nss_info.h
+++ b/source3/include/nss_info.h
@@ -20,11 +20,15 @@
Boston, MA 02111-1307, USA.
*/
-#ifdef WITH_ADS
-
#ifndef _IDMAP_NSS_H
#define _IDMAP_NSS_H
+#ifndef HAVE_LDAP
+# ifndef LDAPMessage
+# define LDAPMessage void
+# endif
+#endif
+
/* The interface version specifier */
#define SMB_NSS_INFO_INTERFACE_VERSION 1
@@ -84,9 +88,5 @@ NTSTATUS nss_get_info( const char *domain, const DOM_SID *user_sid,
NTSTATUS nss_close( const char *parameters );
-NTSTATUS idmap_nss_init_domain( const char *domain );
-
-
#endif /* _IDMAP_NSS_H_ */
-#endif /* WITH_ADS */