summaryrefslogtreecommitdiff
path: root/source3/passdb/pdb_nisplus.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-04-15 16:01:14 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-04-15 16:01:14 +0000
commit9c3cecbdac2ea888f95db2194bf9f5d2457aef09 (patch)
treed6cc4e5e34a32cd4a74e18c65f0794c68108f6a2 /source3/passdb/pdb_nisplus.c
parenta0e8344a8d1e8fbbde4cc4ca5a5722ee1e2c2bcf (diff)
downloadsamba-9c3cecbdac2ea888f95db2194bf9f5d2457aef09.tar.gz
samba-9c3cecbdac2ea888f95db2194bf9f5d2457aef09.tar.bz2
samba-9c3cecbdac2ea888f95db2194bf9f5d2457aef09.zip
Use the new modules system for passdb (merge from HEAD)
(This used to be commit 1755d5f66221a910863cfc8a197f8d792e6b6e3d)
Diffstat (limited to 'source3/passdb/pdb_nisplus.c')
-rw-r--r--source3/passdb/pdb_nisplus.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/source3/passdb/pdb_nisplus.c b/source3/passdb/pdb_nisplus.c
index 0a42c36ea0..73d65af1c6 100644
--- a/source3/passdb/pdb_nisplus.c
+++ b/source3/passdb/pdb_nisplus.c
@@ -24,8 +24,6 @@
#include "includes.h"
-#ifdef WITH_NISPLUS_SAM
-
#ifdef BROKEN_NISPLUS_INCLUDE_FILES
/*
@@ -1555,11 +1553,7 @@ NTSTATUS pdb_init_nisplussam (PDB_CONTEXT * pdb_context,
return NT_STATUS_OK;
}
-#else
-NTSTATUS pdb_init_nisplussam (PDB_CONTEXT * c, PDB_METHODS ** m,
- const char *l)
+int pdb_nisplus_init(void)
{
- DEBUG (0, ("nisplus sam not compiled in!\n"));
- return NT_STATUS_UNSUCCESSFUL;
+ return smb_register_passdb("nisplussam", pdb_init_nisplussam, PASSDB_INTERFACE_VERSION);
}
-#endif /* WITH_NISPLUS_SAM */